命令“/bin/sh -c apt-get update && apt-get install -y r-base”返回非零代码:100

问题描述

我正在尝试使用 Linux 环境在 docker 容器中运行 Rscript。我有一个看起来像这样的 Dockerfile:

FROM arm32v7/ubuntu
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y r-base

然后在与我运行的 Dockerfile 相同的文件夹中:

docker build -t armr .

这给了我以下消息:

Sending build context to Docker daemon   16.9kB
Step 1/3 : FROM arm32v7/ubuntu
 ---> 612a7284cf7c
Step 2/3 : ENV DEBIAN_FRONTEND=noninteractive
 ---> Using cache
 ---> 54d6525ea8e6
Step 3/3 : RUN apt-get update && apt-get install -y r-base
 ---> Running in 223af8c8164c
Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [101 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [109 kB]
Err:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
  At least one invalid signature was encountered.
Err:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
  At least one invalid signature was encountered.
Err:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
  At least one invalid signature was encountered.
Err:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
  At least one invalid signature was encountered.
Reading package lists...
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-security InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-security InRelease' is not signed.
The command '/bin/sh -c apt-get update && apt-get install -y r-base' returned a non-zero code: 100

我使用的是带有 Raspbian lite (buster) 的 RaspBerry Pi 3。

我清除了收到的可能会干扰的包,修剪了我的 docker 并使用 apt-transport-https 进行了尝试。

任何帮助,我对 docker(或 raspBerry 或 R)完全陌生。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)