64 位 debian 和 32 位 Wine

64bit debian and 32bit Wine

我正在尝试在 64 位 Debian Jessie 上安装 32 位 Wine。我尝试过以下建议: Can't build 32bit Wine on 64bit linux 和: Installing wine in debian

但我一直得到:

apt-get install libcapi20-dev:i386 libcups2:i386 libdbus-1-3:i386 libfontconfig:i386 libfreetype6:i386 libglu1-mesa:i386 libgnutls26:i386 libgphoto2-2:i386 libncurses5:i386 libosmesa6:i386 libsane:i386 libxcomposite1:i386 libxcursor1:i386 libxi6:i386 libxrandr2:i386 libxslt1.1:i386 ocl-icd-libopencl1:i386
Note, selecting 'libfontconfig1:i386' instead of 'libfontconfig:i386'
Package libgphoto2-2:i386 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
      libgphoto2-l10n

    Package libgnutls26:i386 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'libgnutls26:i386' has no installation candidate
    E: Package 'libgphoto2-2:i386' has no installation candidate

我还尝试从源代码构建 wine 1.4,之后:

./configure --disable-win64

我收到错误信息。

你能建议我应该多尝试什么吗?

先执行以下两步,或许就能达到你想要的效果:

1) 更新您的 /etc/apt/sources.list 文件,然后 运行 apt-get update

我对 /etc/apt/sources.list 建议如下:

deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb http://ftp.debian.org/debian jessie-backports main contrib non-free
deb-src http://ftp.debian.org/debian jessie-backports main contrib non-free

更新列表后别忘了运行apt-get update

2) 在您的计算机上安装 32 位架构,运行 apt-get updatereboot

dpkg --add-architecture i386 && apt-get -y update && apt-get -y install -f && reboot

完成以上两步后,再尝试install/runwine32bit。希望对您有所帮助!

编辑:对于大多数人来说,安装 wine 的最佳方法是安装软件包 playonlinuxplayonlinux 包安装了 wine 以及一个有用的 gui 界面,用于 运行 上面的东西 -- playonlinux 最初是为游戏设计的(因此得名),但是可以"run"各种软件。它使 wine 更容易使用。要安装 playonlinux,我建议:

apt-get update && apt-get -y install playonlinux

成功后,在您的计算机上查找 playonlinux(通常归入 "games" 类别),打开程序并等待它更新其数据库(它会自动执行,查看程序 window 底部的文本 "Refreshing PlayOnLinux" 和状态栏;当状态栏到达末尾时,它将消失并且 "PlayOnLinux" 将完全更新)。之后它应该可以使用了。

感谢您的回复。我已经按照你的建议做了,但还有一些问题,这次是 X-server:

configure: error: X 32-bit development files not found. Wine will be built
without X support, which probably isn't what you want. You will need
to install 32-bit development packages of Xlib/Xfree86 at the very least.

我之前安装了一些nvidia驱动,所以我担心将驱动还原回Nouveau。

软件包 libgphoto2-2:i386 在 debian jessie 上不可用,它是 only available on debian wheezy and the libgphoto2-l10n 替换它。

libgnutls26:i386 仅适用于 debian Wheezy 和 Sid,不能安装在 debian jessie 上。

wine 程序在 jessie backports 上可用,支持多体系结构 (Architecture=All)

编辑您的 sources.list,打开终端并 运行 以下内容:

sudo apt edit-sources

添加以下行:

deb http://httpredir.debian.org/debian jessie-backports main

然后保存文件 运行:

sudo dpkg --add-architecture i386
sudo apt update

安装 32 位版本的 wine:

sudo apt install -t jessie-backports wine32