解决Ubuntu12.04下some packages not fully installed or removed问题

前几天把Ubuntu12.04的内核从3.11.0-15升级到了3.11.0-26,内核升级后还顺便使用Update Manager升级了几个包便忙其他的去了,过了一会发现Update Manager好像卡住了,于是就直接把它关掉了。等下次开机时进入了最新升级后的内核系统,在终端使用apt-get install ***安装软件时屏幕打印出了下面的错误信息:

11 packages not fully installed or removed.

dpkg: error processing libdrm2:amd64 (--configure):
package libdrm2:amd64 2.4.52-1~precise2 cannot be configured because libdrm2:i386 is at a different version (2.4.52-1~precise1)
dpkg: error processing libdrm-intel1:amd64 (--configure):
package libdrm-intel1:amd64 2.4.52-1~precise2 cannot be configured because libdrm-intel1:i386 is at a different version (2.4.52-1~precise1)
dpkg: dependency problems prevent configuration of libdrm-nouveau1a:amd64:
libdrm-nouveau1a:amd64 depends on libdrm2 (>= 2.4.3); however:
Package libdrm2:amd64 is not configured yet.
dpkg: error processing libdrm-nouveau1a:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: error processing libdrm-radeon1:amd64 (--configure):
package libdrm-radeon1:amd64 2.4.52-1~precise2 cannot be configured because libdrm-radeon1:i386 is at a different version (2.4.52-1~precise1)
dpkg: error processing libxfixes3:amd64 (--configure):
package libxfixes3:amd64 1:5.0-4ubuntu4.3 cannot be configured because libxfixes3:i386 is at a different version (1:5.0-4ubuntu4.2)
dpkg: error processing libxi6:amd64 (--configure):
package libxi6:amd64 2:1.7.1.901-1ubuntu1~precise2 cannot be configured because libxi6:i386 is at a different version (2:1.7.1.901-1ubuntu1~precise1)
dpkg: dependency problems prevent configuration of google-chrome-stable:
google-chrome-stable depends on libxfixes3 (>= 1:5.0); however:
Package libxfixes3:amd64 is not configured yet.
google-chrome-stable depends on libxi6 (>= 2:1.2.99.4); however:
Package libxi6:amd64 is not configured yet.
dpkg: error processing google-chrome-stable (--configure):
dependency problems - leaving unconfigured
dpkg: error processing libdrm-nouveau2:amd64 (--configure):
No apport report written because the error message indicates its a followup error from a previous failure. package libdrm-nouveau2:amd64 2.4.52-1~precise2 cannot be configured because libdrm-nouveau2:i386 is at a different version (2.4.52-1~precise1)
dpkg: dependency problems prevent configuration of flashplugin-installer:
flashplugin-installer depends on libxfixes3; however:
Package libxfixes3:amd64 is not configured yet.
flashplugin-installer depends on libxi6; however:
Package libxi6:amd64 is not configured yet.
dpkg: error processing flashplugin-installer (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libxfixes-dev:
libxfixes-dev depends on libxfixes3 (= 1:5.0-4ubuntu4.3); however:
Package libxfixes3:amd64 is not configured yet.
dpkg: error processing libxfixes-dev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libxi-dev:
libxi-dev depends on libxi6 (= 2:1.7.1.901-1ubuntu1~precise2); however:
Package libxi6:amd64 is not configured yet.
libxi-dev dependsNo 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. No apport report written because MaxReports is reached already on libxfixes-dev (>= 1:5.0-4ubuntu4.2~); however:
Package libxfixes-dev is not configured yet.
dpkg: error processing libxi-dev (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libdrm2:amd64
libdrm-intel1:amd64
libdrm-nouveau1a:amd64
libdrm-radeon1:amd64
libxfixes3:amd64
libxi6:amd64
google-chrome-stable
libdrm-nouveau2:amd64
flashplugin-installer
libxfixes-dev
libxi-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

解决方法:

sudo dpkg --force-depends --purge libdrm2:amd64
sudo dpkg --force-depends --purge libdrm2:i386
......
依次把上面列出的未完全安装的包移除掉,然后再使用sudo apt-get install -f修复系统依赖就好了,再次调用apt-get install ***发现恢复正常了。

你可能感兴趣的:(ubuntu,dpkg)