Debian 下无法安装 VLC

2015-08-15 17:02:44 +08:00
 Pangdouya
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.
3020 次点击
所在节点    Linux
8 条回复
tracyone
2015-08-15 17:16:23 +08:00
sudo apt-get -f install
Pangdouya
2015-08-15 17:22:40 +08:00
@tracyone 同样的错误信息,无法安装。

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

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/213415

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX