首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Raspberry Pi 4上安装docker

无法在Raspberry Pi 4上安装docker
EN

Stack Overflow用户
提问于 2019-07-13 10:49:29
回答 2查看 1.3K关注 0票数 3

按照概述的here命令,我无法在运行raspbian buster的树莓派4上安装docker。

下面是我按顺序尝试过的命令:

1) apt-get update

2) apt-get install apt-transport-https ca-certificates software-properties-common

3)

代码语言:javascript
复制
add-apt-repository \
       "deb https://apt.dockerproject.org/repo/ \
       raspbian-$(lsb_release -cs) \
       main"

在运行上述命令之后,我尝试运行apt-get update

代码语言:javascript
复制
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

代码语言:javascript
复制
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存储库还没有管家部分。

EN

回答 2

Stack Overflow用户

发布于 2019-07-13 10:54:36

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

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

/etc/apt/sources.list

票数 5
EN

Stack Overflow用户

发布于 2020-12-01 07:44:37

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

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

而且它起作用了。不知道为什么。

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57015772

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档