下载 vlc 时出现问题

下载 vlc 时出现问题

我是 ubuntu 12.04 的新手,在笔记本电脑上安装 vlc 时遇到很多问题,每次我尝试安装它时都会收到软件包损坏的错误。我尝试过修复、清理和删除软件包并重新安装它,但都徒劳无功。

我尝试手动安装所有软件包,但出现了同样的问题

sudo apt-get install vlc vlc-nox

我尝试使用软件中心安装 vlc,但显示以下错误

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.8-0ubuntu0.12.04.1) but 2.0.8-0ubuntu0.12.04.1 is to be installed
 Depends: libavcodec-extra-53 (>= 4:0.8-1~) but 4:0.8.9ubuntu0.12.04.1 is to be installed
 Depends: libavutil-extra-51 (>= 4:0.8-1~) but 4:0.8.9ubuntu0.12.04.1 is to be installed
 Depends: libc6 (>= 2.15) but 2.15-0ubuntu10.5 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

vlc nox 显示以下错误

The following packages have unmet dependencies:

vlc-nox: Depends: liba52-0.7.4 but it is not going to be installed
Depends: libavcodec-extra-53 (>= 4:0.8-1~) but 4:0.8.9ubuntu0.12.04.1 is to be installed
Depends: libavformat-extra-53 (>= 4:0.8-1~) but 4:0.8.9ubuntu0.12.04.1 is to be installed
Depends: libavutil-extra-51 (>= 4:0.8-1~) but 4:0.8.9ubuntu0.12.04.1 is to be installed
Depends: libc6 (>= 2.15) but 2.17-93ubuntu4 is to be installed
Depends: libcddb2 but it is not going to be installed
Depends: libdvbpsi7 (>= 0.2.0) but it is not going to be installed
Depends: libebml3 but it is not going to be installed
Depends: libfontconfig1 (>= 2.8.0) but 2.10.93-0ubuntu1 is to be installed
Depends: libfreetype6 (>= 2.2.1) but 2.4.12-0ubuntu1 is to be installed
Depends: libgcc1 (>= 1:4.1.1) but 1:4.8.1-10ubuntu8 is to be installed
Depends: libgnutls26 (>= 2.12.6.1-0) but 2.12.23-1ubuntu4 is to be installed
Depends: libmatroska5 but it is not going to be installed
Depends: libmpcdec6 (>= 1:0.1~r435) but 2:0.1~r459-1ubuntu1 is to be installed
Depends: libmpeg2-4 but it is not going to be installed
Depends: libncursesw5 (>= 5.6+20070908) but 5.9+20130608-1ubuntu1 is to be installed
Depends: libpostproc-extra-52 (>= 4:0.8-1~) but 4:0.8.9ubuntu0.12.04.1 is to be installed
Depends: libresid-builder0c2a but it is not going to be installed
Depends: libsidplay2 but it is not going to be installed
Depends: libsmbclient (>= 3.0.24) but 2:3.6.18-1ubuntu3 is to be installed
Depends: libstdc++6 (>= 4.6) but 4.8.1-10ubuntu8 is to be installed
Depends: libswscale-extra-2 (>= 4:0.8-1~) but 4:0.8.9ubuntu0.12.04.1 is to be installed
Depends: libtwolame0 but it is not going to be installed
Depends: libudev0 (>= 147) but 175-0ubuntu9.4 is to be installed
Depends: libvcdinfo0 (> 0.7.23) but it is not going to be installed
Depends: libx264-120 but it is not going to be installed
Depends: libxml2 (>= 2.7.4) but 2.9.1+dfsg1-3ubuntu2 is to be installed
Depends: zlib1g (>= 1:1.2.0.2) but 1:1.2.8.dfsg-1ubuntu1 is to be installed

@avinash 我尝试了第一个命令并得到了这个

E:部分索引文件下载失败。它们已被忽略,或已使用旧文件代替。W:无法获取http://ppa.launchpad.net/lucid-bleed/ppa/ubuntu/dists/precise/main/source/Sources 404 未找到 W:无法获取 gzip:/var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-amd64_Packages 哈希总和不匹配

答案1

在终端上尝试这些命令,

sudo rm -fR /var/lib/apt/lists/*
sudo sh -c "echo 'Dir::Ignore-Files-Silently:: \"(.save|.distupgrade)$\";' > /etc/apt/apt.conf.d/99ignoresave"
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install build-essential
sudo apt-get install vlc vlc-nox

相关内容