Question

apt upgrade failed, E: Broken packages

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?


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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