V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Pangdouya
V2EX  ›  Linux

Debian 下无法安装 VLC

  •  
  •   Pangdouya · 2015-08-15 17:02:44 +08:00 · 3158 次点击
    这是一个创建于 3407 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 条回复    2015-08-15 20:37:34 +08:00
    tracyone
        1
    tracyone  
       2015-08-15 17:16:23 +08:00
    sudo apt-get -f install
    Pangdouya
        2
    Pangdouya  
    OP
       2015-08-15 17:22:40 +08:00
    @tracyone 同样的错误信息,无法安装。

    原因好像是我之前加了deb-multimedia的源。
    trmking1719
        3
    trmking1719  
       2015-08-15 17:24:34 +08:00
    我刚在centos下无法安装mplayer,然后乱七八糟装了一堆,虽然mplayer没装上,但是能看视频了,我也是醉了。。。
    liuxu
        4
    liuxu  
       2015-08-15 18:30:04 +08:00
    这种问题我在ubuntu卸载libreoffice装Openoffice遇到过,也是apt-get -f install没用。
    你这种错误是需要新版本的依赖文件却有老版本的文件,要用dpkg命令先卸载掉那3个老的依赖文件,然后再安装apt安装新软件。
    liuxu
        5
    liuxu  
       2015-08-15 18:38:01 +08:00
    试试:
    $ sudo dpkg -l |grep vlc
    然后全部卸了
    $ sudo dpkg --purge vlc.....
    一个一个删了,貌似dpkg不支持*匹配一次全部删除
    删完了再apt-get 安装。
    seki
        6
    seki  
       2015-08-15 18:43:09 +08:00   ❤️ 1
    看看 aptitude 给出什么解决方案?
    Pangdouya
        7
    Pangdouya  
    OP
       2015-08-15 20:07:34 +08:00
    @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
       2015-08-15 20:37:34 +08:00
    @liuxu 谢谢。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3250 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 10:37 · PVG 18:37 · LAX 02:37 · JFK 05:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.