我在更新 ubuntu 12.04 (64 位) 时遇到了问题
运行以下命令
apt-get update && apt-get upgrade
导致:
Setting up libglib2.0-bin (2.32.4-0ubuntu1) ...
rmdir: failed to remove `/etc/etc/': Not a directory
dpkg: error processing libglib2.0-bin (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of lightdm:
lightdm depends on libglib2.0-bin; however:
Package libglib2.0-bin is not configured yet.
dpkg: error processing lightdm (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of unity:
unity depends on libglib2.0-bin; however:
Package libglib2.0-bin is not configured yet.
dpkg: error processing unity (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
libglib2.0-bin
lightdm
unity
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
请尝试以下操作:
sudo apt-get remove --purge libglib2.0-bin
sudo apt-get update
sudo apt-get install libglib2.0-bin
sudo apt-get -f install
sudo apt-get dist-upgrade
评论中的注释:似乎存在一个如描述中的错误这里不应该有/etc/etc/
文件夹路径。我不知道你是怎么得到它的。尝试使用 重新安装 dpkg,sudo apt-get install --reinstall dpkg
如果失败,请尝试sudo apt-get remove --purge dpkg
使用 再次安装sudo apt-get install dpkg
。