gpt4 book ai didi

linux - 存储库 'http://archive.debian.org/debian jessie Release' 未签名

转载 作者:行者123 更新时间:2023-12-04 13:09:35 36 4
gpt4 key购买 nike

我正在尝试运行 docker-compose build,但我遇到了这个问题:

=> ERROR [ 3/12] RUN apt-get update -qq && apt-get install -y nodejs postgresql-client libpng12-0                                                        1.7s
------
> [ 3/12] RUN apt-get update -qq && apt-get install -y nodejs postgresql-client libpng12-0:
#6 1.665 W: GPG error: http://archive.debian.org/debian jessie Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY CBF8D6FD518E17E1
#6 1.665 E: The repository 'http://archive.debian.org/debian jessie Release' is not signed.
------
executor failed running [/bin/sh -c apt-get update -qq && apt-get install -y nodejs postgresql-client libpng12-0]: exit code: 100

这是 Windows 10 上带有 WSL2 的 Ubuntu 18.04。

“存储库 'http://archive.debian.org/debian jessie Release' 未签名”是什么意思?这是主要问题吗?

当我尝试这样做时:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553

我明白了:

Executing: /tmp/apt-key-gpghome.Vdb8SgvVbt/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
gpg: key 8B48AD6246925553: 30 signatures not checked due to missing keys
gpg: key 8B48AD6246925553: "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1

然后:

sudo apt-get install -y nodejs postgresql-client libpng12-0

我得到的信息是我拥有最新版本:

Reading package lists... Done
Building dependency tree
Reading state information... Done
postgresql-client is already the newest version (10+190ubuntu0.1).
nodejs is already the newest version (8.10.0~dfsg-2ubuntu0.4).
libpng12-0 is already the newest version (1.2.54-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 166 not upgraded.

最佳答案

在您的 Dockerfile 文件中,请添加:

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553 7638D0442B90D010 CBF8D6FD518E17E1

在行之前:

RUN apt-get update -qq && apt-get install -y nodejs postgresql-client libpng12-0

关于linux - 存储库 'http://archive.debian.org/debian jessie Release' 未签名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66924687/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com