Sudo Apt-get update 上 Ubuntu 的 Docker 错误

Sudo Apt-get update 上 Ubuntu 的 Docker 错误

不久前我安装了 Docker,但不记得我做了什么。

我仍在学习/适应 Linux,不确定如何摆脱以下错误。

运行时sudo /apt-get update出现以下错误。如何消除此错误?

我只是想消除这个错误,而不是重新安装 Docker,我是否需要恢复add-apt-repository安装时执行的操作?

Err:14 https://download.docker.com/linux/ubuntu eoan Release                   
  404  Not Found [IP: 2600:9000:21d5:ae00:3:db06:4200:93a1 443]
Get:15 http://us.archive.ubuntu.com/ubuntu eoan-updates InRelease [97.5 kB]   
Err:16 https://download.docker.com/linux/debian eoan Release                   
  404  Not Found [IP: 2600:9000:21d5:ae00:3:db06:4200:93a1 443]
Get:17 http://us.archive.ubuntu.com/ubuntu eoan-backports InRelease [88.8 kB]
Hit:19 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease 
Reading package lists... Done                                                  
E: The repository 'https://download.docker.com/linux/ubuntu eoan 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.
E: The repository 'https://download.docker.com/linux/debian eoan 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.

答案1

感谢其他人提供的背景信息。如果这有帮助的话,为了真正解决错误,我通过运行以下命令解决了该问题:

sudo nano /etc/apt/sources.list

然后只需删除 eoan 的 repo 源并确保我使用以下内容:

deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable

此后我就可以apt-get无问题地运行。

相关内容