dpkg 和 apt-get损坏修复

使用apt-get 或者dpkg安装包时,出现以下报错,尝试了很多办法都没有解决

dpkg: error processing package initramfs-tools (--configure):

 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 python3
 python3-apt
 python3-dbus
 language-selector-common
 lsb-release
 python3-gdbm:amd64
 python3-commandnotfound
 python3-distupgrade
 python3-update-manager
 python3-gi
 ufw
 python3-pkg-resources
 python3-chardet
 python3-six
 python3-urllib3
 python3-requests
 python3-virtualenv
 ssh-import-id
 dh-python

 initramfs-tools


最终使用以下办法解决了:

到/var/lib/dpkg/info目录下,删除以上出现包名字开头的文件执行:sudo apt-get -f install


阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页