未解决的 Gstreamer 依赖关系

未解决的 Gstreamer 依赖关系

我是 Ubuntu 新手,我试图在从 Super OS 11.10(Ubuntu 11.10 的重新打包,包含更多应用程序和插件,例如:vlc 和 wine)升级的 Ubuntu 12.04.3LTS 上安装 gstreamer,但出现以下错误:

The following packages have unmet dependencies:

gstreamer0.10-plugins-bad: Depends: libass4 (>= 0.9.7) but it is not going to be installed
                           Depends: libc6 (>= 2.15) but 2.15-0ubuntu10.4 is to be installed
                           Depends: libcairo2 (>= 1.2.4) but 1.10.2-6.1ubuntu3 is to be installed
                           Depends: libcdaudio1 (>= 0.99.12p2) but it is not going to be installed
                           Depends: libcelt0-0 (>= 0.7.1) but it is not going to be installed
                           Depends: libcurl3-gnutls (>= 7.16.2-1) but 7.22.0-3ubuntu4.2 is to be installed
                           Depends: libdca0 but it is not going to be installed
                           Depends: libdirac-encoder0 but it is not going to be installed
                           Depends: libdirectfb-1.2-9 but it is not going to be installed
                           Depends: libdvdnav4 but it is not going to be installed
                           Depends: libdvdread4 but it is not going to be installed
                           Depends: libfaad2 but it is not going to be installed
                           Depends: libgcc1 (>= 1:4.1.1) but 1:4.6.3-1ubuntu5 is to be installed
                           Depends: libglib2.0-0 (>= 2.31.8) but 2.32.3-0ubuntu1 is to be installed
                           Depends: libgme0 (>= 0.5.5) but it is not going to be installed
                           Depends: libgsm1 (>= 1.0.13) but 1.0.13-3 is to be installed
                           Depends: libgstreamer-plugins-bad0.10-0 (= 0.10.22.3-2ubuntu2.2) but 0.10.22.3-2ubuntu2.2 is to be installed
                           Depends: libgstreamer-plugins-base0.10-0 (>= 0.10.36) but 0.10.36-1ubuntu0.1 is to be installed
                           Depends: libgstreamer0.10-0 (>= 0.10.36) but 0.10.36-1ubuntu1 is to be installed
                           Depends: libkate1 (>= 0.4.1) but it is not going to be installed
                           Depends: libmimic0 but it is not going to be installed
                           Depends: libmms0 (>= 0.4) but it is not going to be installed
                           Depends: libmodplug1 but it is not going to be installed
                           Depends: libmpcdec6 (>= 1:0.1~r435) but 2:0.1~r459-1ubuntu1 is to be installed
                           Depends: libofa0 (>= 0.9.3) but it is not going to be installed
                           Depends: libopenal1 (>= 1:1.13) but 1:1.13-4ubuntu3 is to be installed
                           Depends: libopenspc0 but it is not going to be installed
                           Depends: liborc-0.4-0 (>= 1:0.4.16) but 1:0.4.16-1ubuntu2 is to be installed
                           Depends: libpng12-0 (>= 1.2.13-4) but 1.2.46-3ubuntu4 is to be installed
                           Depends: librsvg2-2 (>= 2.14.4) but 2.36.1-0ubuntu1 is to be installed
                           Depends: librtmp0 (>= 2.3) but 2.4~20110711.gitc28f1bab-1 is to be installed
                           Depends: libschroedinger-1.0-0 (>= 1.0.9) but 1.0.11-1 is to be installed
                           Depends: libslv2-9 (>= 0.6.4-1~) but it is not going to be installed
                           Depends: libsndfile1 (>= 1.0.20) but 1.0.25-4 is to be installed
                           Depends: libsoundtouch0 but it is not going to be installed
                           Depends: libspandsp2 (>= 0.0.6~pre18) but it is not going to be installed
                           Depends: libssl1.0.0 (>= 1.0.0) but 1.0.1-4ubuntu5.10 is to be installed
                           Depends: libstdc++6 (>= 4.1.1) but 4.6.3-1ubuntu5 is to be installed
                           Depends: libvo-aacenc0 (>= 0.1.0~rc1) but it is not going to be installed
                           Depends: libvo-amrwbenc0 but it is not going to be installed
                           Depends: libvpx1 (>= 1.0.0) but 1.0.0-1 is to be installed
                           Depends: libwildmidi1 (>= 0.2.3) but it is not going to be installed
                           Depends: libxvidcore4 (>= 1.2.2) but it is not going to be installed
                           Depends: libzbar0 (>= 0.10) but it is not going to be installed
                           Depends: libzvbi0 (>= 0.2.11) but it is not going to be installed.

请问我该怎么办,我已经尝试过sudo apt-get clean&&sudo apt-get update并将服务器选项更改为主服务器,但无济于事。

答案1

这可能是因为升级到较新的版本,但一些软件已经安装,所以导致软件包的依赖关系未得到满足。

您可以尝试以下方法来修复未满足依赖关系的软件包:

  • 首先彻底卸载那些有未满足依赖关系的软件包,例如winevlc以及gstreamer它本身。打开终端(CTRL++ )并连续执行以下命令:ALTT

    sudo apt-get autoclean
    sudo apt-get autoremove
    sudo apt-get clean
    sudo apt-get --purge remove vlc && sudo apt-get autoremove vlc
    sudo apt-get --purge remove *gstreamer* && sudo apt-get autoremove *gstreamer*
    sudo apt-get --purge remove wine && sudo apt-get autoremove wine
    

    它应该删除所有未满足依赖关系的包。

    • 一旦所有软件包都被删除,请执行以下命令来更新/升级并安装您的软件包:

      sudo apt-get update
      sudo apt-get upgrade
      sudo apt-get -f install vlc
      

      gstreamer如果 vlc 成功安装或者您想要安装每个软件包,您也可以用 wine 替换 vlc 。

希望它能够顺利地为您工作。


这是最适合您的解决方案

我总是用Synaptic 软件包管理器解决此类问题。使用它你可以强行安装其他版本的软件包。

  • 如果你尚未安装,请首先安装 synaptic 包管理器:

    $ sudo apt-get install synaptic
    
  • 然后打开 synaptic 包管理器 -> 点击自定义过滤器左下 -> 点击破碎的左上角,它将列出所有损坏的包(如果有的话,否则什么也不会显示)尝试修复所有损坏的软件包。此外,如果在更多选项中有任何残留软件包,您将获得剩余包

  • 搜索您想要的包降级/升级,只需单击即可突出显示不标记(勾选),选择包裹从菜单 ->原力版并从列表中选择其他版本。然后点击申请降级/升级它。(您可能还会发现所选的包依赖于其他包,然后搜索该包并重复此步骤,直到修复所有问题

  • 现在尝试安装您的实际软件包,它将毫无问题地安装。

  • 您可以获取有关如何使用 Synaptic 包管理器

希望对你有帮助。

相关内容