存储库 '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
我认为可以有另一种解决方案according to this answer在apt-get更新
之前添加这一层
RUN apt-get install debian-archive-keyring
更好一点,因为 它不安装 debian-keyring,它很大而且 99% 的时间都是不必要的
我正在尝试 运行 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
我认为可以有另一种解决方案according to this answer在apt-get更新
之前添加这一层RUN apt-get install debian-archive-keyring
更好一点,因为 它不安装 debian-keyring,它很大而且 99% 的时间都是不必要的