最近在ubuntu20.04上安装kivy,使用了下面这个命令:
sudo add-apt-repository ppa:kivy-team/kivy
安装没有成功, 运行sudo apt update时出现了如下错误:
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 http://ppa.launchpad.net/kivy-team/kivy/ubuntu focal InRelease
Hit:3 http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu focal InRelease
Hit:4 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu focal InRelease
Err:5 http://ppa.launchpad.net/kivy-team/kivy/ubuntu focal Release
404 Not Found [IP: 91.189.95.83 80]
Hit:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal InRelease
Get:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRelease [111 kB]
Hit:8 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:9 https://www.charlesproxy.com/packages/apt charles-proxy InRelease
Ign:10 https://deepin-wine.i-m.dev InRelease
Get:11 https://deepin-wine.i-m.dev Release [1,221 B]
Get:12 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InRelease [98.3 kB]
Get:13 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRelease [107 kB]
Get:14 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates/main amd64 DEP-11 Metadata [204 kB]
Get:15 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates/universe amd64 DEP-11 Metadata [184 kB]
Get:16 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:17 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports/universe amd64 DEP-11 Metadata [1,972 B]
Get:18 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security/main amd64 DEP-11 Metadata [24.3 kB]
Get:19 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security/universe amd64 DEP-11 Metadata [52.4 kB]
Ign:20 https://deepin-wine.i-m.dev Release.gpg
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/kivy-team/kivy/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.
找了老半天终于找找到问题所在,其实就是这个包已经停止更新了,自然无法在系统中更新,解决办法就是将它从已安装软件中删除:
参考链接:
删除包
运行以下命令:
sudo apt-add-repository --remove ppa:kivy-team/kivy
或者:
sudo ppa-purge ppa:kivy-team/kivy
然后运行
sudo apt update
就不会报错了