I've been trying to upgrade my version of Ubuntu 18.04 to 20.04. I've run all the steps from updating and upgrading both apt and apt-get, changing the settings in update manager and all of the steps described in this link. Yet I keep getting the error:
Please install all available updates for your release before upgrading.
Is there something special about trying to upgrade from 18.04 to 20.04 that's causing this error? Do I maybe need to update to 19.04 first?
EDIT: I just noticed something that might be important. When I run sudo apt-get update
I get the following notice at the end of the output:
The following packages have been kept back:
colord gimagereader python-sane sane simple-scan
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Might that be causing the issue?
I was also experiencing the same issue. However, when I ran the usual upgrade commands (
sudo apt upgrade
,sudo apt full-upgrade
,sudo apt-get dist-upgrade
), they were all reporting that there are no packages to upgrade and no held packages:In the end, I copied the file
/usr/bin/do-release-upgrade
to my home and modified it as follows:This change will print the names of all packages that need to be upgraded.
When I ran
sudo ~/do-release-upgrade
, a package from an external repository was printed that had an update available, but the newer version depended on a library that was not available, which caused the package to not upgrade.Still not sure why it wasn't reported as
not upgraded
byapt upgrade
.Edit: The following code snippet can be run in the Python console to list all upgradeable packages - thanks @jferard!
sequence from 18.04 to 20.04
Follow onscreen instruction. Good luck!
The problem is your repo is not updated, so you need to remove these five repos:
colord gimagereader python-sane sane simple-scan
Do
sudo add-apt-repository -r ppa:<ppa to remove>
or edit/etc/apt/sources.list
to remove all of these repos.Then you can run
update-manager
just removed wine through
sudo apt-get remove --auto-remove winehq-stable
and it worked for me after reusingsudo do-release-upgrade
First in your terminal:
Then you will get
All you have to do is to use
The result will be like:
Finally, go with:
Real example with solution (sorry for russian output examples, will translate it as soon as I can):
The last command showed me what packages are not updated. In my case I removed the packages (it was trash after experiments), then I ran
sudo do-release-upgrade -d
again. There was no problem, update started.You have to update your current version with the latest patches / updates. Run:
sudo apt update
sudo apt upgrade
Then force the upgrade to 20.04 by running:
sudo update-manager -d
Until first point release of 20.04 ... 20.04.1 ... upgrade will not be presented automatically. Until then the
-d
option is needed.As @heynnema writes below
-d
means "development version". Right now there are no development version for next ubuntu (20.10). Since upgrading from 18.04 or 19,10 to 20.10, you should get a warning about that. If this happens, let go of-d
and try without it.Go to Ubuntu Software Update and check any pending updates. Update them and you're done. Some updates do not execute using
sudo apt-get update
.First upgrade the packages:
You will see a message similar to this:
Install the kept back packages manually.
In my case it was:
After this run
sudo apt update && sudo apt upgrade
again to ensure that everything is working fine.