我在全新安装上升级到了 Ubuntu 12.10,并且尝试过多次安装 wine,但总是出现此问题:
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.
答案1
我也遇到过同样的问题,结果发现 apt 和 dpkg 的新版本支持一项名为“多架构”的功能。简单来说,您可以指定 apt 从除本机安装之外的架构的存储库中提取软件包信息,并从这些存储库安装兼容多架构的软件包。有关更多详细信息,请参阅: http://wiki.debian.org/Multiarch/HOWTO
具体来说,您的问题是 wine1.5-i386 位于 32 位 wine 存储库中,但不在 64 位存储库中,并且由于某种原因,您的 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
检查你的新 arch 现在是否可用,使用 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(1.16.0~ubuntu7(报告 1.15.8.10))、oneiric 和 precise(1.16.1.2ubuntu7)中的 Ubuntu dpkg 使用不同的语法:*
echo "foreign-architecture i386" > /etc/dpkg.cfg.d/architectures
答案2
安装 wine 时你是否遵循了这个程序:
打开终端并输入这些命令:但首先通过命令删除 wine:sudo apt-get remove --purge wine*
sudo add-apt-repository ppa:ubuntu-wine
添加您已经添加的 Wine 存储库后。使用软件管理器转到“编辑”并选择“软件源”。选择“其他软件”选项卡,然后单击窗口底部的“添加”。您现在需要添加以下代码行来代替原始的 Wine PPA 链接。
deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu precise main
您现在可以关闭源列表和软件管理器。接下来要更新源列表,请打开终端并输入:
sudo apt-get update
一旦您的源列表更新完毕,您就可以使用以下命令安装稳定的 1.4 Wine 包或 1.5 开发包:
Wine 1.4(稳定版)
sudo apt-get install wine1.4
Wine 1.5(开发中)
sudo apt-get install wine1.5
这就是全部内容了,您现在还可以继续在 Linux 上获取最新的 Wine 版本和更新,尽情享受吧!
另一种解决方案:添加 PPA 后如何解决未满足的依赖关系?
答案3
尝试在 64 位安装上安装 i386 包时出现错误。请尝试按照本指南为您的系统进行操作!
http://wiki.winehq.org/WineOn64bit#head-77def7ca75193f24e358dba3dd6bcf674bd61b37
我知道这一点,因为这就是我最初所做的。
答案4
首先我建议删除带有配置文件的 wine
sudo apt-get --purge wine*
更新系统及升级软件包,修复依赖性
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install -f
删除不必要的软件包(如果有)
sudo apt-get autoremove
现在安装 wine
sudo apt-get install wine1.4
清除缓存
sudo apt-get clean