apt更新存储库没有Release文件

Kri*_*Tom 6 ubuntu apt

apt update由于找不到存储库而失败。它产生以下日志。

Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:3 http://ca.archive.ubuntu.com/ubuntu focal-updates InRelease              
Hit:4 http://packages.microsoft.com/repos/code stable InRelease                
Hit:5 http://ca.archive.ubuntu.com/ubuntu focal-backports InRelease            
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease    
Ign:7 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu focal InRelease
Err:8 http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/ubuntu focal Release
  404  Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/kasra-mp/ubuntu-indicator-weather/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.
Run Code Online (Sandbox Code Playgroud)

我有 Ubuntu 版本 20.04.2 LTS focus。

Kri*_*Tom 8

这是该解决方案的简单概括,但因为我无法发表评论,所以我发了一篇文章,以防这种概括对其他人有所帮助。

似乎有效的方法是添加或删除存储库。

E: The repository 'http://ppa.launchpad.net/<org>/<repo>/ubuntu focal Release' does not have a Release file.

解决方案: sudo apt-add-repository -r ppa:<org>/<repo>

注意:“-r”标志将删除存储库。

例子

所以就我而言,以下工作有效 sudo apt-add-repository -r ppa:kasra-mp/ubuntu-indicator-weather