我正在尝试在 12.04 上安装 VLC,但遇到了这些错误:
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.0.3-0ubuntu0.12.04.1) but it is not going to be installed
Depends: libsdl-image1.2 (>= 1.2.10) but it is not installable
Depends: libtar0 but it is not installable
Depends: libxcb-keysyms1 (>= 0.3.8) but it is not installable
Recommends: vlc-plugin-notify (= 2.0.3-0ubuntu0.12.04.1) but it is not going to be installed
Recommends: vlc-plugin-pulse (= 2.0.3-0ubuntu0.12.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我该如何修复这些错误并安装 VLC?
答案1
尝试这些命令:
sudo apt-get clean && sudo apt-get update
sudo apt-get upgrade
然后尝试重新安装并查看是否有效。
另一个选择是,你可以从VLC 官方网站
答案2
打开终端并运行
sudo apt-get -f install
答案3
我想这将帮助您解决依赖问题并安装 VLC。
rm -R /var/lib/apt/lists/partial/*
apt-get 更新 && apt-get 升级
apt-get 安装 -f
安装 vlc
祝你好运。