【问题标题】:apt update repository does not have a Release fileapt update 存储库没有 Release 文件
【发布时间】:2021-02-28 09:56:23
【问题描述】:

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 焦点。

【问题讨论】:

    标签: ubuntu apt


    【解决方案1】:

    这是对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

    【讨论】:

      猜你喜欢
      • 2018-04-18
      • 2022-11-14
      • 2021-10-18
      • 2019-07-12
      • 2020-01-09
      • 2017-04-29
      • 2023-02-19
      • 2018-11-04
      • 2019-01-28
      相关资源
      最近更新 更多