Wine-staging 无法在 18.04 上安装

Ode*_*yar 14 wine dependencies 18.04

我正在尝试通过 Lutris 运行游戏并按照他们的 wiki安装 wine-staging。

运行时:

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

我得到了他们预测的错误,但是在运行时:

$ sudo apt install --install-recommends winehq-staging wine-staging wine-staging-i386
Run Code Online (Sandbox Code Playgroud)

我仍然有未满足的依赖项错误(输出如下)。

任何人都可以指导我解决问题吗?

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.
Run Code Online (Sandbox Code Playgroud)

小智 23

我按照此处找到的说明下载丢失的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
Run Code Online (Sandbox Code Playgroud)

添加存储库:

sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'
Run Code Online (Sandbox Code Playgroud)

然后更新:

sudo apt update
Run Code Online (Sandbox Code Playgroud)


rob*_*smt 15

我有类似的问题,我去了几个不同的兔子洞,所以我认为如果我详细说明我的解决方案可能会帮助其他人。我不是特别熟悉 apt 包装过程或葡萄酒,所以我将列出我在 ubuntu 18.04.4 LTS 上从 wine3.0 升级到 wine5.0 所经历的一切。

  1. 从 APT 中清除所有内容!
sudo apt-get purge *wine*
Run Code Online (Sandbox Code Playgroud)
  1. 检查是否也没有安装快照(出于某种原因我有这个 - 不确定它是否会影响所以我认为最好删除)
sudo snap remove wine
sudo snap update wine-platform-*
Run Code Online (Sandbox Code Playgroud)
  1. 删除 PPA 官方存储库(他们更改了打包方式)。我们需要挖掘 /etc/apt
grep -Ril "wine" /etc/apt
Run Code Online (Sandbox Code Playgroud)

如果您得到任何匹配项,将它们注释掉或删除密钥,我们稍后将完全重新添加。

  1. 启用 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
Run Code Online (Sandbox Code Playgroud)
  1. 让我们获取 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
Run Code Online (Sandbox Code Playgroud)
  1. 现在我们可以正常安装wine 5.0了!
sudo apt install --install-recommends winehq-stable -y
Run Code Online (Sandbox Code Playgroud)


Kri*_*ves 0

当你第一次执行时:

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

您的包管理器处于损坏状态,您需要首先删除所有与 wine 相关的包并获取工作包状态:

sudo apt remove winehq-staging wine\*
sudo apt install -f
Run Code Online (Sandbox Code Playgroud)

一旦你的包管理器处于工作状态,你可以尝试避免安装一些推荐的包的解决方法命令。