如何修复严重的 libqt4 包依赖问题?

如何修复严重的 libqt4 包依赖问题?

我该如何修复我的软件中心?我无法更新 Ubuntu 或任何东西,否则会收到错误消息,提示在修复软件包目录之前无法安装项目。以下是我收到的错误。请帮帮我,我是 Ubuntu 新手。

installArchives() failed: dpkg: error processing libqt4-xmlpatterns:i386 (--configure):
 libqt4-xmlpatterns:i386 4:4.8.1-0ubuntu4.1 cannot be configured because libqt4-xmlpatterns:amd64 is in a different version (4:4.8.1-0ubuntu4.2)
dpkg: error processing libqt4-xmlpatterns (--configure):
 libqt4-xmlpatterns:amd64 4:4.8.1-0ubuntu4.2 cannot be configured because libqt4-xmlpatterns:i386 is in a different version (4:4.8.1-0ubuntu4.1)
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libqt4-declarative:i386:
 libqt4-declarative:i386 depends on libqt4-xmlpatterns (= 4:4.8.1-0ubuntu4.2); however:
  Version of libqt4-xmlpatterns:i386 on system is 4:4.8.1-0ubuntu4.1.
dpkg: error processing libqt4-declarative:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-declarative:
 libqt4-declarative depends on libqt4-xmlpatterns (= 4:4.8.1-0ubuntu4.2); however:
  Package libqt4-xmlpatterns is not configured yet.
dpkg: error processing libqt4-declarative (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libqtgui4:i386:
 libqtgui4:i386 depends on libqt4-declarative (= 4:4.8.1-0ubuntu4.2); however:
  Package libqt4-declarative:i386 is not configured yet.
dpkg: error processing libqtgui4:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqtgui4:
 libqtgui4 depends on libqt4-declarative (= 4:4.8.1-0ubuntu4.2); however:
  Package libqt4-declarative is not configured yet.
dpkg: error processing libqtgui4 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libqt4-designer:
 libqt4-designer depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4 is not configured yet.
dpkg: error processing libqt4-designer (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libqt4-designer:i386:
 libqt4-designer:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4:i386 is not configured yet.
dpkg: error processing libqt4-designer:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-help:
 libqt4-help depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4 is not configured yet.
dpkg: error processing libqt4-help (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libqt4-opengl:
 libqt4-opengl depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4 is not configured yet.
dpkg: error processing libqt4-opengl (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libqt4-opengl:i386:
 libqt4-opengl:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4:i386 is not configured yet.
dpkg: error processing libqt4-opengl:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-qt3support:i386:
 libqt4-qt3support:i386 depends on libqt4-designer (= 4:4.8.1-0ubuntu4.2); however:
  Package libqt4-designer:i386 is not configured yet.
 libqt4-qt3support:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4:i386 is not configured yet.
dpkg: error processing libqt4-qt3support:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-scripttools:
 libqt4-scripttools depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4 is not configured yet.
dpkg: error processing libqt4-scripttools (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libqt4-scripttools:i386:
 libqt4-scripttools:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4:i386 is not configured yet.
dpkg: error processing libqt4-scripttools:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-svg:
 libqt4-svg depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4 is not configured yet.
dpkg: error processing libqt4-svg (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libqt4-svg:i386:
 libqt4-svg:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4:i386 is not configured yet.
dpkg: error processing libqt4-svg:i386 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libqt4-xmlpatterns:i386
 libqt4-xmlpatterns
 libqt4-declarative:i386
 libqt4-declarative
 libqtgui4:i386
 libqtgui4
 libqt4-designer
 libqt4-designer:i386
 libqt4-help
 libqt4-opengl
 libqt4-opengl:i386
 libqt4-qt3support:i386
 libqt4-scripttools
 libqt4-scripttools:i386
 libqt4-svg
 libqt4-svg:i386
Error in function: 
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
dpkg: dependency problems prevent configuration of libqt4-declarative:i386:
 libqt4-declarative:i386 depends on libqt4-xmlpatterns (= 4:4.8.1-0ubuntu4.2); however:
  Version of libqt4-xmlpatterns:i386 on system is 4:4.8.1-0ubuntu4.1.
dpkg: error processing libqt4-declarative:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing libqt4-xmlpatterns (--configure):
 libqt4-xmlpatterns:amd64 4:4.8.1-0ubuntu4.2 cannot be configured because libqt4-xmlpatterns:i386 is in a different version (4:4.8.1-0ubuntu4.1)
dpkg: error processing libqt4-xmlpatterns:i386 (--configure):
 libqt4-xmlpatterns:i386 4:4.8.1-0ubuntu4.1 cannot be configured because libqt4-xmlpatterns:amd64 is in a different version (4:4.8.1-0ubuntu4.2)
dpkg: dependency problems prevent configuration of libqtgui4:i386:
 libqtgui4:i386 depends on libqt4-declarative (= 4:4.8.1-0ubuntu4.2); however:
  Package libqt4-declarative:i386 is not configured yet.
dpkg: error processing libqtgui4:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-declarative:
 libqt4-declarative depends on libqt4-xmlpatterns (= 4:4.8.1-0ubuntu4.2); however:
  Package libqt4-xmlpatterns is not configured yet.
dpkg: error processing libqt4-declarative (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-svg:i386:
 libqt4-svg:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4:i386 is not configured yet.
dpkg: error processing libqt4-svg:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-opengl:i386:
 libqt4-opengl:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4:i386 is not configured yet.
dpkg: error processing libqt4-opengl:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-designer:i386:
 libqt4-designer:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4:i386 is not configured yet.
dpkg: error processing libqt4-designer:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-scripttools:i386:
 libqt4-scripttools:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4:i386 is not configured yet.
dpkg: error processing libqt4-scripttools:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-qt3support:i386:
 libqt4-qt3support:i386 depends on libqt4-designer (= 4:4.8.1-0ubuntu4.2); however:
  Package libqt4-designer:i386 is not configured yet.
 libqt4-qt3support:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4:i386 is not configured yet.
dpkg: error processing libqt4-qt3support:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqtgui4:
 libqtgui4 depends on libqt4-declarative (= 4:4.8.1-0ubuntu4.2); however:
  Package libqt4-declarative is not configured yet.
dpkg: error processing libqtgui4 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-svg:
 libqt4-svg depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4 is not configured yet.
dpkg: error processing libqt4-svg (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-opengl:
 libqt4-opengl depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4 is not configured yet.
dpkg: error processing libqt4-opengl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-designer:
 libqt4-designer depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4 is not configured yet.
dpkg: error processing libqt4-designer (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-help:
 libqt4-help depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4 is not configured yet.
dpkg: error processing libqt4-help (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libqt4-scripttools:
 libqt4-scripttools depends on libqtgui4 (= 4:4.8.1-0ubuntu4.2); however:
  Package libqtgui4 is not configured yet.
dpkg: error processing libqt4-scripttools (--configure):
 dependency problems - leaving unconfigured

答案1

从您的日志文件来看,libqt4-xmlpatterns 似乎存在问题,
请查看这里(如果您还没有这样做):https://askubuntu.com/a/167933/83946
那个问题是关于同一个软件包的。

基本上,在终端中执行以下操作:

apt-get download libqt4-xmlpatterns:i386
apt-get download libqt4-xmlpatterns:amd64
sudo dpkg -i libqt4-xmlpatterns*.deb
sudo dpkg --configure -a

相关内容