VLC 无法安装在 Ubuntu 15.04 中

VLC 无法安装在 Ubuntu 15.04 中

在我升级到 15.04 之前,VLC 运行良好。当我尝试通过软件中心安装时,收到以下错误消息:

The following packages have unmet dependencies:

 vlc: Depends: vlc-nox (= 2.2.0-1) but 2.2.0+ppa2.4 is to be installed
 Depends: libavcodec-extra-56 (>= 6:11.2) but 6:11.2-1 is to be installed
 Depends: libavutil54 (>= 6:11~beta1) but 6:11.2-1 is to be installed
 Depends: libc6 (>= 2.16) but 2.21-0ubuntu4 is to be installed
 Depends: libegl1-x11 but it is a virtual package
 Depends: libfreetype6 (>= 2.2.1) but 2.5.2-2ubuntu3 is to be installed
 Depends: libgcc1 (>= 1:4.1.1) but 1:5.1~rc1-0ubuntu1 is to be installed
 Depends: libgles1 but it is a virtual package
 Depends: libgles2 but it is a virtual package
 Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6 is to be installed
 Depends: libqtgui4 (>= 4:4.8.0) but 4:4.8.6+git64-g5dc8b2b+dfsg-3~ubuntu6 is to be installed
 Depends: libstdc++6 (>= 4.9) but 4.9.2-10ubuntu13 is to be installed
 Depends: zlib1g (>= 1:1.2.3.3) but 1:1.2.8.dfsg-2ubuntu1 is to be installed

并通过终端:

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 resolve the situation:

The following packages have unmet dependencies:
 vlc : Depends: vlc-nox (= 2.2.0-1) but 2.2.0+ppa2.4 is to be installed
       Recommends: vlc-plugin-notify (= 2.2.0-1) but it is not going to be installed
       Recommends: vlc-plugin-samba (= 2.2.0-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

当我这样做时,dpkg --get-selections | grep hold似乎没有包裹被扣留

当我这样做时,dpkg --get-selections | grep vlc它显示了这一点:

libvlc5                     install
libvlccore8                 install
vlc-data                    install
vlc-nox                     install

此外,当我尝试通过终端删除它时,它说它没有安装,因此无法删除。我也尝试了每日发布的 videolan ppa,结果同样令人遗憾。我怎样才能找回我的旧 VLC?谢谢你的帮助!

答案1

问题似乎出在vlc-nox,Ubuntu 升级时它没有被删除。如果你先删除它,一切都应该正常工作。类似这样的:

sudo apt-get remove vlc-nox
sudo apt-get autoremove
sudo apt-get update

然后安装 vlc(我使用 3.0 版本):

sudo add-apt-repository ppa:videolan/master-daily
sudo apt-get update
sudo apt-get install vlc

这应该可以让它工作。此 PPA 包含每天都在变化,可能不稳定或损坏发展建设。查看PPA 描述

该 PPA 包含来自 VLC 开发分支的每日构建。

相关内容