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

Ban*_*ash 7 command-line dependencies 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.
Run Code Online (Sandbox Code Playgroud)

注意:我使用的是 Ubuntu 14.04 LTS

Aby*_*Aby 6

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

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

您需要在终端中使用以下代码添加xorg-edgers 新 X 破解存储库:

sudo add-apt-repository ppa:xorg-edgers/ppa 
apt-cache policy libgl1-mesa-glx libglapi-mesa
Run Code Online (Sandbox Code Playgroud)

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

sudo apt-get update
sudo apt-get install vlc
Run Code Online (Sandbox Code Playgroud)


Ban*_*ash 0

实际上我在同一天解决了这个问题,问题出在最近的 archive.ubuntu.com (Ubuntu 存档服务器)上,我将其所有实例(在我的例子中出现了 13 次)更改为 us.archive.ubuntu.com 并且它有效。我更改此设置的配置文件是/etc/apt/sources.list。

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