debian 10 x64 |如何正确安装Wine i386支持?

时间:2019-10-06 13:21:56

标签: debian wine

有人可以帮助解决这个问题吗?

小弟弟想在我的PC上安装一些专有的东西,并且wine是必需的。

sudo apt install wine

可以。

但是

sudo apt install wine32
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:
 wine32:i386 : Depends: libwine:i386 (= 4.0-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

为什么我不能安装libwine library的32位版本?

$ sudo apt install libwine:i386
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:
 libwine:i386 : Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
                Recommends: libcups2:i386 (>= 1.4.0) but it is not going to be installed
                Recommends: libgnutls30:i386 (>= 3.6.5) but it is not going to be installed
                Recommends: libodbc1:i386 (>= 2.3.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

什么会导致该问题?我尝试过winehq官方的debian仓库-这里是同样的问题。

2 个答案:

答案 0 :(得分:0)

sudo apt install libfontconfig1:i386

sudo apt install libldap-2.4-2:i386

然后,再试一次

sudo apt install libwine:i386

然后重试。

sudo apt install wine32

我希望它能起作用。 祝一切顺利。

答案 1 :(得分:0)

经过数天的跋涉,我终于找到了解决方案。问题是Ubuntu并不具备安装“ WINE”所需的一切。在这种情况下,就是32位依赖项。这就是无论您做什么都会发生此错误的原因。

我在互联网上看到的所有解决方案都基于您是否错过了一些步骤。但是,经过数千次从不同来源进行相同的操作后,我了解到还有其他问题。

这就是我所做的:

首先,我使用以下命令从计算机上卸载了所有的wine依赖项,源和库:

sudo apt-get --purge remove wine

这不能完全删除葡萄酒,所以我访问了以下目录并删除了以下文件:

`cd $HOME`

`rm -r .wine`

`rm .config/menus/applications-merged/wine*`

`rm -r .local/share/applications/wine`

`rm .local/share/desktop-directories/wine*`

`rm .local/share/icons/????_*.xpm`

如果需要,可以再次运行此命令:

sudo apt-get --purge remove wine

然后我运行此命令来更正所有损坏的文件

sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove

之后,我在Google上搜索了:

how to enable 32 bit architecture in ubuntu 20

我来到了这个网站:

https://support.humblebundle.com/hc/en-us/articles/202759400-Installing-32-bit-libs-on-a-64-bit-Linux-system

据说要在Ubuntu 12或更低版本中安装它,我们必须在终端中运行此命令:

sudo apt-get install ia32-libs 

对于新版本:

sudo apt-get install lib32z1

我有Ubuntu 20,所以我采用了第二种方法。 之后,如葡萄酒官方网站中所述,我继续进行并神奇地安装了葡萄酒。

如果您想知道的话,这是官方网站:

https://wiki.winehq.org/Ubuntu

希望此解决方案可以帮助您解决问题。