![dpkg 错误消息从 ubuntu 15.04 升级到 15.10](https://linux22.com/image/1130488/dpkg%20%E9%94%99%E8%AF%AF%E6%B6%88%E6%81%AF%E4%BB%8E%20ubuntu%2015.04%20%E5%8D%87%E7%BA%A7%E5%88%B0%2015.10.png)
希望您能帮助我。我按照此处描述的过程从 15.04 升级到 ubuntu 15.10http://www.ubuntu.com/download/desktop/upgrade。在安装升级进程几乎快要结束时,它卡住了,并显示错误消息E:子进程 /usr/bin/dpkg 返回并出现错误代码 (1)
如果我尝试,sudo dpkg --configure -a
我会
dpkg: dependency problems prevent configuration of evince:
evince depends on evince-common (>= 3.16); however:
Version of evince-common on system is 3.14.2-0ubuntu2.
dpkg: error processing package evince (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of brasero:
brasero depends on brasero-common (= 3.12.1-0ubuntu2); however:
Version of brasero-common on system is 3.12.0-0ubuntu2.
dpkg: error processing package brasero (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libbrasero-media3-1:
libbrasero-media3-1 depends on brasero-common (= 3.12.1-0ubuntu2); however:
Version of brasero-common on system is 3.12.0-0ubuntu2.
dpkg: error processing package libbrasero-media3-1 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of rhythmbox-plugin-cdrecorder:
rhythmbox-plugin-cdrecorder depends on libbrasero-media3-1 (>= 3.0.0); however:
Package libbrasero-media3-1 is not configured yet.
dpkg: error processing package rhythmbox-plugin-cdrecorder (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-desktop:
ubuntu-desktop depends on evince; however:
Package evince is not configured yet.
dpkg: error processing package ubuntu-desktop (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of brasero-cdrkit:
brasero-cdrkit depends on libbrasero-media3-1 (= 3.12.1-0ubuntu2); however:
Package libbrasero-media3-1 is not configured yet.
dpkg: error processing package brasero-cdrkit (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
evince
brasero
libbrasero-media3-1
rhythmbox-plugin-cdrecorder
ubuntu-desktop
brasero-cdrkit
这就是我在升级对话框中得到的结果
提前致谢
答案1
您可能希望执行全新安装并从备份中恢复数据。
您在开始升级之前是否执行了备份?如果没有,请先进行备份。
如果您仍然希望尝试升级,我建议您删除所有损坏的软件包。
sudo apt-get purge evince brasero libbrasero-media3-1 rhythmbox-plugin-cdrecorder ubuntu-desktop brasero-cdrkit
然后重新尝试升级并在升级后重新安装这些软件包。
sudo apt-get install evince brasero libbrasero-media3-1 rhythmbox-plugin-cdrecorder ubuntu-desktop brasero-cdrkit
如果出现错误,您可以尝试手动删除软件包,必要时一次删除一个
sudo dpkg --remove --force-all evince
如果仍然出现错误,则需要手动删除该包
cd /var/lib/dpkg/info
sudo rm evince.*
重新运行升级,安装您删除的软件包
sudo apt-get install evince brasero libbrasero-media3-1 rhythmbox-plugin-cdrecorder ubuntu-desktop brasero-cdrkit
请参阅 apt-get 和 dpkg 手册页和/或http://blog.bodhizazen.com/linux/apt-get-how-to-fix-very-broken-packages/了解这些命令的详细信息。