簡體   English   中英

存儲庫“http://archive.debian.org/debian jessie Release”未簽名

[英]The repository 'http://archive.debian.org/debian jessie Release' is not signed

我正在嘗試運行 docker-compose 構建,但遇到了這個問題:

=> 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

這是 Ubuntu 18.04,WSL2 在 Windows 10。

“存儲庫‘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

我認為根據這個答案可以有另一種解決方案在 apt-get update 之前添加這一層

RUN apt-get install debian-archive-keyring

好一點,因為它沒有安裝 debian-keyring,它很大而且 99% 的時間都是不必要的

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM