仓库 'https://download.docker.com/linux/debian focal Release' 没有 Release 文件。

E: The repository 'https://download.docker.com/linux/debian 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.

我在尝试从官方Docker网站安装Docker时遇到了这个错误。不过,现在我不想要它了,但是我在源中找不到它的任何信息。我运行了...
$ sudo nano /etc/apt/sources.list

但是我找不到要删除的Docker仓库。我该如何删除Docker仓库?

请同时检查 /etc/apt/sources.list.d/ 目录下的文件。 - user535733
1指示明确使用 /etc/apt/sources.list.d/docker.list - muru
谢谢你们两个,这真的帮了我很多! - Abhi4mu
正确的行应该是https://download.docker.com/linux/ubuntu。如果您真的在使用Debian,那么这是不相关的。 - N0rbert
1个回答

运行
sudo gedit /etc/apt/sources.list.d/docker.list