无法更新ubuntu 16

无法更新ubuntu 16

执行 apt-get update 后,我无法安装任何软件包。

# dpkg --configure -a

dpkg: dependency problems prevent configuration of libperl5.22:amd64:
 libperl5.22:amd64 depends on perl-modules-5.22 (>= 5.22.1-9ubuntu0.2); however:
  Version of perl-modules-5.22 on system is 5.22.1-9.

dpkg: error processing package libperl5.22:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of perl:
 perl depends on perl-modules-5.22 (>= 5.22.1-9ubuntu0.2); however:
  Version of perl-modules-5.22 on system is 5.22.1-9.
 perl depends on libperl5.22 (= 5.22.1-9ubuntu0.2); however:
  Package libperl5.22:amd64 is not configured yet.

dpkg: error processing package perl (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing package perl-modules-5.22 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 libperl5.22:amd64
 perl
 perl-modules-5.22

如何解决问题?

答案1

正如错误消息所示,您可以尝试使用以下命令重新安装应用程序

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

答案2

尝试重新安装软件包“perl-base”。

apt-get --reinstall install perl-base

相关内容