Banshee 安装,未满足的依赖项

Banshee 安装,未满足的依赖项

我在 Lenovo yoga 3 pro 上运行 ubuntu 15.04,安装 banshee media player 时遇到问题。当我尝试通过软件中心安装时,收到以下通知:

The following packages have unmet dependencies:
banshee: Depends: libglib2.0-0 (>= 2.44.1) but 2.44.0-1ubuntu3 is to be installed
     Depends: libgtk2.0-0 (>= 2.24.0) but 2.24.27-0ubuntu1 is to be installed
     Depends: libsoup-gnome2.4-1 (>= 2.27.4) but 2.49.92-1 is to be installed
     Depends: libsoup2.4-1 (>= 2.26.1) but 2.49.92-1 is to be installed
     Depends: libx11-6 (>= 2:1.6.0) but 2:1.6.2-2ubuntu2 is to be installed
     Depends: mono-runtime (>= 3.0~) but 3.2.8+dfsg-4ubuntu4 is to be installed
     Depends: libc0.1 (>= 2.21) but it is not going to be installed
     Depends: libgconf2.0-cil (>= 2.24.0) but 2.24.2-3 is to be installed
     Depends: libgdk-pixbuf2.0-0 (>= 2.31.3) but 2.31.3-1 is to be installed
     Depends: libglib2.0-cil (>= 2.12.10-1ubuntu1) but 2.12.10-5.1 is to be installed
     Depends: libgtk2.0-cil (>= 2.12.10-1ubuntu1) but 2.12.10-5.1 is to be installed
     Depends: libmono-cairo4.0-cil (>= 3.2.1) but 3.2.8+dfsg-4ubuntu4 is to be installed
     Depends: libmono-corlib4.5-cil (>= 3.2.8) but 3.2.8+dfsg-4ubuntu4 is to be installed
     Depends: libmono-posix4.0-cil (>= 3.2.3) but 3.2.8+dfsg-4ubuntu4 is to be installed
     Depends: libmono-system-core4.0-cil (>= 3.2.8) but 3.2.8+dfsg-4ubuntu4 is to be installed
     Depends: libmono-system-xml4.0-cil (>= 3.2.1) but 3.2.8+dfsg-4ubuntu4 is to be installed
     Depends: libmono-system4.0-cil (>= 3.2.8) but 3.2.8+dfsg-4ubuntu4 is to be installed
     Depends: gnome-icon-theme (>= 2.16) but 3.12.0-1ubuntu1 is to be installed

因此我尝试通过终端进行安装,使用以下命令:

sudo apt-get -f install banshee

结果如下:

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:
 banshee : Depends: libglib2.0-0 (>= 2.44.1) but 2.44.0-1ubuntu3 is to be installed
       Recommends: banshee-extension-soundmenu (= 2.9.0+really2.6.2-2ubuntu5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我对 Ubuntu 还很陌生,因此我希望得到一些简单的解释...谢谢!

我被引荐到这个问题:添加 PPA 后如何解决未满足的依赖关系?我认为这并不有效 - 我可能没有正确遵循指示,这似乎与我无关。这是我从问题中尝试进行的故障排除的终端历史记录:

will@will-Lenovo-YOGA-3-Pro-1370:~$ sudo apt-get autoclean
[sudo] password for will: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
will@will-Lenovo-YOGA-3-Pro-1370:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
will@will-Lenovo-YOGA-3-Pro-1370:~$ sudo apt-get -f install banshee
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:
 banshee : Depends: libglib2.0-0 (>= 2.44.1) but 2.44.0-1ubuntu3 is to be installed
           Recommends: banshee-extension-soundmenu (= 2.9.0+really2.6.2-2ubuntu5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
will@will-Lenovo-YOGA-3-Pro-1370:~$ sudo dpkg --configure -a
will@will-Lenovo-YOGA-3-Pro-1370:~$ sudo dpkg --configure -a banshee
dpkg: error: --configure --pending does not take any non-option arguments

>Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
will@will-Lenovo-YOGA-3-Pro-1370:~$ sudo apt-get -f install banshee
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:
 banshee : Depends: libglib2.0-0 (>= 2.44.1) but 2.44.0-1ubuntu3 is to be installed
           Recommends: banshee-extension-soundmenu (= 2.9.0+really2.6.2-2ubuntu5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
will@will-Lenovo-YOGA-3-Pro-1370:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
will@will-Lenovo-YOGA-3-Pro-1370:~$ sudo apt-get -u dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
will@will-Lenovo-YOGA-3-Pro-1370:~$ sudo apt-get clean
will@will-Lenovo-YOGA-3-Pro-1370:~$ sudo apt-get -f install banshee
Reading package lists... 7%
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:
 banshee : Depends: libglib2.0-0 (>= 2.44.1) but 2.44.0-1ubuntu3 is to be installed
           Recommends: banshee-extension-soundmenu (= 2.9.0+really2.6.2-2ubuntu5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

所需信息:

will@will-Lenovo-YOGA-3-Pro-1370:~$ apt-cache policy libglib2.0-0
libglib2.0-0:
  Installed: 2.44.0-1ubuntu3
  Candidate: 2.44.0-1ubuntu3
  Version table:
 *** 2.44.0-1ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status
will@will-Lenovo-YOGA-3-Pro-1370:~$ apt-cache policy banshee
banshee:
  Installed: (none)
  Candidate: 2.9.0+really2.6.2-2ubuntu5
  Version table:
     2.9.0+really2.6.2-2ubuntu5 0
        500 http://us.archive.ubuntu.com/ubuntu/ vivid-updates/universe amd64 Packages
     2.9.0+really2.6.2-2ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages
will@will-Lenovo-YOGA-3-Pro-1370:~$ 

答案1

我对 banshee 也有同样的问题(依赖 libglib2.0 2.44.1)。看来 banshee 比它所依赖的 libglib 更早从建议的存储库中出来。

我可以按如下方式解决这个问题:

  1. 启用生动建议
  2. 升级 libglib

    sudo apt-get install libglib2.0-0/vivid-proposed libglib2.0-bin/vivid-proposed
    
  3. 禁用建议
  4. 安装/升级 banshee

可能不是最干净的方法(大概要等待 2.44.1)但它对我来说有效。

相关内容