无法安装 wine-staging

无法安装 wine-staging

我第一次尝试 Linux,并尝试安装 Wine 来玩游戏,但我遇到了错误,我不知道如何修复 :( 有人能帮帮我吗,我不想回到 Windows

$ sudo apt-get install wine-staging
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: libc6 (>= 2.34) but 2.31-0ubuntu9.2 is to be installed
                Depends: wine-staging-i386 (= 7.1~impish-1)
                Depends: wine-staging-amd64 (= 7.1~impish-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

如果我尝试输入:

$ sudo apt-get install 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-i386:i386 : Depends: libc6:i386 (>= 2.34) but 2.31-0ubuntu9.2 is to be installed
                          Depends: libldap-2.5-0:i386 (>= 2.5.4) but it is not installable
                          Depends: libvkd3d1:i386 (>= 1.2~impish-1) but it is not going to be installed
                          Recommends: libcairo2: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: libgtk-3-0: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: libsdl2-2.0-0: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: libxcursor1:i386 but it is not going to be installed
                          Recommends: libxfixes3:i386 but it is not going to be installed
                          Recommends: libxi6:i386 but it is not going to be installed
                          Recommends: libxinerama1:i386 but it is not going to be installed
                          Recommends: libxrandr2:i386 but it is not going to be installed
                          Recommends: libxrender1:i386 but it is not going to be installed
                          Recommends: libxxf86vm1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

有人能帮我修复吗?网上每个人都说使用命令,sudo apt-get install但它不起作用,我不知道如何解决这个问题。

编辑:我正在使用 ubuntu 20.4,更新或升级时没有出现任何错误

答案1

你应该知道 Ubuntu 20.04 LTS 的代号是焦点, 不是顽皮的。后者是 Ubuntu 21.10 的代号,不是您的版本。

因此您必须打开终端并使用以下命令:

sudo add-apt-repository -r -n 'deb https://dl.winehq.org/wine-builds/ubuntu/ impish main'

sudo dpkg --add-architecture i386 
cd /tmp
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
sudo apt-get update
sudo apt-get install winehq-stable

另外,您可能对安装感兴趣玩转Linux使用准备好并经过测试的实用程序sudo apt-get install playonlinux来安装 Windows 游戏和应用程序脚本/向导

相关内容