Trying to update from 16.04LTS to 18.04LTS but unmet perl dependencies or conflicts when updating packages

I've done: sudo apt update But when I do sudo apt upgrade, I get:

The following packages have unmet dependencies:
 perl-modules-5.22 : Conflicts: perl-modules
                     Conflicts: perl-modules:i386

I've tried:

sudo dpkg --configure -a

sudo apt-get -f install

sudo apt-get  install --reinstall perl-modules-5.22

sudo apt-get clean

Can't sudo do-release-upgrade until I get this fixed.

How do I resolve the perl conflicts?

Thanks!


Solution 1:

@user535733: you're the man! it helped.

To be precise: you can't remove virtual package (which perl-modules are) - instead:

apt remove perl-modules-5.22 

In my case.