sudo apt upgrade
Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done 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: perl-modules-5.22 : Conflicts: perl-modules E: Broken packages
Anyone knows how should I fix this?
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!
apt-get update –fix-missing
apt —fix-broken install
Above are two solutions and here is a link that may help.
https://superuser.com/questions/1386209/how-to-solve-this-dependencies-apt-fix-broken-install
Hi, @scythk
One possible cause of unmet dependencies could be corrupted package database, and/or some packages weren’t installed properly. You can attempt to fix this by executing the following commands:
sudo apt-get clean
or,
sudo apt-get autoclean
You can also attempt to correct the broken dependencies:
sudo apt-get -f install
followed by:
sudo dpkg --configure -a
and then again the install:
sudo apt-get -f install
Hope that helps! Let me know how it goes!
Regards, Alex
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.