![错误:“deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable”无效](https://linux22.com/image/1016237/%E9%94%99%E8%AF%AF%EF%BC%9A%E2%80%9Cdeb%20%5Barch%3Damd64%5D%20https%3A%2F%2Fdownload.docker.com%2Flinux%2Fubuntu%20eoan%20stable%E2%80%9D%E6%97%A0%E6%95%88.png)
我已将其添加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