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?

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.

×
2 answers

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

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

Submit an Answer