The following packages have unmet dependencies:
vlc : Depends: vlc-nox (= 2.1.4+git20150226+r54594+19+11~ubuntu14.04.1) but it is not going to be installed
Depends: libsdl-image1.2 (>= 1.2.10) but it is not installable
Depends: libtar0 but it is not installable
Depends: libva-x11-1 (> 1.3.0~) but 1.0.15-4 is to be installed
Depends: libva1 (> 1.3.0~) but 1.0.15-4 is to be installed
Depends: libvlccore7 (>= 2.1.0) but it is not going to be installed
Recommends: vlc-plugin-notify (= 2.1.4+git20150226+r54594+19+11~ubuntu14.04.1) but it is not going to be installed
Recommends: vlc-plugin-pulse (= 2.1.4+git20150226+r54594+19+11~ubuntu14.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我试过
sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
sudo apt-get purge vlc vlc-nox libsdl-image1.2 libtar0 libva-x11-1 libva1 libvlccore7 vlc-plugin-notify vlc-plugin-pulse
但错误仍然存在。VLC 不是唯一的东西。我尝试安装的许多其他软件包都给出了类似的依赖性错误,最终我放弃了安装。
我已经使用 Ubuntu 一段时间了。我只是不明白为什么这种情况时有发生。请帮忙...
编辑:
输出apt-cache policy vlc vlc-nox libsdl-image1.2 libtar0 libva-x11-1 libva1 libvlccore7
vlc:
Installed: (none)
Candidate: 2.1.4+git20150226+r54594+19+11~ubuntu14.04.1
Version table:
2.1.4+git20150226+r54594+19+11~ubuntu14.04.1 0
500 http://ppa.launchpad.net/videolan/stable-daily/ubuntu/ trusty/main i386 Packages
vlc-nox:
Installed: (none)
Candidate: 2.1.4+git20150226+r54594+19+11~ubuntu14.04.1
Version table:
2.1.4+git20150226+r54594+19+11~ubuntu14.04.1 0
500 http://ppa.launchpad.net/videolan/stable-daily/ubuntu/ trusty/main i386 Packages
libsdl-image1.2:
Installed: (none)
Candidate: (none)
Version table:
libtar0:
Installed: (none)
Candidate: (none)
Version table:
libva-x11-1:
Installed: (none)
Candidate: (none)
Version table:
libva1:
Installed: (none)
Candidate: (none)
Version table:
libvlccore7:
Installed: (none)
Candidate: 2.1.4+git20150226+r54594+19+11~ubuntu14.04.1
Version table:
2.1.4+git20150226+r54594+19+11~ubuntu14.04.1 0
500 http://ppa.launchpad.net/videolan/stable-daily/ubuntu/ trusty/main i386 Packages
答案1
正如您在输出中看到的,apt-cache policy …
有些包没有安装候选,但情况不应该如此。因此,快速搜索这里显示所有包都可以在 Universe 存储库中找到,例如包libsdl-image1.2
。
添加存储库:
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install vlc