Coollove
2011-07-18 20:30 deepin
E: Sub-process /usr/bin/dpkg returned an error code (1)错误解决
apt-get remove 包名称报如下错误
E: Sub-process /usr/bin/dpkg returned an error code (1)
参考文档如下:
http://www.linuxforums.org/forum/debian ... e-1-a.html
解决方案:
1. Open terminal, type(打开终端,进入如下目录)
cd /var/lib/dpkg/info
2. Remove the info files for the bad packages (WARNING, this is dangerous in some cases): Type
删除该目录下含有该软件包名称的文件
sudo rm -f*
3.重新APT-GET
sudo apt-get update -f
and
sudo apt-get upgrade,
最后apt install 即可
sudo apt-get install
网上也有流转修改info的方案,这种方法试过了还是不行
此时可以这样解决:
cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info
apt-get remove 包名称报如下错误
E: Sub-process /usr/bin/dpkg returned an error code (1)
参考文档如下:
http://www.linuxforums.org/forum/debian ... e-1-a.html
解决方案:
1. Open terminal, type(打开终端,进入如下目录)
cd /var/lib/dpkg/info
2. Remove the info files for the bad packages (WARNING, this is dangerous in some cases): Type
删除该目录下含有该软件包名称的文件
sudo rm -f
3.重新APT-GET
sudo apt-get update -f
and
sudo apt-get upgrade,
最后apt install 即可
sudo apt-get install
网上也有流转修改info的方案,这种方法试过了还是不行
此时可以这样解决:
cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info
Reply Like 0 View the author
eio
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
Total disk space freed by localepurge: 0 KiB
E: Sub-process /usr/bin/dpkg returned an error code (1)