apt-get 错误检测版本

apt-get 错误检测版本

我曾使用 PPA 来安装较新版本的 digiKam(和支持库)。我现在想安装“标准”Wine,但得到以下结果。请注意,我先尝试安装 Wine,但通过跟踪错误消息让我找到了这个。还请注意,我正在运行 64 位 Kubuntu 12.04(Precise Pangolin),即使我尝试安装 AMD64 Wine,我仍然会回到这个 :i386 软件包问题。

altendky@ly:~$ sudo apt-get install wine1.4-i386
[sudo] password for altendky: 
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:
 wine1.4-i386:i386 : Depends: libgphoto2-2:i386 (>= 2.4.10.1) but it is not going to be installed
                     Depends: libgphoto2-port0:i386 (>= 2.4.10.1) but it is not going to be installed
                     Recommends: gettext:i386 but it is not going to be installed
                     Recommends: libsane:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
altendky@ly:~$ apt-cache policy libgphoto2-2
libgphoto2-2:
  Installed: 2.4.14-precise~ppa1
  Candidate: 2.4.14-precise~ppa1
  Version table:
 *** 2.4.14-precise~ppa1 0
        400 http://ppa.launchpad.net/philip5/extra/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
     2.4.13-1ubuntu1.2 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
     2.4.13-1ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

因此,看起来我安装了一个令人满意的软件包,但 apt-get 未检测到 2.4.14 >= 2.4.10.1。除了生成我自己的 equiv 软件包或修改 Wine 软件包以更改依赖项之外...我可以帮助 apt-get 理解这一点吗?

当然,另一种选择是 apt-get 完全理解,而我却是那个感到困惑的人。

答案1

有时首先手动安装依赖项会有所帮助。

sudo apt-get install libgphoto2-2
sudo apt-get install wine1.4-i386

您可能必须wine先删除部分安装的包。

sudo apt-get remove wine1.4-i386

有时您可以通过运行来强制安装

sudo apt-get install --fix-broken

相关内容