为什么Wine不能在我的系统上安装?

我在全新安装上升级到Ubuntu 12.10,我尝试过多次安装葡萄酒,但我总是这样:

This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time. The following packages have unmet dependencies: wine: 

它不会让我安装依赖项,或者说它需要另一组依赖项来安装它们。 使用华硕KJ50 64位操作系统,Windows 7双启动

 sudo apt-get install wine1.5 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.5 : Depends: wine1.5-i386 (= 1.5.15-0ubuntu1) but it is not installable Recommends: gnome-exe-thumbnailer but it is not going to be installed or kde-runtime but it is not going to be installed Recommends: ttf-droid Recommends: ttf-mscorefonts-installer but it is not going to be installed Recommends: ttf-umefont but it is not going to be installed Recommends: ttf-unfonts-core but it is not going to be installed Recommends: winbind but it is not going to be installed Recommends: winetricks but it is not going to be installed E: Unable to correct problems, you have held broken packages. 

我一直有同样的问题,事实certificate,对于更新版本的apt和dpkg,它们支持一种名为“Multi-arch”的function。 简单来说,您可以指定apt从存储库中获取除本机安装之外的体系结构的包信息,并从这些存储库安装多源兼容包。 有关更多详细信息,请参阅: http : //wiki.debian.org/Multiarch/HOWTO

特别是你的问题是wine1.5-i386在32位wine存储库中,但不在64位repo中,并且你的dpkg / apt没有配置为出于某种原因处理这个问题。 解决:

检查您的本机架构:

 sudo dpkg --print-architecture #in your case this should return 'amd64' 

其他可用的架构可以通过以下方式显示:

 sudo dpkg --print-foreign-architectures #in your case this should not return anything 

所以你需要配置一个新的外部架构(quantal / 12.10或更新***):

 sudo dpkg --add-architecture i386 

检查您的新拱门现在是否可用,使用apt更新并安装您的包:

 sudo dpkg --print-foreign-architectures #now this should return 'i386' sudo apt-get update; sudo apt-get install wine1.5 #and away you go! 

=======

***请注意,natty中的Ubuntu dpkg(1.16.0~ubuntu7(报告1.15.8.10)),oneiric和precision(1.16.1.2ubuntu7)使用不同的语法:*

 echo "foreign-architecture i386" > /etc/dpkg.cfg.d/architectures 

安装葡萄酒时是否遵循此程序:

打开终端并输入命令:但首先通过以下命令删除wine: sudo apt-get remove --purge wine*

 sudo add-apt-repository ppa:ubuntu-wine 

加入你已经做过的葡萄酒代表之后。 使用软件管理器转到“编辑”并选择“软件源”。 选择“其他软件”选项卡,然后单击窗口底部的“添加”。 您现在需要添加以下代码行,而不是原始的Wine PPA链接。

 deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu precise main 

您现在可以关闭源列表和软件管理器。 接下来更新您的源列表打开终端并键入:

 sudo apt-get update 

更新源列表后,可以使用以下命令安装stable 1.4 Wine软件包或1.5开发软件包:

葡萄酒1.4(稳定)

 sudo apt-get install wine1.4 

葡萄酒1.5(开发)

 sudo apt-get install wine1.5 

这就是它的全部内容,您现在还可以继续在Linux上获取最新的Wine版本和更新,享受!

解决方案的来源


另一种解决方案: 如何在添加PPA后解决未满足的依赖关系?

尝试在64位安装上安装i386软件包时出错。 尝试按照本指南进行操作!

http://wiki.winehq.org/WineOn64bit#head-77def7ca75193f24e358dba3dd6bcf674bd61b37

我知道这是因为这是我原来做的。

它不可安装,因为它依赖于系统中没有的i386架构。

要添加它,请尝试:

 sudo dpkg --add-architecture i386 

更新您的apt存储库:

 sudo apt-get update 

再次安装葡萄酒:

 sudo apt-get install wine 

或者,您可以使用dpkg --force-architecture

首先,我建议用配置文件删除葡萄酒

 sudo apt-get --purge wine* 

更新系统和升级包,修复依赖项

 sudo apt-get update && sudo apt-get upgrade sudo apt-get install -f 

删除不必要的包(如果有)

 sudo apt-get autoremove 

现在安装葡萄酒

 sudo apt-get install wine1.4 

Clen缓存

 sudo apt-get clean