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
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

apt-get update –fix-missing

apt —fix-broken install

Above are two solutions and here is a link that may help.

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


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