By BlackBelt35
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. :)
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.