E:存储库“https://download.docker.com/linux/debian focus Release”没有发布文件

Abh*_*nav 3 package-management apt repository docker

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.
Run Code Online (Sandbox Code Playgroud)

当我尝试从官方 docker 站点安装 docker 时,出现此错误。无论如何,现在我不想要它,但我在来源中找不到它。我跑了

$ sudo nano /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)

但我找不到要删除的 docker 存储库。如何删除 docker 存储库?

Abh*_*nav 5

跑步

sudo gedit /etc/apt/sources.list.d/docker.list
Run Code Online (Sandbox Code Playgroud)

评论该行,保存,瞧!完成,你的问题解决了!