尝试在 debian sid 上安装 mplayer 时出现此错误消息:
# apt-get install mplayer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mplayer : Depends: libdvdnav4 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
然而,libdvdnav4
已经安装了:
$ apt-cache policy libdvdnav4
libdvdnav4:
Installed: 5.0.1-1
Candidate: 5.0.1-1
Version table:
*** 5.0.1-1 0
500 http://ftp.fr.debian.org/debian/ unstable/main amd64 Packages
500 http://ftp.fr.debian.org/debian/ testing/main amd64 Packages
100 /var/lib/dpkg/status
4.2.0+20120524-2 0
500 http://ftp.fr.debian.org/debian/ stable/main amd64 Packages
我确实尝试使用非官方的 deb-multimedia 存储库来解决该问题。即使启用此存储库后,我也会遇到错误。
$ apt-cache policy mplayer
mplayer:
Installed: (none)
Candidate: 2:1.0~rc4.dfsg1+svn34540-1+b2
Version table:
3:1.1.1+20140928+svn37289-dmo5 0
100 http://www.deb-multimedia.org/ sid/main amd64 Packages
2:1.0~rc4.dfsg1+svn34540-1+b2 0
500 http://ftp.fr.debian.org/debian/ stable/main amd64 Packages
100 /var/lib/dpkg/status
答案1
该mplayer
包不再存在于 sid 中,这就是它无法工作的原因。您可以从您自己的输出中看到这一点apt-cache policy mplayer
。 Sid 未列出。一种替代方法是使用mplayer2
.
通常最好避免使用 deb-multimedia,除非您需要 Debian 本身没有的东西,并且您真的非常知道自己在做什么。尽管维护者是 Debian 开发人员,但总体而言,它与 Debian 的兼容性并不好。如果您确实包含 deb-multimedia,请将其固定为低优先级,这样它就不会干扰系统的其余部分。我有以下内容/etc/apt/preferences
Package: *
Pin: origin www.deb-multimedia.org
Pin-Priority: 1
您可能还想查看方便的前端smplayer
。