我尝试用以下命令更新Debian上的docker:
sudo apt-get update --allow-releaseinfo-change但我收到了以下错误消息:
Hit:1 http://asi-fs-n.contabo.net/debian buster InRelease
Hit:2 http://asi-fs-n.contabo.net/debian buster-updates InRelease
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Get:4 https://download.docker.com/linux/debian buster InRelease [54.0 kB]
Hit:5 https://download.docker.com/linux/ubuntu zesty InRelease
Ign:6 https://download.docker.com/linux/ubuntu docker InRelease
Err:7 https://download.docker.com/linux/ubuntu docker Release
404 Not Found [IP: 13.224.94.87 443]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu docker 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.从另一个StackOverflow主题来看,我似乎必须更新文件/etc/apt/ seems es.list.d/docker.list
我尝试了以下方法(但不起作用):
deb https://get.docker.io/ubuntu docker main注意到:
我是否应该在不破坏/破坏我的操作系统的情况下改变?
deb https://download.docker.com/linux/debian docker buster发布于 2021-09-08 13:07:30
见在Debian上安装Docker引擎。使用以下命令:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" |\
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null第一个命令将下载gpg键,第二个命令将调整您的docker.list文件。
然后运行sudo apt update
发布于 2021-09-07 22:57:53
创建以下文件:
$ cat /etc/apt/sources.list.d/docker-ce.list
deb [arch=amd64] https://download.docker.com/linux/debian buster stable然后删除/etc/apt/sources.list或/etc/apt/sources.list.d/*中的任何其他/etc/apt/sources.list.d/*条目。
发布于 2021-09-07 21:29:25
我曾经在VM上遇到过类似的问题。"https://download.docker.com/linux/ubuntu码头“的回购不存在,需要移除。不知道它为什么会在那里。
这对我起了作用:
sudo nano /etc/apt/sources.listsudo apt-get updatehttps://stackoverflow.com/questions/69092380
复制相似问题