安装软件时出现“程序包依赖关系无法解决”错误

安装媒体播放器包时遇到问题。 无法解析包依赖性

This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time. Depends: libc6 (>= 2.7) but 2.13-0ubuntu13 is to be installed Depends: libglib2.0-0 (>= 2.24.0) but 2.28.6-0ubuntu1 is to be installed Depends: libgstreamer-plugins-base0.10-0 (>= 0.10.22) but 0.10.32-1ubuntu5 is to be installed Depends: libgstreamer0.10-0 (>= 0.10.26) but 0.10.32-3ubuntu3 is to be installed Depends: liborc-0.4-0 (>= 1:0.4.10) but 1:0.4.11-2 is to be installed Depends: libpostproc-extra-51 (>= 4:0.6-1~) but 4:0.6.4-1ubuntu1+medibuntu1 is to be installed Depends: libswscale-extra-0 (>= 4:0.6-1~) but 4:0.6.4-1ubuntu1+medibuntu1 is to be installed gstreamer0.10-plugins-bad: Depends: libc6 (>= 2.7) but 2.13-0ubuntu13 is to be installed Depends: libcairo2 (>= 1.2.4) but 1.10.2-2ubuntu2 is to be installed Depends: libcdaudio1 (>= 0.99.12p2) but 0.99.12p2-9 is to be installed Depends: libdc1394-22 but it is not going to be installed Depends: libdirectfb-1.2-9 but it is not going to be installed Depends: libflite1 but it is not going to be installed Depends: libgcc1 (>= 1:4.1.1) but 1:4.5.2-8ubuntu4 is to be installed Depends: libglib2.0-0 (>= 2.26.0) but 2.28.6-0ubuntu1 is to be installed Depends: libgsm1 (>= 1.0.13) but it is not going to be installed Depends: libgstreamer-plugins-base0.10-0 (>= 0.10.32) but 0.10.32-1ubuntu5 is to be installed Depends: libgstreamer0.10-0 (>= 0.10.32) but 0.10.32-3ubuntu3 is to be installed Depends: libjasper1 (>= 1.900.1) but 1.900.1-7ubuntu2 is to be installed Depends: libmodplug1 but it is not going to be installed Depends: libmpcdec6 (>= 1:0.1~r435) but it is not going to be installed Depends: libmusicbrainz4c2a (>= 2.1.5) but it is not going to be installed Depends: libofa0 (>= 0.9.3) but it is not going to be installed Depends: liborc-0.4-0 (>= 1:0.4.10) but 1:0.4.11-2 is to be installed Depends: libpng12-0 (>= 1.2.13-4) but 1.2.44-1ubuntu3 is to be installed Depends: librsvg2-2 (>= 2.26.0) but 2.32.1-0ubuntu3 is to be installed Depends: librtmp0 (>= 2.3) but 2.3-2 is to be installed Depends: libschroedinger-1.0-0 (>= 1.0.9) but it is not going to be installed Depends: libsndfile1 (>= 1.0.20) but 1.0.23-1build1 is to be installed Depends: libstdc++6 (>= 4.1.1) but 4.5.2-8ubuntu4 is to be installed Depends: libvpx0 (>= 0.9.0) but it is not going to be installed gstreamer0.10-plugins-ugly: Depends: libc6 (>= 2.7) but 2.13-0ubuntu13 is to be installed Depends: libgcc1 (>= 1:4.1.1) but 1:4.5.2-8ubuntu4 is to be installed Depends: libglib2.0-0 (>= 2.24.0) but 2.28.6-0ubuntu1 is to be installed Depends: libgstreamer-plugins-base0.10-0 (>= 0.10.26) but 0.10.32-1ubuntu5 is to be installed Depends: libgstreamer0.10-0 (>= 0.10.26) but 0.10.32-3ubuntu3 is to be installed Depends: libid3tag0 (>= 0.15.1b) but it is not going to be installed Depends: libmad0 (>= 0.15.1b-3) but it is not going to be installed Depends: liborc-0.4-0 (>= 1:0.4.10) but 1:0.4.11-2 is to be installed Depends: libstdc++6 (>= 4.1.1) but 4.5.2-8ubuntu4 is to be installed 

转到ubuntu软件中心>>编辑>>软件来源>>下载>>选择美国重新启动计算机后进入软件中心并输入wine并安装它

试试这个:

打开终端并尝试以下命令:

 sudo dpkg --configure -a sudo apt-get install -f 

这就是我主要解决依赖问题的方法。 当你使用12.04一个稳定的版本时,我认为这将是你可以做的技巧

 sudo apt-get update 

获取最新的包索引,然后重复第一个命令。

转到软件源并确保包含所有软件源

另外还包括mediaubuntu存储库

然后

 sudo apt-get update sudo apt-get upgrade 

如果问题仍然存在,可能是由于破坏了包列表尝试

sudo apt-get install -f

清理你的缓存并重新下载包sudo apt-get clean sudo apt-get autoclean

尝试使用sudo apt-get install -f,我也遇到了这些错误。

转到ubuntu软件中心>>编辑>>软件来源>>下载>>选择美国重新启动计算机后进入软件中心并输入wine并安装它

sudo apt-get update更新你的包列表sudo apt-get autoclean清理任何部分包sudo apt-get clean来清理apt缓存sudo apt-get autoremove将清理所有不需要的依赖项

打开终端,复制并粘贴所有这些代码:

  sudo apt-get install -f && sudo apt-get clean && sudo apt-get autoclean && sudo apt-get autoremove && sudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update && sudo apt-get upgrade && sudo apt-get install wine1.5 

如果这不起作用,请尝试:我建议你这样做:(大多数情况下,它有效)

使用sudo apt-get install aptitude命令sudo apt-get install aptitude

尝试使用命令安装您愿意安装的软件包

 sudo aptitude install  

能力将向您显示错误并向您展示可能的(最佳)解决方案。 您将被要求从3个选项中选择一条消息

 Accept this solution? [Y/n/q/?] 

如果您看到所需的包未列入(将要)安装列表中,只需按n即可让aptitude为您提供下一个最佳解决方案。 经过多次试用(如果幸运的话),您将看到所需的软件包位于可安装列表中,导致依赖性问题的软件包将显示在降级列表中。 在此阶段按Y接受解决方案。 包将被降级以满足安装请求。

对不起,我不能给你这样的aptitude演示版,但你可以查看这个页面来看看它的一些动作。

如果,在执行此操作时,您可以识别损坏的包,此命令将非常强制地删除它:

sudo dpkg –remove -force –force-remove-reinstreq packagename当然,用实名替换“packagename”。

逐个安装未满足的依赖项。 它应该是自动安装但不幸的是它不是。我不知道ubuntu开发人员在做什么,只专注于GUI。

通过这样做,您将能够安装您要安装的内容