我使用 ubuntu 14.04LTS,当我输入:
sudo apt-get install vlc
我收到此错误:
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:
vlc : Depends: vlc-nox (= 3.0.0~~git20150319+r59816+33~ubuntu14.04.1) but it is not going to be installed
Depends: libavcodec55 (>= 6:9.1-1) but it is not installable or
libavcodec-extra-55 (>= 6:10~~git20131218.b3189af~ubuntu14.04.1) but it is not installable
Depends: libavutil53 (>= 6:9.1-1) but it is not installable
Recommends: vlc-plugin-notify (= 3.0.0~~git20150319+r59816+33~ubuntu14.04.1) but it is not going to be installed
Recommends: vlc-plugin-samba (= 3.0.0~~git20150319+r59816+33~ubuntu14.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
答案1
根据您的问题,您必须按照指示禁用不稳定的 ppa/repos这里
然后打开终端并运行:
sudo apt-get remove --purge vlc-nox
sudo apt-get autoclean
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get autoremove
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install vlc
如果您想使用更新版本的 VLC 媒体播放器而不是官方 Ubuntu 存储库,您可以使用 Videolan 官方稳定的每日 PPA:
sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install vlc
添加:
对于那些在 14.04LTS 上将 vlc 升级到 2.2.0 时遇到问题的人,我甚至遇到了这个问题,因为ppa:videolan/stable-daily
它仍然安装了 2.1.6 版本。要将其升级到 2.2.0 版本,请添加此trusty-media
PPA:
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install --reinstall vlc
附言
请记住,此 ppa 还包含其他媒体更新,以查看如果使用此命令运行升级检查,究竟会发生什么变化:
cat /var/lib/apt/lists/ppa.launchpad.net_mc3man_trusty-media_*_Packages | grep "Package:" | sort | uniq
如果您想在安装 vlc 后清除它,那么:
sudo ppa-purge ppa:mc3man/trusty-media
sudo apt-get update