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