Ubuntu 19.04 无法安装 winehq-staging

Ubuntu 19.04 无法安装 winehq-staging

winehq-staging由于 winehq 在 disco dingo 存储库出现故障两天后才恢复,如何在 Ubuntu 19.04 上安装?

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main'
Get:1 http://fr.archive.ubuntu.com/ubuntu disco InRelease [257 kB]
Hit:2 http://security.ubuntu.com/ubuntu disco-security InRelease               
Hit:3 http://ppa.launchpad.net/lutris-team/lutris/ubuntu disco InRelease       
Hit:4 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu disco InRelease    
Ign:5 https://dl.winehq.org/wine-builds/ubuntu disco InRelease                 
Err:6 https://dl.winehq.org/wine-builds/ubuntu disco Release
  404  Not Found [IP: 151.101.122.217 443]
Hit:7 http://fr.archive.ubuntu.com/ubuntu disco-updates InRelease
Hit:8 http://fr.archive.ubuntu.com/ubuntu disco-backports InRelease
Reading package lists... Done
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu disco 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

您可以轻松使用 bionic 版本 (18.04.2),直到他们发布该版本。为此,您需要相应地更改源列表文件。

我假设您已经按照winehq 页面您可以执行以下操作:

sudo sed -i.bak 's/disco/bionic/g' /etc/apt/sources.list.d/wine-staging.list

这将更改 wine-staging 的源列表文件,并创建原始文件的副本,现在以 结尾.bak。您应该启用

sudo apt update
sudo apt install wine-staging

在您的计算机上。当他们发布 19.04 (disco) 版的 wine 版本时,您只需删除更改的文件,将旧文件重命名,然后升级软件包即可:

sudo rm /etc/apt/sources.list.d/wine-staging.list
sudo mv /etc/apt/sources.list.d/wine-staging.list.bak /etc/apt/sources.list.d/wine-staging.list
sudo apt update
sudo apt upgrade wine-staging

答案2

https://wiki.winehq.org/Ubuntu

稳定版本将按预期工作,但如果需要分期,这就是我发现的,否则,我会得到未解决的依赖关系。

名称和版本在存储库表中不匹配,因此

Ubuntu 19.04 disco -> sudo apt-add-repository 'debhttps://dl.winehq.org/wine-builds/ubuntu/宇宙主宰

Ubuntu 18.04 bionic -> sudo apt-add-repository'debhttps://dl.winehq.org/wine-builds/ubuntu/xenial 主要'

相关内容