每次sudo apt dist-upgrade出错
Tofloor
poster avatar
Coollove
deepin
2011-07-16 16:41
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)
Reply Favorite View the author
All Replies
Coollove
deepin
2011-07-18 20:30
#1
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
Reply View the author
runsisi
deepin
2011-07-18 23:41
#2
sudo cp /var/lib/dpkg/info/eio.postinst /var/lib/dpkg/info/eio.postinst.bak
sudo echo >/var/lib/dpkg/info/eio.postinst
Reply View the author