编程知识 cdmana.com

ubuntu apt install 报错 : dpkg: error processing package

使用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

版权声明
本文为[YangTao]所创,转载请带上原文链接,感谢
https://my.oschina.net/wanily/blog/4939313

Tags Python
Scroll to Top