安装 Wine 开发版时的错误消息:Ubuntu 18.04

and*_*.46 5 wine software-installation 18.04

我正在尝试从 WineHQ PPA 在 Ubuntu 18.04 Bionic Beaver 下安装最新的 Wine (wine-devel) 开发版本,但以下错误消息阻止了我:

andrew@corinth:~$ sudo apt install --install-recommends winehq-devel
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 winehq-devel : Depends: wine-devel (= 5.0.0~bionic)
E: Unable to correct problems, you have held broken packages.
andrew@corinth:~$ 
Run Code Online (Sandbox Code Playgroud)

如何在Ubuntu 18.04下成功完成Wine Development版的安装?我宁愿只使用 Wine PPA,而不像其他 Ask Ubuntu 答案中建议的那样添加其他 PPA,例如 OpenSuse Build Service ...

and*_*.46 7

出现此错误是因为 WineHQ wine-devel 现在需要安装 FAudio 包才能成功安装。幸运的是,通过使用以下 3 个相对简单的步骤,可以在 Ubuntu 18.04 下很容易地解决这个问题:

1.添加Wine PPA

您需要将 32 位架构添加到您的 64 位系统以及添加 Wine PPA 和密钥:

sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

2.添加FAudio

对于 Ubuntu 18.04(较新版本的 Ubuntu 需要不同的方法),接下来应使用以下步骤:

cd ~/Downloads
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/amd64/libfaudio0_19.07-0~bionic_amd64.deb
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/i386/libfaudio0_19.07-0~bionic_i386.deb
sudo dpkg -i libfaudio0_19.07-0~bionic_amd64.deb libfaudio0_19.07-0~bionic_i386.deb
sudo apt --fix-broken install
Run Code Online (Sandbox Code Playgroud)

这可能比添加另一个 PPA、OpenSuse Build Service PPA 容易一些……

3. 安装 Wine -devel

现在终于安装了最新的 Wine开发版本

sudo apt install --install-recommends winehq-devel
Run Code Online (Sandbox Code Playgroud)

最后测试您的安装,如在我自己的系统上看到的:

andrew@corinth:~$ wine --version
wine-5.0
andrew@corinth:~$ 
Run Code Online (Sandbox Code Playgroud)

现在你是正确的:)

参考: