标签:list tab 避免 删除 cert 处理 packages 列表 key
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
获取:1 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
忽略:2 https://download.docker.com/linux/ubuntu focal InRelease
错误:3 https://download.docker.com/linux/ubuntu focal Release
404 Not Found [IP: 13.225.103.65 443]
命中:4 http://mirrors.163.com/ubuntu focal InRelease
命中:5 http://mirrors.163.com/ubuntu focal-updates InRelease
命中:6 http://mirrors.163.com/ubuntu focal-backports InRelease
忽略:7 http://dl.google.com/linux/chrome/deb stable InRelease
命中:8 http://dl.google.com/linux/chrome/deb stable Release
命中:9 http://archive.ubuntukylin.com:10006/ubuntukylin trusty InRelease
正在读取软件包列表... 完成
E: 仓库 “https://download.docker.com/linux/ubuntu focal Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
sudo apt-get update
获取:1 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
获取:2 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
命中:3 http://mirrors.163.com/ubuntu focal InRelease
命中:4 http://mirrors.163.com/ubuntu focal-updates InRelease
命中:5 http://mirrors.163.com/ubuntu focal-backports InRelease
忽略:6 http://dl.google.com/linux/chrome/deb stable InRelease
命中:7 http://dl.google.com/linux/chrome/deb stable Release
命中:8 http://archive.ubuntukylin.com:10006/ubuntukylin trusty InRelease
忽略:10 https://download.docker.com/linux/ubuntu focal InRelease
获取:11 https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages [11.0 kB]
错误:12 https://download.docker.com/linux/ubuntu focal Release
404 Not Found [IP: 13.225.103.32 443]
正在读取软件包列表... 完成
E: 仓库 “https://download.docker.com/linux/ubuntu focal Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
sudo apt-get update
sudo apt-get install docker-ce
sudo usermod -a -G docker $USER
or
sudo usermod -aG docker $USER
标签:list tab 避免 删除 cert 处理 packages 列表 key
原文地址:https://www.cnblogs.com/gaofangye/p/12812486.html