I don't know the steps the OP followed but to anyone trying to update from 18.04 to 22.04 these steps worked for me on two systems (Intel 4790 and Ryzen 2400G):
You need to do a release upgrade from 18.04 to 20.04 and then from 20.04 to 22.04
Step by step:
- tappend these to
/etc/apt/sources.list
(this is an important step that fixes the OP question, without this you cannot upgrade packages, and dist-upgrade, and without that you cannot do the releas upgrade):
deb http://archive.ubuntu.com/ubuntu bionic main restricted
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted
Now on the following steps you would be needing to answer with OK and y on a few questions so make sure you look once in a while on your display, you would be needing a few restarts and it takes anywhere from half an hour to 1-2 hours, update the package list:
sudo apt update
now upgrade packages:
sudo apt upgrade
followed by dist upgrade
sudo apt dist-upgrade
then remove all packages from your system by entering the following command (this is optional):
sudo apt autoremove
install the update-manager-core package by running the following command, in case you don't have it already:
sudo apt install update-manager-core
after that, you cand run the release upgrade utility. To do this by the following command:
sudo do-release-upgrade
after this is ready you have 20.04, once you have 20.04 (check with lsb_release -a
) run one more time:
sudo do-release-upgrade
after this is ready you should have 22.04