存储库“http://archive.debian.org/debian jessie Release”未签名

Ale*_*ald 4 linux ubuntu docker docker-compose wsl-2

我正在尝试运行 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
Run Code Online (Sandbox Code Playgroud)

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

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

当我尝试这样做时:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
Run Code Online (Sandbox Code Playgroud)

我明白了:

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
Run Code Online (Sandbox Code Playgroud)

之后:

sudo apt-get install -y nodejs postgresql-client libpng12-0
Run Code Online (Sandbox Code Playgroud)

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

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.
Run Code Online (Sandbox Code Playgroud)

小智 7

Dockerfile请在您的文件中添加:

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553 7638D0442B90D010 CBF8D6FD518E17E1
Run Code Online (Sandbox Code Playgroud)

在该行之前:

RUN apt-get update -qq && apt-get install -y nodejs postgresql-client libpng12-0
Run Code Online (Sandbox Code Playgroud)