包依赖关系无法解决

当我尝试用mplayer打开像.mkv扩展名这样的avidio文件时,它需要一些像gstreamer这样的多媒体插件 ,并且新安装了Ubuntu 12.01

当我告诉他安装它们时,我会看到错误:

此错误可能是由于缺少或无法安装所需的其他软件包引起的。 此外,不允许同时安装的软件包之间可能存在冲突。

The following packages have unmet dependencies: gstreamer0.10-ffmpeg: Depends: libavcodec-extra-53 (>= 4:0.7.3-1) but 4:0.8.3ubuntu0.12.04.1 is to be installed Depends: libavformat-extra-53 (>= 4:0.7.3-1) but 4:0.8.3ubuntu0.12.04.1 is to be installed Depends: libavutil-extra-51 (>= 4:0.7.3-1) but 4:0.8.3ubuntu0.12.04.1 is to be installed Depends: libc6 (>= 2.7) but 2.15-0ubuntu10.2 is to be installed Depends: libglib2.0-0 (>= 2.31.2) but 2.32.3-0ubuntu1 is to be installed Depends: libgstreamer-plugins-base0.10-0 (>= 0.10.31) but 0.10.36-1ubuntu0.1 is to be installed Depends: libgstreamer0.10-0 (>= 0.10.31) but 0.10.36-1ubuntu1 is to be installed Depends: liborc-0.4-0 (>= 1:0.4.16) but 1:0.4.16-1ubuntu2 is to be installed Depends: libpostproc-extra-52 (>= 4:0.7.3-1) but 4:0.8.3ubuntu0.12.04.1 is to be installed Depends: libswscale-extra-2 (>= 4:0.7.3-1) but 4:0.8.3ubuntu0.12.04.1 is to be installed gstreamer0.10-ffmpeg:i386: Depends: libavcodec-extra-53 (>= 4:0.7.3-1) but 4:0.8.3ubuntu0.12.04.1 is to be installed Depends: libavformat-extra-53 (>= 4:0.7.3-1) but 4:0.8.3ubuntu0.12.04.1 is to be installed Depends: libavutil-extra-51 (>= 4:0.7.3-1) but 4:0.8.3ubuntu0.12.04.1 is to be installed Depends: libc6 (>= 2.7) but 2.15-0ubuntu10.2 is to be installed Depends: libglib2.0-0 (>= 2.31.2) but 2.32.3-0ubuntu1 is to be installed Depends: libgstreamer-plugins-base0.10-0 (>= 0.10.31) but 0.10.36-1ubuntu0.1 is to be installed Depends: libgstreamer0.10-0 (>= 0.10.31) but 0.10.36-1ubuntu1 is to be installed Depends: liborc-0.4-0 (>= 1:0.4.16) but 1:0.4.16-1ubuntu2 is to be installed Depends: libpostproc-extra-52 (>= 4:0.7.3-1) but 4:0.8.3ubuntu0.12.04.1 is to be installed Depends: libswscale-extra-2 (>= 4:0.7.3-1) but 4:0.8.3ubuntu0.12.04.1 is to be installed 

我搜索并发现最解决方案说

 sudo apt-get clean sudo apt-get autoclean sudo apt-get install -f 

我试过它们,没有任何事情发生

sources.list的内容是

 # deb cdrom:[Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1)]/ dists/precise/main/binary-i386/ # deb cdrom:[Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1)]/ dists/precise/restricted/binary-i386/ # deb cdrom:[Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120823.1)]/ precise main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://eg.archive.ubuntu.com/ubuntu/ precise main restricted deb-src http://eg.archive.ubuntu.com/ubuntu/ precise main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://eg.archive.ubuntu.com/ubuntu/ precise-updates main restricted deb-src http://eg.archive.ubuntu.com/ubuntu/ precise-updates main restricted ## NB software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://eg.archive.ubuntu.com/ubuntu/ precise universe deb-src http://eg.archive.ubuntu.com/ubuntu/ precise universe deb http://eg.archive.ubuntu.com/ubuntu/ precise-updates universe deb-src http://eg.archive.ubuntu.com/ubuntu/ precise-updates universe ## NB software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://eg.archive.ubuntu.com/ubuntu/ precise multiverse deb-src http://eg.archive.ubuntu.com/ubuntu/ precise multiverse deb http://eg.archive.ubuntu.com/ubuntu/ precise-updates multiverse deb-src http://eg.archive.ubuntu.com/ubuntu/ precise-updates multiverse ## NB software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://eg.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse deb-src http://eg.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu precise-security main restricted deb-src http://security.ubuntu.com/ubuntu precise-security main restricted deb http://security.ubuntu.com/ubuntu precise-security universe deb-src http://security.ubuntu.com/ubuntu precise-security universe deb http://security.ubuntu.com/ubuntu precise-security multiverse deb-src http://security.ubuntu.com/ubuntu precise-security multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu precise partner # deb-src http://archive.canonical.com/ubuntu precise partner ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. deb http://extras.ubuntu.com/ubuntu precise main deb-src http://extras.ubuntu.com/ubuntu precise main 

所以问题是如何安装这些插件,以享受观看我的电影和video

看看你的错误信息,我猜你要么安装了比标准repo更新版本的软件包(我可能不是这种情况),要么安装了依赖于旧版本软件包的软件包(最有可能)并且它没有更新为最新版本依赖性(因此需要旧版本)。

我建议你这样做:(大多数情况下,它的工作原理)

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

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

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

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

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

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

清理你的缓存并重新下载包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 clean && sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get update && sudo apt-get upgrade && sudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update && 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”。

我和你有同样的问题。 您只需要小心,只需为您的设备架构选择编解码器。 为此,请使窗口告诉您有关编解码器的信息,以便您可以看到包的全名。 如果您有32位处理器,请选择最后使用i386的处理器。 但是,如果您有64位处理器,请选择最后没有i386的处理器。