如何在 Ubuntu 19.10 中安装 wine?

r4h*_*hu1 8 apt wine 19.10

最近从 Windows 转移到 Ubuntu。第一次用户。

我尝试了几种方法来安装论坛中提到的 wine。

sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main'
sudo apt-get update
sudo apt install --install-recommends winehq-stable
Run Code Online (Sandbox Code Playgroud)

给出以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package winehq-stable
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗?

kar*_*rel 10

您使用的 Ubuntu 19.10 代号为eoan,而不是disco,因此也应在第三个命令中将其从disco更改为eoan。winehq-stable 在 19.10 中不可用,所以代替 winehq-stable 安装 winehq-staging 这是最新的测试 wine 版本。打开终端并输入:

须藤 dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key 添加 winehq.key
sudo易于附加库“的deb https://dl.winehq.org/wine-builds/ubuntu/ EOAN主”
sudo apt 更新
sudo apt install --install-recommends winehq-staging

如果 apt 抱怨缺少依赖项,请安装它们,然后重复最后两个步骤(更新和安装)。