如何在 Ubuntu 17.10 64 位上安装 Wine?

如何在 Ubuntu 17.10 64 位上安装 Wine?

在 Ubuntu Desktop 17.10 上运行,我尝试安装wine但总是收到以下错误消息:

root@abdrzj-VPCEH26EA:/etc/apt# apt-get install wine
Reading package lists... Done
Building dependency tree 
Reading state information... Done
Package wine is a virtual package provided by:

  winehq-devel 2.22.0~xenial
  wine-stable 2.0.2-2ubuntu1
  wine-development 2.18-1
You should explicitly select one to install.
E: Package 'wine' has no installation candidate

答案1

尝试:

sudo apt-get install wine-stable

答案2

运行命令来安装密钥:

wget https://dl.winehq.org/wine-builds/Release.key && sudo apt-key add Release.key

还可以通过命令添加 Wine 存储库:

sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/

运行sudo dpkg --add-architecture i386以确保启用了 32 位架构

最后,运行sudo apt-get update && sudo apt-get install --install-recommends wine-stable安装wine-stable。

相关内容