VLC安装问题(通过终端安装)

我想在Ubuntu上安装VLC,它没有工作,更新系统,而不是升级它,但它仍然无法正常工作。

我使用了Ubuntu软件中心和终端。

在终端我输入命令sudo apt-get install vlc

错误信息终端给我如下。

 arif@arifpc:~$ sudo apt-get install vlc [sudo] password for arif: 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 (= 2.2.0~rc1-1ppa2~trusty) but it is not going to be installed Depends: libavcodec56 (>= 7:2.4~) but it is not going to be installed Depends: libgles1-mesa (>= 7.8.1) but it is not installable or libgles1 but it is not installable Depends: libsdl-image1.2 (>= 1.2.10) but it is not installable Depends: libsdl1.2debian (>= 1.2.11) but it is not installable Depends: libva-drm1 but it is not installable Depends: libva-x11-1 (> 1.3.0~) but it is not installable Depends: libva1 (> 1.3.0~) but it is not installable Depends: libvlccore8 (>= 2.2.0~pre1) but it is not going to be installed Depends: libxcb-composite0 but it is not installable Depends: libxcb-xv0 (>= 1.2) but it is not installable Recommends: vlc-plugin-notify (= 2.2.0~rc1-1ppa2~trusty) but it is not going to be installed Recommends: vlc-plugin-samba (= 2.2.0~rc1-1ppa2~trusty) but it is not going to be installed E: Unable to correct problems, you have held broken packages. 

注意:我正在使用Ubuntu 14.04 LTS

从Ubuntu 14.04升级到14.10之后,这发生在我身上。

我发现这个解决方案帮助了我。

您需要在终端中添加带有此代码的xorg-edgers全新X破解存储库:

 sudo add-apt-repository ppa:xorg-edgers/ppa apt-cache policy libgl1-mesa-glx libglapi-mesa 

然后重新启动你的电脑。 然后使用以下命令更新存储库并安装VLC:

 sudo apt-get update sudo apt-get install vlc 

运行以下命令

sudo apt-get -f install

sudo dpkg --configure -a

这应该安装所有缺少的依赖项并配置dpkg。

实际上我在同一天解决了这个问题,问题出在最近的archive.ubuntu.com(Ubuntu Archive Server)我把它的所有实例(在我的情况下发生了13次)更改为us.archive.ubuntu.com并且它有效。 我更改此设置的配置文件是/etc/apt/sources.list。

编辑 :最近我在askubuntu上发现了另一个问题,如果您不想更改archive.ubuntu地址,这个问题的接受答案也是一个很好的解决方案。
这是那个问题。