无法在Raspberry Pi 4上安装docker

时间:2019-07-13 02:49:29

标签: raspberry-pi raspbian

按照here所述的命令,我无法在运行树莓派破坏者的Raspberry PI 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储存库还没有男管家部分。

2 个答案:

答案 0 :(得分:3)

我认为对此的支持还为时过早,但是可以通过添加以下内容解决此问题:

deb [arch=armhf] https://download.docker.com/linux/raspbian stretch edge

/etc/apt/sources.list

答案 1 :(得分:0)

我有同样的问题。卸载了enerything,并尝试了几次。

最后,我通过ssh用腻子登录并通过ssh控制台而不是在Pi“控制台”本身(vnc)上安装了它。

它奏效了。不知道为什么。

(不记得了,也许我在更新后也重新启动了pi)