Question

Ubuntu 20.04 upgrade : "Please install all available updates for your release before upgrading" even after packages updating

Hello ! :)

I would like to upgrade my 18.04.5 Ubuntu to 20,04. Of course, before doing it, I’ve updated all installed packages :

sudo apt update && sudo apt -y full-upgrade && sudo apt autoremove

But even after this I have the “Please install all available updates for your release before upgrading” error.

So I try to check why, who and where there is some unupdated packages with this command :

apt list --upgradable -a

Returned this :

php-recode/bionic,now 1:7.2+60ubuntu1 all [installed,upgradable to: 2:7.4+73+ubuntu18.04.1+deb.sury.org+1]

So now, I try to update that php-recode module. Can’t found any prompt after 15 minutes of Google search so I try to reinstall it instead. :

sudo apt install php-recode

Returned this error :

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php-recode : Depends: php7.4-recode but it is not installable
E: Unable to correct problems, you have held broken packages.

That begins to be a bit too much for my modest autodidact Linux admin capacities, so this is why I seek for some help to solve this issue. :)

I don’t have really interest into upgrading to 20,04 but I’m a bit perfectionnist and psychorigid so I don’t like not having the last version.

Thanks. :)


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
August 30, 2021
Accepted Answer

Hi @BlackBelt35,

I’ve had cases where a third-party repositories with a broken-dependency, which showed up via sudo apt list --upgradable - the package in question did require another package, which was unavailable due to an error of the packager.

I solved it by disabling all third party repositories (as root):

cd /etc/apt/sources.list.d/
for i in *.list; do
  mv $i ${i}.disabled
done

Then cleaned the update state:

apt clean
apt autoclean

and restarted the update process:

do-release-upgrade

This comment has been deleted

    Try DigitalOcean for free

    Click below to sign up and get $200 of credit to try our products over 60 days!

    Sign up

    Get our biweekly newsletter

    Sign up for Infrastructure as a Newsletter.

    Hollie's Hub for Good

    Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

    Become a contributor

    Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

    Welcome to the developer cloud

    DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

    Learn more
    DigitalOcean Cloud Control Panel