ubuntu20.10 64位 安装docker疑问

分别尝试用阿里和docker官方的都add-apt-repository失败。报错都一致,请问老师有什么好的解决方法么? 纠结好几天了。 :cry: Ubuntu版本是20.10

阿里云报错

你把log贴下,不然里面的网址我没法验证

源的问题

新建一个文件 etc/docker/daemon.json
文件内容:

{
"registry-mirrors": ["http://hub-mirror.c.163.com"]

}

试试看。我之前安装报错,是这么处理的

指令:
sudo add-apt-repository “deb [arch=amd64] Index of linux/ubuntu/ $(lsb_release -cs) stable”
输出:
Repository: ‘deb [arch=amd64] Index of linux/ubuntu/ groovy stable’
Description:
Archive for codename: groovy components: stable
More info: Index of linux/ubuntu/
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Found existing deb entry in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-groovy.list
Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-groovy.list
Found existing deb-src entry in /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-groovy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-https_download_docker_com_linux_ubuntu-groovy.list
忽略:1 Index of linux/ubuntu/ groovy InRelease
错误:2 Index of linux/ubuntu/ groovy Release
404 Not Found [IP: 13.225.7.61 443]
命中:3 Index of /ubuntu/ groovy InRelease
获取:4 Index of /ubuntu/ groovy-security InRelease [108 kB]
获取:5 Index of /ubuntu/ groovy-updates InRelease [106 kB]
命中:6 Index of /ubuntu/ groovy-backports InRelease
获取:7 Index of /ubuntu/ groovy-security/main amd64 DEP-11 Metadata [2,580 B]
获取:8 Index of /ubuntu/ groovy-security/main amd64 c-n-f Metadata [1,320 B]
获取:9 Index of /ubuntu/ groovy-security/universe amd64 DEP-11 Metadata [1,800 B]
获取:10 Index of /ubuntu/ groovy-updates/main Sources [26.3 kB]
获取:11 Index of /ubuntu/ groovy-updates/main i386 Packages [24.6 kB]
获取:12 Index of /ubuntu/ groovy-updates/main amd64 Packages [78.0 kB]
获取:13 Index of /ubuntu/ groovy-updates/main Translation-en [21.0 kB]
获取:14 Index of /ubuntu/ groovy-updates/main amd64 DEP-11 Metadata [2,584 B]
获取:15 Index of /ubuntu/ groovy-updates/main amd64 c-n-f Metadata [1,624 B]
获取:16 Index of /ubuntu/ groovy-updates/universe amd64 Packages [23.9 kB]
获取:17 Index of /ubuntu/ groovy-updates/universe i386 Packages [19.5 kB]
获取:18 Index of /ubuntu/ groovy-updates/universe Translation-en [8,400 B]
获取:19 Index of /ubuntu/ groovy-updates/universe amd64 DEP-11 Metadata [1,804 B]
正在读取软件包列表… 完成
E: 仓库 “Index of linux/ubuntu/ groovy Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

·
·
·

指令:sudo add-apt-repository “deb [arch=amd64] docker-ce-linux-ubuntu安装包下载_开源镜像站-阿里云 $(lsb_release -cs) stable”
输出:
Repository: ‘deb [arch=amd64] docker-ce-linux-ubuntu安装包下载_开源镜像站-阿里云 groovy stable’
Description:
Archive for codename: groovy components: stable
More info: docker-ce-linux-ubuntu安装包下载_开源镜像站-阿里云
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-groovy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-http_mirrors_aliyun_com_docker-ce_linux_ubuntu-groovy.list
忽略:1 docker-ce-linux-ubuntu安装包下载_开源镜像站-阿里云 groovy InRelease
错误:2 docker-ce-linux-ubuntu安装包下载_开源镜像站-阿里云 groovy Release
404 Not Found [IP: 219.144.98.100 80]
命中:3 Index of /ubuntu/ groovy InRelease
命中:4 Index of /ubuntu/ groovy-security InRelease
命中:5 Index of /ubuntu/ groovy-updates InRelease
命中:6 Index of /ubuntu/ groovy-backports InRelease
忽略:7 Index of linux/ubuntu/ groovy InRelease
错误:8 Index of linux/ubuntu/ groovy Release
404 Not Found [IP: 13.225.7.61 443]
正在读取软件包列表… 完成
E: 仓库 “docker-ce-linux-ubuntu安装包下载_开源镜像站-阿里云 groovy Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “Index of linux/ubuntu/ groovy Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。