Vlc-无法解析软件包依赖关系

Vlc-无法解析软件包依赖关系

我尝试在 Ubuntu 14.04 LTS 中安装 Vlc 2.2,因为它在 Ubuntu 软件中心不可用,使用以下命令:

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update && sudo apt-get install vlc 

但它显示出错误:

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 2.1.6-0ubuntu14.04.1 is 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
   Breaks: vlc-nox (< 2.2.0~pre2-2~) but 2.1.6-0ubuntu14.04.1 is to be installed
vlc-nox : Depends: libvlccore7 (>= 2.1.0) but it is not going to be installed
       Recommends: libdvdcss2 but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

现在,即使我尝试使用 Ubuntu 软件中心安装它,它也会显示无法解析软件包依赖关系的错误。

请帮忙。提前致谢。

答案1

VLC 也存在于 Ubuntu Repos 中。您可以在启用 Universe Repo 后安装它。当您安装 Ubuntu 并选择安装第三方软件并在安装时安装更新时,此功能应该会自动为您启用。

如果您在安装过程中错过了它,您可以通过打开软件和源来启用 unniverse 存储库并选择如图所示的存储库。

启用 Universe 和 Multiverse Repos

点击关闭后,您可以选择重新加载缓存。

重新加载软件缓存

完成后,您应该在软件中心看到 VLC,或者您可以通过命令行安装它。

除非您在官方 repo 中找不到您想要的东西或者您想要最新和最好的东西,否则不需要添加任何第三方 repo。

PPA 有时会因为库不匹配而破坏您的系统。务必谨慎使用 PPA。

相关内容