按照概述的here命令,我无法在运行raspbian buster的树莓派4上安装docker。
下面是我按顺序尝试过的命令:
1) apt-get update
2) apt-get install apt-transport-https ca-certificates software-properties-common
3)
add-apt-repository \
"deb https://apt.dockerproject.org/repo/ \
raspbian-$(lsb_release -cs) \
main"在运行上述命令之后,我尝试运行apt-get update
root@raspberrypi:/home/pi# apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Err:2 https://apt.dockerproject.org/repo raspbian-buster InRelease
403 Forbidden [IP: 13.249.111.113 443]
Ign:3 https://download.docker.com/linux/raspbian 10 InRelease
Err:4 https://download.docker.com/linux/raspbian 10 Release
404 Not Found [IP: 13.249.109.27 443]
Hit:5 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
E: Failed to fetch https://apt.dockerproject.org/repo/dists/raspbian-buster/InRelease 403 Forbidden [IP: 13.249.111.113 443]
E: The repository 'https://apt.dockerproject.org/repo raspbian-buster InRelease' is not signed.
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.
E: The repository 'https://download.docker.com/linux/raspbian 10 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.我尝试使用以下项(一次一个)将apt存储库配置直接附加到/etc/apt/sources.list:
https://apt.dockerproject.org/repo/ raspbian-buster main
deb https://apt.dockerproject.org/repo/ raspbian-buster main
deb https://apt.dockerproject.org/repo/ raspbian-jessie main
deb https://apt.dockerproject.org/repo/ debian-jessie main我注意到apt存储库还没有管家部分。
发布于 2019-07-13 10:54:36
我认为对此的支持还为时过早,但可以通过附加以下内容来解决此问题:
deb [arch=armhf] https://download.docker.com/linux/raspbian stretch edge
敬/etc/apt/sources.list。
发布于 2020-12-01 07:44:37
我也有同样的问题。卸载了enerything并尝试了几次。
最后,我通过ssh使用putty登录,并通过ssh控制台安装它,而不是安装在Pi“控制台”本身(vnc)上。
而且它起作用了。不知道为什么。
(记不起来了,也许我也在更新后重启了pi )
https://stackoverflow.com/questions/57015772
复制相似问题