Ubuntu执行sudo apt update报404且提示参考apt-secure(8)手册页怎么办
报错原因
你遇到的apt update 404报错是因为此前安装IDM复刻版时添加的noobslab/apps PPA源已停止支持Ubuntu 20.04(Focal)版本,服务器上没有对应版本的Release验证文件,导致源校验失败。
原始报错内容:
Err:17 http://ppa.launchpad.net/noobslab/apps/ubuntu focal Release
404 Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/noobslab/apps/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.
修复方法
- 移除无效PPA源,两种方案选其一即可:
- 用apt自带工具移除
执行命令:
sudo add-apt-repository --remove ppa:noobslab/apps- 手动删除源配置文件
先进入源列表目录:
找到前缀为cd /etc/apt/sources.list.d/noobslab-ubuntu-apps的配置文件并删除:sudo rm noobslab-ubuntu-apps-*.list* - 用apt自带工具移除
- 验证修复:执行更新命令确认无报错
sudo apt update
内容的提问来源于stack exchange,提问作者Teshane Crawford
相关产品推荐
相关产品推荐

