我正在使用 Ubuntu 12.04。当我尝试使用 mplayer 打开视频文件(例如扩展名为 .mkv 的文件)时,它说需要一些多媒体插件,例如 gstreamer。
当我尝试在 Ubuntu 软件中心安装所需的多媒体插件时出现了此错误消息。
此错误可能是由于缺少或无法安装所需的附加软件包而导致的。此外,还可能是不允许同时安装的软件包之间存在冲突。
当我尝试在终端安装所需的多媒体插件时出现了此错误消息。
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
我尝试了,但没有任何反应。
我的/etc/apt/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
## N.B. 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
## N.B. 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
## N.B. 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
如何安装这些必需的多媒体插件?
答案1
查看您的错误消息,我猜测您要么安装了比标准存储库更新版本的软件包(我可能不是这种情况),要么安装了依赖于旧版本软件包的软件包(最有可能),并且它没有更新最新的依赖项(因此需要旧版本)。
我建议你这样做:(大多数情况下,它是有效的)
sudo apt-get install aptitude
使用命令安装 aptitude尝试使用以下命令安装您想要安装的软件包
sudo aptitude install <package-name>
Aptitude 会向您显示错误并向您提供可能的(最佳)解决方案。系统会要求您从 3 个选项中进行选择,并显示类似以下消息
Accept this solution? [Y/n/q/?]
如果您发现所需的软件包未列在(将要)安装列表中,只需按n让 aptitude 为您提供下一个最好的解决方案。经过多次尝试,(如果你幸运的话)您将看到所需的软件包位于可安装列表中,并且导致依赖性问题的软件包将显示在降级列表。在此阶段按是接受解决方案。软件包将被降级以满足安装请求。
很抱歉,我无法给你这样的 aptitude 演示版本, 但是你可以查看此页面看看它的一些动作。
答案2
清理缓存并重新下载软件包 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
使用命令安装 aptitude
尝试使用以下命令安装您想要安装的软件包
sudo aptitude install <package-name>
Aptitude 会向您显示错误并向您提供可能的(最佳)解决方案。系统会要求您从 3 个选项中进行选择,并显示类似以下消息
Accept this solution? [Y/n/q/?]
如果您发现您想要的软件包未列在(将要)安装的列表中,只需按 n 让 aptitude 为您提供下一个最佳解决方案。经过几次尝试,(如果您幸运的话)您将看到您想要的软件包在可安装列表中,而导致依赖性问题的软件包将显示在降级列表中。在此阶段按 Y 接受解决方案。软件包将降级以满足安装要求。
很抱歉,我无法为您提供这样的 aptitude 演示版,但您可以查看此页面来了解它的一些操作。
如果在执行此操作时您可以识别损坏的包裹,则此命令将非常强制地将其删除:
sudo dpkg --remove -force --force-remove-reinstreq packagename 当然,用真实名称替换“packagename”。
答案3
我遇到了和你一样的问题。你只需要小心,只选择适合你的设备架构的编解码器。为此,请将告诉你编解码器的窗口放大,以便你可以看到软件包的全名。如果你有 32 位处理器,请选择末尾带有 i386 的。但是,如果你有 64 位处理器,请选择末尾没有 i386 的。