错误:“deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable”无效

错误:“deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable”无效

我已将其添加deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable到我的 sources.list,然后运行sudo apt update,返回:

W: Skipping acquire of configured file 'stable/binary-amd64/Packages' as repository 'https://download.docker.com/linux/ubuntu eoan InRelease' doesn't have the component 'stabl
e' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stable/i18n/Translation-en_US' as repository 'https://download.docker.com/linux/ubuntu eoan InRelease' doesn't have the component 'stab
le' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stable/i18n/Translation-en' as repository 'https://download.docker.com/linux/ubuntu eoan InRelease' doesn't have the component 'stable'
 (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stable/dep11/Components-amd64.yml' as repository 'https://download.docker.com/linux/ubuntu eoan InRelease' doesn't have the component '
stable' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stable/dep11/icons-48x48.tar' as repository 'https://download.docker.com/linux/ubuntu eoan InRelease' doesn't have the component 'stabl
e' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stable/dep11/icons-64x64.tar' as repository 'https://download.docker.com/linux/ubuntu eoan InRelease' doesn't have the component 'stabl
e' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stable/dep11/[email protected]' as repository 'https://download.docker.com/linux/ubuntu eoan InRelease' doesn't have the component 'stable' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stable/dep11/icons-128x128.tar' as repository 'https://download.docker.com/linux/ubuntu eoan InRelease' doesn't have the component 'stable' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stable/cnf/Commands-amd64' as repository 'https://download.docker.com/linux/ubuntu eoan InRelease' doesn't have the component 'stable' (component misspelt in sources.list?)

有人遇到过同样的情况吗?我找不到原因,也不知道如何解决。

答案1

Docker 19.10 尚不存在,并且尚不存在 eoan 存储库,因此您需要使用 19.04 版本。

在您的 deb 声明中,像这样更改 Ubuntu 版本:

改变:

deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable

到:

deb [arch=amd64] https://download.docker.com/linux/ubuntu disco stable

相关内容