Upgrade from 4.0.0 to 5.x

here is what in the snap:

Name Version Rev Tracking Publisher Notes
core18 20220831 2566 latest/stable canonical✓ base
core20 20220919 1634 latest/stable canonical✓ base
lxd 4.0.9-8e2046b 22753 4.0/stable/… canonical✓ -
snapd 2.57.4 17336 latest/stable canonical✓ snapd

doing a snap refresh lxd, got:
sudo snap refresh lxd
snap “lxd” has no updates available

what I’m missing here? thanks.

You’re on 4.0/stable so are getting the latest 4.0 snap.

snap refresh lxd --channel=5.0/stable would move you to 5.0.x, snap refresh lxd --channel=latest/stable would move you to 5.x (5.7 currently)

1 Like

right, i ended up remove 4.0.9 and install the 5.7, is this the correct approach?

Not if you have any instance you care about as removal would delete everything.

The refresh commands above would have been the correct way to move to a newer release without losing anything.

1 Like