嘗試更新到 wine 5,出現錯誤
我有 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 葡萄酒顯示:
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
我該如何更新它?
來自 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 Project 的一部分,所以 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/