我该如何解决这个“E:存储库‘http://deb.debian.org/debian bullseye-updates InRelease’未签名。”错误

问题描述 投票:0回答:1

我只是想知道我见过一些类似的问题并尝试了不同的解决方案,例如我们将源列表添加到sources.list文件中并使用docker命令删除/修剪图像,但似乎不起作用。

我正在构建一个新图像,代码如下:

 && echo "I am here ------------------->>" \
&& apt-get update \
&& apt-get install -y apt-utils  \
&& apt-get install -y build-essential \
&& apt-get autoremove -y \
&& apt-get upgrade -y \
&& apt-get install -y wget unzip \
&& rm -rf /var/lib/apt/lists/* \
&& echo "------------------->>" \
&& cd /tmp \
&& wget --quiet --directory-prefix=/tmp https://releases.hashicorp.com/vault/0.10.1/vault_0.10.1_linux_amd64.zip \
&& unzip vault*.zip \

但继续出现以下错误。顺便说一句,我正在 Mac 上运行。

必填【IP: 10.139.234.224 8080】 #16 0.426 E: 无法获取 http://httpredir.debian.org/debian/dists/buster-backports/InRelease 407 需要代理身份验证 [IP: 10.139.234.224 8080] #16 0.426 E:存储库“http://httpredir.debian.org/debian buster-backports InRelease”未签名。 #16 0.426 E:无法获取 http://deb.debian.org/debian/dists/bullseye-updates/InRelease 407 需要代理身份验证 [IP: 10.139.234.224 8080] #16 0.426 E:存储库“http://deb.debian.org/debian bullseye-updates InRelease”未签名。 E:存储库“http://deb.debian.org/debian bullseye-updates InRelease”未签名。

docker debian
1个回答
0
投票

在 apt-get update 之前尝试使用以下命令刷新 GPG 密钥

RUN apt-get update && apt-get install -y debian-archive-keyring && apt-get clean
© www.soinside.com 2019 - 2024. All rights reserved.