sudo apt upgrade
返回此错误:
libperl5.26 : Depends: perl-modules-5.26 (>= 5.26.1-6ubuntu0.5) but 5.26.1-6ubuntu0.3 is installed
sudo apt --fix-broken install
返回此错误:
unable to open '/usr/share/perl/5.26.1/vmsish.pm.dpkg-new': Operation not permitted
sudo apt install perl
返回这些错误:
libmailtools-perl : Depends: libnet-perl
libperl5.26 : Depends: perl-modules-5.26 (>= 5.26.1-6ubuntu0.5) but it is not going to be installed
perl : Depends: perl-modules-5.26 (>= 5.26.1-6ubuntu0.5) but it is not going to be installed```
`sudo apt install perl-modules-526` returns this error:
```unable to open '/usr/share/perl/5.26.1/warnings.pm.dpkg-new': Operation not permitted```
答案1
解决方案是在 perl-modules-526 之前安装 libnet-perl:
sudo apt install libnet-perl