64位debian和32bit Wine

时间:2017-05-08 10:46:31

标签: debian x86-64 wine debian-jessie

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

但是我得到了所有的时间:

bool isPalindrom(char word[], int sizeOfWord){
    int j=sizeOfWord-1;
    for (int i=0 ; i<sizeOfWord ; i++){
        if(word[i] != word[j]){
            return false;
        }
        j--;
    }

    return true;
}

int main()
{
    char word[] = {'m', 'a', 'd', 'a', 'm'};
    int sizeOfWord = sizeof(word)/sizeof(word[0]);
    printf("%d", isPalindrom(word, sizeOfWord));
}

我还尝试从源头开始制作葡萄酒1.4,之后:

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

我收到了错误。

请你建议我应该多做些什么?

3 个答案:

答案 0 :(得分:0)

首先执行以下两个步骤后,您可能能够达到目标:

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 32位。我希望这有帮助!

修改:对于大多数人来说,安装wine的最佳方法是安装软件包playonlinux 。软件包playonlinux会安装wine以及一个有用的gui界面来运行它 - playonlinux最初是为游戏设计的(因此名称),但它可以& #34;运行&#34;各种软件。它使wine更容易使用。要安装playonlinux,我建议:

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

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

答案 1 :(得分:0)

感谢您的回复。我已经完成了你的建议,但是仍然存在一些问题,这次是使用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。

答案 2 :(得分:0)

debian jessie上没有libgphoto2-2:i386包,它是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位版本的葡萄酒:

sudo apt install -t jessie-backports wine32