sudo apt update 报错:库 “https://download.docker.com/linux/ubuntu \ Release” 没有 Release 文件

发布时间 2023-08-09 22:30:55作者: cold_moon
sudo apt update

报错:

错误:10 https://download.docker.com/linux/ubuntu \ Release
404 Not Found [IP: 143.204.126.13 443]
命中:11 http://ppa.launchpad.net/rock-core/qt4/ubuntu focal InRelease
命中:12 https://dl.google.com/linux/chrome/deb stable InRelease
正在读取软件包列表... 完成
E: 仓库 “https://download.docker.com/linux/ubuntu \ Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

解决:

cd /etc/apt/sources.list.d
sudo rm -f docker.list
sudo rm -f docker.list.save

再次:

sudo apt update
# 成功

不需要其他操作。

参考:

https://blog.csdn.net/zhangmingfie/article/details/126893206

https://www.cnblogs.com/chrysanthemum/p/14720786.html