我正在尝试通过 Lutris 运行游戏,并关注他们的维基安装 wine-staging。
运行时:
$ sudo apt install --install-recommends winehq-staging
我得到了他们预测的错误,但是在运行时:
$ sudo apt install --install-recommends winehq-staging wine-staging wine-staging-i386
我仍然有未满足的依赖关系错误(下面的输出)。
有人能给我提供解决办法吗?
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:
wine-staging : Depends: wine-staging-amd64 (= 4.13~bionic) but it is not going to be installed
wine-staging-i386:i386 : Depends: libfaudio0:i386 but it is not installable
Recommends: libcairo2:i386 but it is not going to be installed
Recommends: libcapi20-3:i386 but it is not going to be installed
Recommends: libcups2:i386 but it is not going to be installed
Recommends: libglu1-mesa:i386 but it is not going to be installed or
libglu1:i386
Recommends: libgsm1:i386 but it is not going to be installed
Recommends: libgssapi-krb5-2:i386 but it is not going to be installed
Recommends: libgtk-3-0:i386 but it is not going to be installed
Recommends: libkrb5-3:i386 but it is not going to be installed
Recommends: libodbc1:i386 but it is not going to be installed
Recommends: libosmesa6:i386 but it is not going to be installed
Recommends: libpcap0.8:i386 but it is not going to be installed
Recommends: libsane:i386 or
libsane1:i386 but it is not going to be installed
Recommends: libv4l-0:i386 but it is not going to be installed
Recommends: libva-drm2:i386 but it is not going to be installed or
libva-drm1:i386 but it is not installable
Recommends: libva-x11-2:i386 but it is not going to be installed or
libva-x11-1:i386 but it is not installable
Recommends: libva2:i386 but it is not going to be installed or
libva1:i386 but it is not installable
Recommends: libxcomposite1:i386 but it is not going to be installed
Recommends: libxslt1.1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
答案1
我按照说明找到这里下载缺失的libfaudio:i386
。
Ubuntu 18.04:
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key sudo apt-key add Release.key
添加存储库:
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'
然后更新:
sudo apt update
答案2
我遇到过类似的问题,我遇到了几个不同的问题,所以我认为如果我详细说明我的解决方案可能会对其他人有所帮助。我对 apt 打包过程或 wine 不是特别熟悉,所以我将列出我在 ubuntu 18.04.4 LTS 上从 wine3.0 升级到 wine5.0 所经历的一切。
- 从 APT 中清除所有内容!
sudo apt-get purge *wine*
- 检查是否也没有安装 snap (出于某种原因我有这个 - 不确定是否会产生影响所以我认为最好删除)
sudo snap remove wine sudo snap update wine-platform-*
- 删除 PPA 官方存储库(他们改变了打包方式)。我们需要深入研究 /etc/apt
grep -Ril "wine" /etc/apt
如果您发现任何匹配项,请将其注释掉或删除键,我们将在稍后重新添加。
- 启用 32 位并添加新 repo(检查这里适用于其他 ubuntu 版本)
sudo dpkg --add-architecture i386 wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.key sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' sudo apt update sudo apt upgrade sudo apt --fix-broken install sudo apt autoremove --purge sudo apt upgrade
- 让我们获取损坏的 repos libfaudio 和 libasound2:
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key sudo apt-key add Release.key sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./' sudo apt update sudo apt install libfaudio0 libasound2-plugins:i386 -y
- 现在我们可以正常安装wine 5.0了!
sudo apt install --install-recommends winehq-stable -y
答案3
正如@chilly-chease 指出的那样,libfaudio0:i386
ubuntu 18.04 存储库中缺少软件包。
修复此问题最简单的方法是:
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt install --install-recommends winehq-staging
答案4
第一次执行时:
sudo apt install --install-recommends winehq-staging
您的包管理器处于损坏状态,您需要先删除所有与 wine 相关的包,然后获取正常工作的包状态:
sudo apt remove winehq-staging wine\*
sudo apt install -f
一旦您的包管理器处于工作状态,您可以尝试避免安装一些推荐包的解决方法命令。