我刚刚切换到 Bionic beaver,并一直在尝试安装 Wine。按照常规步骤(wget Wine 存储库 + Release.key 等)后,每次使用 apt 命令时,我都会收到以下错误:
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Ign:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
Err:3 https://dl.winehq.org/wine-builds/ubuntu bionic Release
404 Not Found [IP: 151.101.112.69 443]
Reading package lists... Done
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic
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.
现在我陷入了困境,由于错误,根本无法使用 aptitude。可能是什么问题?
答案1
您需要以 root 身份使用您喜欢的文本编辑器打开 /etc/apt/sources.list,并编辑 Wine 存储库的行,使其显示为:
deb https://dl.winehq.org/wine-builds/ubuntu/ artful main
目前,Bionic 尚无任何可用版本,因此您需要告诉 apt 寻找下一个最佳版本,即 Artful。不过,您仍将根据 PPA 获得最新版本。
经过 apt 更新后,您应该能够安装所需的 Wine 包的最新版本。