用apt
工具进行安装或卸载时提示“dpkg: error processing package libc-bin (--configure)
”错误。
1 2 3 4 5
| dpkg: error processing package libc-bin (--configure): installed libc-bin package post-installation script subprocess returned error exit status 134 Errors were encountered while processing: libc-bin E: Sub-process /usr/bin/dpkg returned an error code (1)
|
以下是解决办法
1.登录root
账户
2.运行一下命令
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/ mkdir /var/lib/dpkg/info/ apt update && apt install -f
apt -f install mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old/ rm -rf /var/lib/dpkg/info mv /var/lib/dpkg/info_old/ /var/lib/dpkg/info
|
3.验证是否成功
4.重新升级
1 2
| apt upgrade apt upgrade -y
|
5.参考资料
dpkg: error processing package xxx (—configure)的解决方法