Running these commands should update all packages, and then try a distribution upgrade. This should work, but assuming you run something like neofetch and are still on the same version of Ubuntu, we may need to force an upgrade - especially if you’re early to a release.
Forcing an upgrade
First, we need to change from the LTS branch to the normal branch, if you’re not already there.
1
sudo sed 's/lts/normal/g' /etc/update-manager/release-upgrades
Then we need to point packages to the new source, lobster, instead of jammy.
1
sudo sed -i `s/jammy/lunar/g` /etc/apt/sources.list
Now we can run the update commands again and a ton of packages should be updated.
This time, you may see something that looks like the following. You should be able to answer “y” and hit enter, though make sure you know what you’re doing, especially if sensitive data is on your system.
1
2
3
4
5
6
7
8
9
10
Configuration file '/etc/update-manager/release-upgrades'==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** release-upgrades (Y/I/N/O/D/Z)[default=N] ?
Verify
Run neofetch if you have it installed (if not run sudo apt install neofetch).
Assuming you see Lunar Lobster, then congratulations you have updated!
What next?
From here you can upgrade your kernal as well to the latest version. If you’re on WSL, then you likely won’t be able to do much here, otherwise if you’re on bare metal there are lots of guides to follow!