无法在 ubuntu 上安装 mplayer 或 vlc

无法在 ubuntu 上安装 mplayer 或 vlc

我正在尝试在 ubuntu feisty 上安装 Mplayer 或 VLC 播放器,但无法做到。我尝试使用 apt-get:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  mplayer: Depends: libasound2 (> 1.0.16) but 1.0.13-1ubuntu5 is to be installed
           Depends: libavcodec51 (>= 0.svn20080206-8) but it is not going to be installed or
                    libavcodec-unstripped-51 (>= 0.svn20080206-8) but it is not installable
           Depends: libavformat52 (>= 0.svn20080206-8) but it is not going to be installed or
                    libavformat-unstripped-52 (>= 0.svn20080206-8) but it is not installable
           Depends: libavutil49 (>= 0.svn20080206-8) but it is not going to be installed or
                    libavutil-unstripped-49 (>= 0.svn20080206-8) but it is not installable
           Depends: libcaca0 (>= 0.99.beta14-1) but 0.99.beta11.debian-2build1 is to be installed
           Depends: libcdparanoia0 (>= 3.10.2+debian) but 3.10+debian~pre0-4build1 is to be installed
           Depends: libcucul0 (>= 0.99.beta14-1) but 0.99.beta11.debian-2build1 is to be installed
           Depends: libfaad0 (>= 2.6.1) but it is not going to be installed
           Depends: libfribidi0 (>= 0.10.9) but 0.10.7-4build1 is to be installed
           Depends: libgif4 (>= 4.1.6) but it is not going to be installed
           Depends: libjack0 (>= 0.109.2) but it is not going to be installed
           Depends: liblzo2-2 but it is not going to be installed
           Depends: libopenal1 but it is not going to be installed
           Depends: libpostproc51 (>= 0.svn20080206-8) but it is not going to be installed or
                    libpostproc-unstripped-51 (>= 0.svn20080206-8) but it is not installable
           Depends: libspeex1 (>= 1.2~beta3-1) but 1.1.12-3 is to be installed
           Depends: libsvga1
           Depends: libswscale0 (>= 0.svn20080206-8) but it is not going to be installed or
                    libswscale-unstripped-0 (>= 0.svn20080206-8) but it is not installable
           Depends: mplayer-skin
  python-apt: Depends: libapt-inst-libc6.7-6-1.1
              Depends: libapt-pkg-libc6.7-6-4.6
  scim-gtk2-immodule: Depends: libscim8c2a (>= 1.4.6) but 1.4.4-7ubuntu1 is to be installed
  scim-modules-socket: Depends: libscim8c2a (>= 1.4.6) but 1.4.4-7ubuntu1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我尝试了 apt-get -f install,但它不起作用。请帮帮我,该怎么办?!

答案1

如果这没有帮助并且您仍然收到错误:

以下软件包具有未满足的依赖关系。mplayer:依赖:mplayer-nogui 但无法安装依赖:libvdpau1 但无法安装 E:损坏的软件包

尝试安装这些包:

$ sudo apt-get install mplayer-nogui

以下软件包具有未满足的依赖关系。mplayer-nogui:依赖:libvdpau1 但无法安装 E:损坏的软件包

然后再次:

$ sudo apt-get install libvdpau1

软件包 libvdpau1 不可用,但另一个软件包引用了它。这可能意味着该软件包缺失、已被淘汰或只能从其他来源获得 E:软件包 libvdpau1 没有安装候选项 $

啊哈,明白了!通过添加以下内容可修复此问题:

deb http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu $your_distro main
deb-src http://ppa.launchpad.net/team-xbmc-svn/ppa/ubuntu $your_distro main

/etc/apt/source.list并运行:

sudo apt-get update

答案2

我觉得您的 /etc/apt/sources.list 文件可能无效。请尝试:

sudo apt-get update

然后,尝试再次安装 VLC。

相关内容