解決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 ***安裝軟件時屏幕打印出了下面的錯誤信息:chrome

11 packages not fully installed or removed.ubuntu

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)app

解決方法:google

sudo dpkg --force-depends --purge libdrm2:amd64
sudo dpkg --force-depends --purge libdrm2:i386
......
依次把上面列出的未徹底安裝的包移除掉,而後再使用sudo apt-get install -f修復系統依賴就行了,再次調用apt-get install ***發現恢復正常了。code

相關文章
相關標籤/搜索