【问题标题】:64bit debian and 32bit Wine64 位 debian 和 32 位 Wine
【发布时间】:2017-05-11 06:13:34
【问题描述】:

我正在尝试在 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

我收到了发生错误的消息。

你能建议我更多的尝试吗?

【问题讨论】:

    标签: debian x86-64 wine debian-jessie


    【解决方案1】:

    软件包libgphoto2-2:i386 在debian jessie 上不可用,它是only available on debian wheezylibgphoto2-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
    

    【讨论】:

    • 非常感谢,它确实帮助并解决了我的问题!附加架构 (i386) 是否会导致其他软件包出现任何问题?我的意思是在安装(将来)新软件包期间,我应该添加 -amd64 还是默认设置?
    • 添加多架构是安全的,有一些来自 debian wiki.debian.org/Multiarch/HOWTO的信息
    【解决方案2】:

    感谢您的回复。我已经按照你的建议做了,但还是有一些问题,这次是 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。

    【讨论】:

    • 我更新了我的答案,看看是否适合你。另外,我相信您将此答案发布为对我的答案的评论——在 Stack Overflow 上,您更愿意直接评论我的答案(以便我收到通知),而不是评论不同的答案;答案应在他们回答所提问题时发布,因此您可以考虑删除此答案并直接评论我(或其他人)的答案。
    • 谢谢,我没有意识到这样的包。多亏了这个,我已经成功安装了wine,你推荐的包(playonlinux)是否使用相同的依赖项?
    • 安装playonlinux 会处理所有需要的依赖项(它与wine 具有相同的依赖项,并添加了一些自己的依赖项)。麦格,如果我的回答解决了你的问题,请选择它作为“正确”的答案,这样也可以帮助到其他人。祝你好运!
    【解决方案3】:

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

    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
    

    完成上述两个步骤后,再次尝试安装/运行wine 32bit。我希望这会有所帮助!

    编辑:对于大多数人来说,安装wine 的最佳方式是安装包playonlinux。包playonlinux 安装了wine 以及一个有用的gui 接口来运行它——playonlinux 最初是为游戏设计的(因此得名),但它可以“运行”各种软件。它使使用wine 变得更加容易。要安装playonlinux,我建议:

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

    成功后,在您的计算机上查找playonlinux(通常它被归类在“游戏”类别中),打开程序并等待它更新其数据库(它会自动完成,查看程序窗口底部文本“刷新 PlayOnLinux”和状态栏的部分;当状态栏到达末尾时,它将消失,“PlayOnLinux”将完全更新)。之后它应该可以使用了。

    【讨论】:

      猜你喜欢
      • 2012-11-26
      • 2012-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-02
      • 1970-01-01
      • 2013-01-11
      • 2012-09-19
      相关资源
      最近更新 更多