尝试安装 Skype 后未满足依赖项。现在我无法安装任何软件包

尝试安装 Skype 后未满足依赖项。现在我无法安装任何软件包

我尝试通过从其网站下载 .deb 文件来安装 Skype。由于依赖项未得到满足,安装中止,Ubuntu 软件中心未安装 Skype。从那时起,我无法安装任何软件包,并且所有软件包管理实用程序都无法正常工作:它们都抱怨依赖项未得到满足。

我试过

 sudo apt-get install -f

它无法修复该问题。以下是该命令的输出

 tutysra@tutysra-devel:~$ sudo apt-get install -f Reading package
 lists... Done Building dependency tree        Reading state
 information... Done Correcting dependencies... Done The following
 packages were automatically installed and are no longer required:  
 libsdl-ttf2.0-0 libsdl-mixer1.2 libsdl-image1.2 libmikmod2
 libsdl-net1.2   libboost-regex1.46.1 Use 'apt-get autoremove' to
 remove them. The following extra packages will be installed:  
 libqt4-declarative:i386 libqt4-designer:i386 libqt4-opengl:i386  
 libqt4-qt3support:i386 libqt4-scripttools:i386 libqt4-sql-mysql:i386  
 libqt4-sql-sqlite libqt4-svg:i386 libqt4-test:i386 libqtgui4:i386
 qdbus Suggested packages:   libqt4-declarative-folderlistmodel:i386
 libqt4-declarative-gestures:i386   libqt4-declarative-particles:i386
 libqt4-declarative-shaders:i386   qt4-qmlviewer:i386 libqt4-dev:i386
 libqt4-dev qt4-qtconfig:i386 The following packages will be upgraded: 
 libqt4-declarative:i386 libqt4-designer:i386 libqt4-opengl:i386  
 libqt4-qt3support:i386 libqt4-scripttools:i386 libqt4-sql-mysql:i386  
 libqt4-sql-sqlite libqt4-svg:i386 libqt4-test:i386 libqtgui4:i386
 qdbus 11 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
 21 not fully installed or removed. Need to get 0 B/10.7 MB of
 archives. After this operation, 1,024 B of additional disk space will
 be used. Do you want to continue [Y/n]? y (Reading database ... 172294
 files and directories currently installed.) Preparing to replace
 libqt4-sql-sqlite 4:4.8.1-0ubuntu4 (using
 .../libqt4-sql-sqlite_4%3a4.8.1-0ubuntu4.1_amd64.deb) ... Unpacking
 replacement libqt4-sql-sqlite ... Preparing to replace qdbus
 4:4.8.1-0ubuntu4 (using .../qdbus_4%3a4.8.1-0ubuntu4.1_amd64.deb) ...
 Unpacking replacement qdbus ... Processing triggers for man-db ...
 dpkg: error processing libqtgui4:i386 (--configure):  libqtgui4:i386
 4:4.8.1-0ubuntu4 cannot be configured because libqtgui4:amd64 is in a
 different version (4:4.8.1-0ubuntu4.1) dpkg: error processing
 libqt4-declarative:i386 (--configure):  libqt4-declarative:i386
 4:4.8.1-0ubuntu4 cannot be configured because libqt4-declarative:amd64
 is in a different version (4:4.8.1-0ubuntu4.1) dpkg: error processing
 libqt4-svg:i386 (--configure):  libqt4-svg:i386 4:4.8.1-0ubuntu4
 cannot be configured because libqt4-svg:amd64 is in a different
 version (4:4.8.1-0ubuntu4.1) dpkg: error processing libqtgui4
 (--configure):  libqtgui4:amd64 4:4.8.1-0ubuntu4.1 cannot be
 configured because libqtgui4:i386 is in a different version
 (4:4.8.1-0ubuntu4) dpkg: error processing libqt4-declarative
 (--configure):  libqt4-declarative:amd64 4:4.8.1-0ubuntu4.1 cannot be
 configured because libqt4-declarative:i386 is in a different version
 (4:4.8.1-0ubuntu4) E: Sub-process /usr/bin/dpkg returned an error code
 (1)

我尝试删除libqt4-testsudo apt-get remove -f libqt4-test,但无法删除,因为包管理器拒绝在未解决未满足的依赖关系的情况下删除它。

我运行了dpkg --configure -a ,结果如下:

 tutysra@tutysra-devel:~$ sudo dpkg --configure -a dpkg: error
 processing libqtgui4 (--configure):  libqtgui4:amd64
 4:4.8.1-0ubuntu4.1 cannot be configured because libqtgui4:i386 is in a
 different version (4:4.8.1-0ubuntu4) dpkg: error processing
 libqtgui4:i386 (--configure):  libqtgui4:i386 4:4.8.1-0ubuntu4 cannot
 be configured because libqtgui4:amd64 is in a different version
 (4:4.8.1-0ubuntu4.1) dpkg: dependency problems prevent configuration
 of ia32-libs-multiarch:i386:  ia32-libs-multiarch:i386 depends on
 libqtgui4; however:   Package libqtgui4:i386 is not configured yet.
 dpkg: error processing ia32-libs-multiarch:i386 (--configure): 
 dependency problems - leaving unconfigured dpkg: error processing
 libqt4-declarative (--configure):  libqt4-declarative:amd64
 4:4.8.1-0ubuntu4.1 cannot be configured because
 libqt4-declarative:i386 is in a different version (4:4.8.1-0ubuntu4)
 dpkg: error processing libqt4-declarative:i386 (--configure): 
 libqt4-declarative:i386 4:4.8.1-0ubuntu4 cannot be configured because
 libqt4-declarative:amd64 is in a different version
 (4:4.8.1-0ubuntu4.1) dpkg: error processing libqt4-svg (--configure): 
 libqt4-svg:amd64 4:4.8.1-0ubuntu4.1 cannot be configured because
 libqt4-svg:i386 is in a different version (4:4.8.1-0ubuntu4) dpkg:
 error processing libqt4-svg:i386 (--configure):  libqt4-svg:i386
 4:4.8.1-0ubuntu4 cannot be configured because libqt4-svg:amd64 is in a
 different version (4:4.8.1-0ubuntu4.1) dpkg: error processing
 libqt4-sql-mysql (--configure):  libqt4-sql-mysql:amd64
 4:4.8.1-0ubuntu4.1 cannot be configured because libqt4-sql-mysql:i386
 is in a different version (4:4.8.1-0ubuntu4) dpkg: error processing
 libqt4-sql-mysql:i386 (--configure):  libqt4-sql-mysql:i386
 4:4.8.1-0ubuntu4 cannot be configured because libqt4-sql-mysql:amd64
 is in a different version (4:4.8.1-0ubuntu4.1) dpkg: dependency
 problems prevent configuration of ia32-libs:  ia32-libs depends on
 ia32-libs-multiarch; however:   Package ia32-libs-multiarch is not
 installed.   Package ia32-libs-multiarch:i386 is not configured yet.
 dpkg: error processing ia32-libs (--configure):  dependency problems -
 leaving unconfigured dpkg: error processing libqt4-opengl
 (--configure):  libqt4-opengl:amd64 4:4.8.1-0ubuntu4.1 cannot be
 configured because libqt4-opengl:i386 is in a different version
 (4:4.8.1-0ubuntu4) dpkg: error processing libqt4-opengl:i386
 (--configure):  libqt4-opengl:i386 4:4.8.1-0ubuntu4 cannot be
 configured because libqt4-opengl:amd64 is in a different version
 (4:4.8.1-0ubuntu4.1) dpkg: dependency problems prevent configuration
 of libqtwebkit4:i386:  libqtwebkit4:i386 depends on libqtgui4 (>=
 4:4.8.0); however:   Package libqtgui4:i386 is not configured yet.
 dpkg: error processing libqtwebkit4:i386 (--configure):  dependency
 problems - leaving unconfigured dpkg: error processing libqt4-designer
 (--configure):  libqt4-designer:amd64 4:4.8.1-0ubuntu4.1 cannot be
 configured because libqt4-designer:i386 is in a different version
 (4:4.8.1-0ubuntu4) dpkg: error processing libqt4-designer:i386
 (--configure):  libqt4-designer:i386 4:4.8.1-0ubuntu4 cannot be
 configured because libqt4-designer:amd64 is in a different version
 (4:4.8.1-0ubuntu4.1) dpkg: dependency problems prevent configuration
 of libqt4-help:  libqt4-help depends on libqtgui4 (=
 4:4.8.1-0ubuntu4.1); however:   Package libqtgui4 is not configured
 yet. dpkg: error processing libqt4-help (--configure):  dependency
 problems - leaving unconfigured dpkg: error processing
 libqt4-scripttools (--configure):  libqt4-scripttools:amd64
 4:4.8.1-0ubuntu4.1 cannot be configured because
 libqt4-scripttools:i386 is in a different version (4:4.8.1-0ubuntu4)
 dpkg: error processing libqt4-scripttools:i386 (--configure): 
 libqt4-scripttools:i386 4:4.8.1-0ubuntu4 cannot be configured because
 libqt4-scripttools:amd64 is in a different version
 (4:4.8.1-0ubuntu4.1) dpkg: dependency problems prevent configuration
 of libqt4-qt3support:i386:  libqt4-qt3support:i386 depends on
 libqt4-designer (= 4:4.8.1-0ubuntu4); however:   Package
 libqt4-designer:i386 is not configured yet.  libqt4-qt3support:i386
 depends on libqt4-network (= 4:4.8.1-0ubuntu4); however:   Version of
 libqt4-network:i386 on system is 4:4.8.1-0ubuntu4.1. 
 libqt4-qt3support:i386 depends on libqt4-sql (= 4:4.8.1-0ubuntu4);
 however:   Version of libqt4-sql:i386 on system is 4:4.8.1-0ubuntu4.1.
 libqt4-qt3support:i386 depends on libqt4-xml (= 4:4.8.1-0ubuntu4);
 however:   Version of libqt4-xml:i386 on system is 4:4.8.1-0ubuntu4.1.
 libqt4-qt3support:i386 depends on libqtcore4 (= 4:4.8.1-0ubuntu4);
 however:   Version of libqtcore4:i386 on system is 4:4.8.1-0ubuntu4.1.
 libqt4-qt3support:i386 depends on libqtgui4 (= 4:4.8.1-0ubuntu4);
 however:   Package libqtgui4:i386 is not configured yet. dpkg: error
 processing libqt4-qt3support:i386 (--configure):  dependency problems
 - leaving unconfigured dpkg: error processing libqt4-test (--configure):  libqt4-test:amd64 4:4.8.1-0ubuntu4.1 cannot be
 configured because libqt4-test:i386 is in a different version
 (4:4.8.1-0ubuntu4) dpkg: error processing libqt4-test:i386
 (--configure):  libqt4-test:i386 4:4.8.1-0ubuntu4 cannot be configured
 because libqt4-test:amd64 is in a different version
 (4:4.8.1-0ubuntu4.1) Errors were encountered while processing: 
 libqtgui4  libqtgui4:i386  ia32-libs-multiarch:i386 
 libqt4-declarative  libqt4-declarative:i386  libqt4-svg 
 libqt4-svg:i386  libqt4-sql-mysql  libqt4-sql-mysql:i386  ia32-libs 
 libqt4-opengl  libqt4-opengl:i386  libqtwebkit4:i386  libqt4-designer 
 libqt4-designer:i386  libqt4-help  libqt4-scripttools 
 libqt4-scripttools:i386  libqt4-qt3support:i386  libqt4-test 
 libqt4-test:i386

我需要一些帮助/指点来解决这个问题。

答案1

sudo aptitude reinstall libqtcore4:i386修复。

如果你没有安装 aptitude,并且它apt-get坏了,你需要手动下载并安装 deb(以及任何缺少的依赖项),使用

dpkg -i

http://packages.ubuntu.com/precise/admin/aptitude

答案2

这是 64 位安装 ubuntu 的常见问题

首先需要降级并执行以下操作:创建“首选项”文件:

sudo vi /etc/apt/preferences

并插入以下行:

Package: *       
Pin: release a=precise*
Pin-Priority: 2012

Pin-Priority 必须大于 1000。

然后你可以使用以下方法降级有问题的应用程序:

sudo apt-get dist-upgrade

Then you may install packages that complained about dependencies, like
sudo apt-get install ia32-libs-multiarch, or sudo apt-get install ia32-libs.

最后,您应该删除刚刚创建的文件:

sudo rm /etc/apt/preferences

现在从官方网站(skype.com)下载 Skype 以获得多种架构

然后从软件中心打开下载的包,然后你就可以安装 skype

相关内容