我是 Ubuntu 新手。在尝试更新 vlc 以便能够播放某些视频时,我搞砸了,现在我无法安装新版本的 VLC 媒体播放器。在执行此操作时,我使用的是 Ubuntu 14.04。我以为升级到 15.04 后会修复此问题,但这没有帮助。这是我尝试通过终端安装 vlc 时得到的结果。
ricky@ricky-pc:~$ sudo apt-get install vlc
[sudo] password for ricky:
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+git20160309+r58687+31+14~ubuntu15.04.1) but 2.2.1~trusty1 is to be installed
Depends: libgles1-mesa (>= 7.8.1) but it is not installable or
libgles1
Depends: libva-drm1 (>= 1.1.0) but it is not installable
Depends: libva-x11-1 (>= 1.0.3) but it is not installable
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+git20160309+r58687+31+14~ubuntu15.04.1) but it is not going to be installed
Recommends: vlc-plugin-samba (= 2.2.0+git20160309+r58687+31+14~ubuntu15.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
当我尝试从软件中心安装 VLC 时,弹出此消息“无法解析软件包依赖关系”。
请帮我解决。提前致谢。
答案1
为了解决unmet dependency
错误,您可以运行以下命令:
sudo dpkg --configure -a
sudo apt-get -f install
然后,尝试安装、更新……
答案2
sudo apt-get purge vlc
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install vlc
答案3
键入以下命令:
sudo apt-get -f install
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install vlc vlc-plugin-*
答案4
根据你的 Ubuntu 版本下载最新的 vlc deb 文件 http://pkgs.org/download/vlc
使用以下命令安装包并获取存储库:
sudo gdebi 下载的软件包名称.deb
如果你已经安装了缺少的依赖项,请使用以下命令下载并安装缺少的依赖项
sudo apt-get -f 安装