在更新过程中,apt 和 dkpg 返回以下错误:
dpkg: error processing package libperl5.22:amd64 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
libperl5.22:amd64
当我尝试使用规定的修复方法时,它返回:
user@Server:/# sudo dpkg --remove --force-remove-reinstreq libperl5.22:amd64
dpkg: dependency problems prevent removal of libperl5.22:amd64:
perl depends on libperl5.22 (= 5.22.1-9ubuntu0.5).
dpkg: error processing package libperl5.22:amd64 (--remove):
dependency problems - not removing
Errors were encountered while processing:
libperl5.22:amd64
我以前从未遇到过这个错误,不知道该如何处理。
答案1
不要立即使用强制选项。首先尝试重新安装(这也应该保留配置)
apt-get install --reinstall libperl5.22
你可以在多个 Ubuntu 论坛中找到这样的建议,这是对超级用户的提及。