Ubuntu 在 Sudo apt-get update 上出現 Docker 錯誤

Ubuntu 在 Sudo apt-get update 上出現 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 的儲存庫來源並確保我使用以下內容:

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毫無問題地運行了。

相關內容