![在 Ubuntu 20.04 中安装 Wine.hq](https://linux22.com/image/1022742/%E5%9C%A8%20Ubuntu%2020.04%20%E4%B8%AD%E5%AE%89%E8%A3%85%20Wine.hq.png)
你好,我目前正在我的 Ubuntu 桌面上安装 Wine.HQ。我的问题是:
$ sudo dpkg --add-architecture i386
$ wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
--2021-04-19 21:20:03-- https://dl.winehq.org/wine-builds/winehq.key
Resolving dl.winehq.org (dl.winehq.org)... 199.232.134.217
Connecting to dl.winehq.org (dl.winehq.org)|199.232.134.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3220 (3,1K) [application/pgp-keys]
Saving to: ‘STDOUT’
- 100%[===================>] 3,14K --.-KB/s in 0,001s
2021-04-19 21:20:09 (3,80 MB/s) - written to stdout [3220/3220]
OK
$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
Hit:1 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://packages.microsoft.com/repos/code stable InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Ign:7 https://dl.winehq.org/wine-bulds/ubuntu focal InRelease
Hit:8 http://archive.ubuntu.com/ubuntu focal-security InRelease
Hit:9 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:10 https://dl.winehq.org/wine-builds/ubuntu eoan InRelease
Err:11 https://dl.winehq.org/wine-bulds/ubuntu focal Release
404 Not Found [IP: 199.232.134.217 443]
Hit:12 http://repository.spotify.com stable InRelease
Reading package lists... Done
E: The repository 'https://dl.winehq.org/wine-bulds/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
我不知道我该怎么办,有人遇到过同样的错误并知道如何解决吗?
答案1
我已经修复了它,如果你这样做它就会起作用:
sudo dpkg --add-architecture i386
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 add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt-get update
sudo apt-get install --install-recommends wine-staging