V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Pangdouya
V2EX  ›  Linux

Debian 下无法安装 VLC

  •  
  •   Pangdouya · Aug 15, 2015 · 3883 views
    This topic created in 3918 days ago, the information mentioned may be changed or developed.
    Debian 8下安装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.2.0~rc2-2) but 1:2.2.1-dmo1 is to be installed
    Recommends: vlc-plugin-notify (= 2.2.0~rc2-2) but 1:2.2.1-dmo1 is to be installed
    Recommends: vlc-plugin-samba (= 2.2.0~rc2-2) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    8 replies    2015-08-15 20:37:34 +08:00
    tracyone
        1
    tracyone  
       Aug 15, 2015
    sudo apt-get -f install
    Pangdouya
        2
    Pangdouya  
    OP
       Aug 15, 2015
    @tracyone 同样的错误信息,无法安装。

    原因好像是我之前加了deb-multimedia的源。
    trmking1719
        3
    trmking1719  
       Aug 15, 2015
    我刚在centos下无法安装mplayer,然后乱七八糟装了一堆,虽然mplayer没装上,但是能看视频了,我也是醉了。。。
    liuxu
        4
    liuxu  
       Aug 15, 2015
    这种问题我在ubuntu卸载libreoffice装Openoffice遇到过,也是apt-get -f install没用。
    你这种错误是需要新版本的依赖文件却有老版本的文件,要用dpkg命令先卸载掉那3个老的依赖文件,然后再安装apt安装新软件。
    liuxu
        5
    liuxu  
       Aug 15, 2015
    试试:
    $ sudo dpkg -l |grep vlc
    然后全部卸了
    $ sudo dpkg --purge vlc.....
    一个一个删了,貌似dpkg不支持*匹配一次全部删除
    删完了再apt-get 安装。
    seki
        6
    seki  
       Aug 15, 2015   ❤️ 1
    看看 aptitude 给出什么解决方案?
    Pangdouya
        7
    Pangdouya  
    OP
       Aug 15, 2015
    @seki 通过aptitude解决了。谢谢。

    $ sudo aptitude install vlc
    [sudo] password for yin:
    The following NEW packages will be installed:
    vlc{b} vlc-plugin-samba{ab}
    0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 1,498 kB of archives. After unpacking 4,954 kB will be used.
    The following packages have unmet dependencies:
    vlc-plugin-samba : Depends: vlc-nox (= 2.2.0~rc2-2) but 1:2.2.1-dmo1 is installed.
    vlc : Depends: vlc-nox (= 2.2.0~rc2-2) but 1:2.2.1-dmo1 is installed.
    The following actions will resolve these dependencies:

    Keep the following packages at their current version:
    1) vlc [Not Installed]
    2) vlc-plugin-samba [Not Installed]



    Accept this solution? [Y/n/q/?] n
    The following actions will resolve these dependencies:

    Remove the following packages:
    1) libgroupsock4

    Install the following packages:
    2) libgroupsock1 [2014.01.13-1 (now, stable)]

    Downgrade the following packages:
    3) vlc-nox [1:2.2.1-dmo1 (now) -> 2.2.0~rc2-2 (stable)]
    4) vlc-plugin-notify [1:2.2.1-dmo1 (now) -> 2.2.0~rc2-2 (stable)]
    Pangdouya
        8
    Pangdouya  
    OP
       Aug 15, 2015
    @liuxu 谢谢。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1004 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 18:42 · PVG 02:42 · LAX 11:42 · JFK 14:42
    ♥ Do have faith in what you're doing.