我尝试在 Lubuntu 17.10 上安装 wine-mono 4.7.1
wget http://dl.winehq.org/wine/wine-mono/4.7.1
sudo apt update
结果:
Hit:1 http://bg.archive.ubuntu.com/ubuntu artful InRelease
Get:2 http://bg.archive.ubuntu.com/ubuntu artful-updates InRelease [78,6 kB]
Get:3 http://bg.archive.ubuntu.com/ubuntu artful-backports InRelease [72,2 kB]
Get:4 http://security.ubuntu.com/ubuntu artful-security InRelease [78,6 kB]
Hit:5 http://download.mono-project.com/repo/ubuntu xenial InRelease
Hit:6 http://ppa.launchpad.net/cdemu/ppa/ubuntu artful InRelease
Ign:7 http://dl.winehq.org/wine/wine-mono/4.7.1 artful InRelease
Err:8 http://dl.winehq.org/wine/wine-mono/4.7.1 artful Release
404 Not Found
Hit:9 https://dl.winehq.org/wine-builds/ubuntu artful InRelease
Hit:10 http://deb.playonlinux.com trusty InRelease
Reading package lists... Done
E: The repository 'http://dl.winehq.org/wine/wine-mono/4.7.1 artful 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.
我看这个帖子
“sudo add-apt-repository --remove ppa:”命令对我来说不起作用。
尝试手动从 /etc/apt/sources.list 中删除,但访问被拒绝
还有其他方法可以删除损坏的存储库吗
答案1
该wget
命令首先不添加 ppa,它只是通过 http 下载文件。您发布的命令只是从互联网上下载 Wine。
但是,如果您发现想要手动删除源,则可以通过打开/etc/apt/sources.list
并删除包含该源的行来实现。
您可以使用命令执行此操作sudo nano /etc/apt/sources.list
。使用 Sudo 是因为您需要 root 权限才能编辑文件。
答案2
下载mono的命令是:
wget https://dl.winehq.org/wine/wine-mono/4.7.1/wine-mono-4.7.1.msi
然后你必须在你想要安装 mono 的 WINE 前缀中运行它。
要更正源列表,您需要 root 权限:
sudo nano /etc/apt/sources.list