下载软件包(例如 VLC 媒体播放器)时出错

下载软件包(例如 VLC 媒体播放器)时出错

我已经安装了 Ubuntu 12.04,但当我尝试从 Ubuntu 软件中心安装 VLC 媒体播放器时,发生了一些缓存更新(据我所知),但我无法安装它,因为下载和安装花费了太多时间。然后我关闭了我的 PC。

当我再次尝试安装 VLC 时出现此错误。

Package dependencies cannot be resolved
This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.
The following packages have unmet dependencies:

vlc: Depends: vlc-nox (= 2.0.5-0ubuntu0.12.04.1) but 2.0.5-0ubuntu0.12.04.1 is to be installed
 Depends: libavcodec-extra-53 (>= 4:0.8-1~) but 4:0.8.6ubuntu0.12.04.1 is to be installed
 Depends: libavutil-extra-51 (>= 4:0.8-1~) but 4:0.8.6ubuntu0.12.04.1 is to be installed
 Depends: libc6 (>= 2.15) but 2.15-0ubuntu10.4 is to be installed
 Depends: libfreetype6 (>= 2.2.1) but 2.4.8-1ubuntu2.1 is to be installed
 Depends: libgcc1 (>= 1:4.1.1) but 1:4.6.3-1ubuntu5 is to be installed
 Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.1-0ubuntu4.4 is to be installed
 Depends: libqtgui4 (>= 4:4.7.0~beta1) but 4:4.8.1-0ubuntu4.4 is to be installed
 Depends: libsdl-image1.2 (>= 1.2.10) but it is not going to be installed
 Depends: libstdc++6 (>= 4.6) but 4.6.3-1ubuntu5 is to be installed
 Depends: libtar0 but it is not going to be installed
 Depends: libxcb-keysyms1 (>= 0.3.8) but it is not going to be installed
 Depends: zlib1g (>= 1:1.2.3.3.dfsg) but 1:1.2.3.4.dfsg-3ubuntu4 is to be installed

如何修复它?

答案1

在终端中输入sudo apt-get install -f。这将尝试修复损坏的依赖关系。

答案2

在终端中尝试一下。

运行@Alaa Ali 的代码sudo apt-get install -f,然后sudo apt-get clean && sudo apt-get update
如果不起作用,请尝试运行sudo apt-get purge vlc && sudo apt-get update一旦其中一个修复程序起作用,请尝试通过终端安装 vlc sudo apt-get install vlc

希望这可以帮助!

相关内容