ubuntu - apt update 存储库没有 Release 文件

标签 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.
我有 Ubuntu 版本 20.04.2 LTS 焦点。

最佳答案

这是 this solution 的简单概括但是因为我不能发表评论,所以我正在发帖以防这种概括对其他人有所帮助。
似乎可行的方法是添加存储库。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> 示例
所以在我的情况下,以下工作sudo apt-add-repository -r ppa:kasra-mp/ubuntu-indicator-weather

关于ubuntu - apt update 存储库没有 Release 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66405193/

相关文章:

c++ - 为什么我在尝试此 OpenGL 教程时得到 "r300 FP: Compiler Error:"?

python-2.7 - tensorflow的pip安装错误

Python 显示所有已安装的包

python - 通过 Ubuntu 的 apt-get 在 Dockerfile 中使用 apt-get 安装 python-pip

ubuntu - Apt 在 Ubuntu 18.04 上拒绝 `/etc/apt/trusted.gpg.d` 中的 key 环

python - 如何在 Ubuntu 9.10 上安装 Python 2.7

linux - 停止用户访问系统几天

ubuntu - dhcpd[] : send_packet6: Bad file descriptor

git - 在 ubuntu 20.04 上安装 git 时发生错误

python-apt包,获取pkg安装时间和构建时间?