尝试安装WINE时,为什么会出现“未满足的依赖项”错误?

当试图安装WINE( sudo apt-get install wine )时,我收到以下错误:

 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: wine : Depends: wine1.5 but it is not going to be installed E: Unable to correct problems, you have held broken packages. 

谷歌确实告诉我,显然这与ia32-libs ,但我无法找到如何解决依赖关系,或者我是否需要(手动?)安装其他东西。

我已将ppa:ubuntu-wine/ppa到我的存储库中。

sudo apt-get install wine1.5给了我

 The following packages have unmet dependencies: wine1.5 : Depends: wine1.5-i386 (= 1.5.4-0ubuntu1~ppa1~precise1+pulse17) 

sudo apt-get install wine1.5-i386给了我

 The following packages have unmet dependencies: wine1.5-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 

任何帮助,将不胜感激。 谢谢。

在尝试安装wine和acroread时,我遇到了类似的问题,在尝试安装wine和acroread时出现了类似的问题,并且在尝试安装ia32-libs-multiarch时出现了一个抱怨,就在从11.04(超过11.10)升级到12.04之后。 似乎我在11.04中有一些ppa在系统中安装了较新版本的应用程序。 升级后,这些应用程序的遗骸似乎在依赖项中造成了一些混乱。

似乎有效的解决方案(直到现在),在德国ubuntu板上找到( http://forum.ubuntuusers.de ,来自用户Lasall的post):

首先需要降级并完成以下操作:创建’首选项’文件:

 sudo vi /etc/apt/preferences 

并插入以下行:

 Package: * Pin: release a=precise* Pin-Priority: 2012 

输入:wq来写文件。 引脚优先级必须大于1000。

然后你可以用以下方式降级有问题的应用程序:

 sudo apt-get dist-upgrade 

然后你可以安装抱怨依赖的包,比如sudo apt-get install ia32-libs-multiarch ,或者sudo apt-get install ia32-libs

最后,您应该删除刚刚创建的文件:

 sudo rm /etc/apt/preferences 

因为否则不会找到新的更新。

希望这对你也有帮助!

这对我在ubuntu 12.04.2 LTS中起了作用

 gksu gedit /etc/apt/preferences.d/base-files 

粘贴并保存

 Package: * Pin: release a=precise* Pin-Priority: 2012 

降级导致错误的应用程序

 sudo apt-get dist-upgrade 

现在我们可以安装葡萄酒

 sudo apt-get install wine 

最后,删除您创建的文件

 sudo rm /etc/apt/preferences.d/base-files 

尝试使用Ubuntu软件中心安装Wine以查看问题是否已解决。

您可以在www.winehq.org/help/找到一些有用的葡萄酒帮助资源,您可以在winehq.org上了解有关葡萄酒替代品的更多信息。

13.04 64位对我有用的是对David Leo的回答,对基本文件进行了一些小修改:

套餐:*
Pin:释放a = raring * Pin-Priority:2012