我有 Debian 10,目前安装了 wine-4.0。我正在尝试使用推荐的命令从此处更新到最新的 wine 版本:
https://wiki.winehq.org/Debian
sudo apt install --install-recommends winehq-stable
当我运行上面的安装命令时,我得到以下信息:
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-stable : Depends: wine-stable (= 5.0.0~buster)
E: Unable to correct problems, you have held broken packages.
sudo apt list --已安装 | grep wine 显示:
fonts-wine/stable,stable,now 4.0-2 all [installed]
libkwineffects11/stable,now 4:5.14.5-1 amd64 [installed,automatic]
libwine-development/stable,now 4.2-4+b1 amd64 [installed]
libwine-development/stable,now 4.2-4+b1 i386 [installed]
libwine/stable,now 4.0-2 amd64 [installed]
libwine/stable,now 4.0-2 i386 [installed]
wine-development/stable,stable,now 4.2-4 all [installed]
wine32-development/stable,now 4.2-4+b1 i386 [installed]
wine32/stable,now 4.0-2 i386 [installed]
wine64-development/stable,now 4.2-4+b1 amd64 [installed]
wine64/stable,now 4.0-2 amd64 [installed]
wine/stable,stable,now 4.0-2 all [installed]
我运行 sudo apt update 它显示一切都是最新的。
cat /etc/apt/sources.list.d/wine.list 显示:
deb https://dl.winehq.org/wine-builds/debian/ buster main
我怎样才能更新它?
答案1
来自 Winehq 论坛的回答:适用于 Debian 10 和 Ubuntu 18.04 的 FAudio
问题来自于缺少依赖项,libfaudio0
它在 debian 10 存储库和 winehq 存储库上均不可用。您需要添加 opensuse 存储库。
sudo apt install software-properties-common apt-transport-https
sudo add-apt-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./'
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key
sudo apt-key add Release.key
sudo apt update
sudo apt install --install-recommends winehq-stable
感谢 Cybermax,我们在 OBS 上提供了适用于 Debian 10 和 Ubuntu 18.04 的 FAudio 软件包。这些发行版的 WineHQ wine-devel 和 wine-staging 包是针对它们构建的,并且需要它们作为依赖项。从 Wine 5.0 开始,wine-stable 包也将需要 FAudio。
注意:适用于 Ubuntu 19.10 及更高版本以及 Debian bullseye 及更高版本的 FAudio 由这些发行版提供。如果您无法从发行版存储库安装它们,请在发行版论坛上寻求帮助。
由于 FAudio 不是 Wine 项目的一部分,因此 FAudio 包不是从这里的下载服务器分发的,而是可以直接从 OBS 获取。
Debian 10:https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/
Ubuntu 18.04 和 Linux Mint 19.x:https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/
答案2
尝试使用aptitude install winehq-stable
而不是apt
.它可以自动为您整理冲突的包或提出建议。
您可以通过运行来安装 aptitudeapt install aptitude