安装 vlc 播放器时出现问题

安装 vlc 播放器时出现问题

我无法在 Ubuntu(14.04) 上安装 vlc 播放器。我已阅读并尝试运行命令,但是当我运行此命令时:

sudo apt-get install 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.1.4+git20150226+r54594+19+11~ubuntu14.04.1) but 2.1.6-0ubuntu14.04.1 is to be installed
       Recommends: vlc-plugin-notify (= 2.1.4+git20150226+r54594+19+11~ubuntu14.04.1) but 2.1.6-0ubuntu14.04.1 is to be installed
       Recommends: vlc-plugin-pulse (= 2.1.4+git20150226+r54594+19+11~ubuntu14.04.1) but 2.1.6-0ubuntu14.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

问题是什么?您有什么办法可以解决这个问题吗?或者您能告诉我安装 vlc media player 的正确步骤吗?


更新:

删除 PPA 之后,输出如下apt-cache policy vlc

vlc: 
  Installed:  (none) 
  Candidate:  2.1.2-2build2 
    Version table: 
      2.1.6-0ubuntu14.04.1 0 
        100 /var/lib/dpkg/status 
      2.1.2-2build2 0 
        500 archive.ubuntu.com/ubuntu trusty/universe i386 Packages 
      2.0.1-4 0 
        500 archive.ubuntu.com/ubuntu precise/universe i386 Packages

以及命令:

apt-cache policy vlc-nox vlc-plugin-notify vlc-plugin-pulse

给出以下结果:

vlc-nox:
  Installed: 2.1.6-0ubuntu14.04.1
  Candidate: 2.1.6-0ubuntu14.04.1
  Version table:
 *** 2.1.6-0ubuntu14.04.1 0
        100 /var/lib/dpkg/status
     2.1.2-2build2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
     2.0.1-4 0
        500 http://archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
vlc-plugin-notify:
  Installed: 2.1.6-0ubuntu14.04.1
  Candidate: 2.1.6-0ubuntu14.04.1
  Version table:
 *** 2.1.6-0ubuntu14.04.1 0
        100 /var/lib/dpkg/status
     2.1.2-2build2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
     2.0.1-4 0
        500 http://archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
vlc-plugin-pulse:
  Installed: 2.1.6-0ubuntu14.04.1
  Candidate: 2.1.6-0ubuntu14.04.1
  Version table:
 *** 2.1.6-0ubuntu14.04.1 0
        100 /var/lib/dpkg/status
     2.1.2-2build2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
     2.0.1-4 0
        500 http://archive.ubuntu.com/ubuntu/ precise/universe i386 Packages

答案1

不要使用 PPA,vlc从 Ubuntu 存储库安装。

  1. 删除已安装的 PPA:

    sudo add-apt-repository --remove ppa:videolan/stable-daily
    
  2. 清空包缓存:

    sudo apt-get clean
    
  3. 更新您的包裹清单:

    sudo apt-get update
    
  4. 将所有 vlc 包降级/安装到存储库版本:

    sudo apt-get install --reinstall vlc=2.1.2-2build2 vlc-data=2.1.2-2build2 vlc-nox=2.1.2-2build2 vlc-plugin-notify=2.1.2-2build2 vlc-plugin-pulse=2.1.2-2build2
    

根据您的 Ubuntu 版本,您目前(2015 年 11 月 20 日)可能会获得最高版本的 VLC2.2.1-3在 Wily (15.10) 上。较旧的 Ubuntu 版本可能在其存储库中有较旧的 VLC 版本。

您可以使用以下命令检查可用的版本:

apt-cache policy vlc

我的 15.10 64 位系统上的示例输出如下:

vlc:
  Installed: (none)
  Candidate: 2.2.1-3
  Version table:
     2.2.1-3 0
        500 http://[YOUR REPOSITORY SERVER URL]/ wily/universe amd64 Packages

相关内容