技术解析

Debian 下无法安装 VLC
0
2021-07-09 21:11:52
idczone
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.
sudo apt-get -f install

同样的错误信息,无法安装。
原因好像是我之前加了deb-multimedia的源。

我刚在centos下无法安装mplayer,然后乱七八糟装了一堆,虽然mplayer没装上,但是能看视频了,我也是醉了。。。

这种问题我在ubuntu卸载libreoffice装Openoffice遇到过,也是apt-get -f install没用。
你这种错误是需要新版本的依赖文件却有老版本的文件,要用dpkg命令先卸载掉那3个老的依赖文件,然后再安装apt安装新软件。

试试:
$ sudo dpkg -l |grep vlc
然后全部卸了
$ sudo dpkg --purge vlc.....
一个一个删了,貌似dpkg不支持*匹配一次全部删除
删完了再apt-get 安装。

看看 aptitude 给出什么解决方案?

通过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)]

谢谢。

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服