【发布时间】:2022-01-22 03:14:19
【问题描述】:
我尝试在https://github.com/FriendsOfSymfony/FOSHttpCache/pull/500/ 的 github 操作中安装清漆
bash -c 'curl -L https://packagecloud.io/varnishcache/varnish66/gpgkey | sudo apt-key add -'
bash -c 'curl -L "https://packagecloud.io/install/repositories/varnishcache/varnish66/config_file.list?os=ubuntu&dist=focal&source=script" | sudo tee -a /etc/apt/sources.list'
sudo apt-get update
sudo apt-get install -t focal varnish
密钥已安装,但 apt-get update 仍然失败
...
Get:19 http://azure.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [18.9 kB]
Get:20 http://azure.archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [7492 B]
Get:21 http://azure.archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [636 B]
Get:22 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 Packages [121 kB]
Err:7 https://packagecloud.io/varnishcache/varnish66/ubuntu focal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 45DACFFDB8AFA6AA
Get:23 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1069 kB]
...
W: GPG error: https://packagecloud.io/varnishcache/varnish66/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 45DACFFDB8AFA6AA
E: The repository 'https://packagecloud.io/varnishcache/varnish66/ubuntu focal InRelease' is not signed.
我尝试使用 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 45DACFFDB8AFA6AA 安装缺少 apt 的密钥,它做了一些事情并产生了输出 gpg: key 0BAC19E3F6C90CD5: public key "https://packagecloud.io/varnishcache/varnish66 (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>" imported(请注意,这里的密钥不一样 - 对 apt 密钥不够熟悉,无法判断这是预期的还是一个问题)
知道如何安装它吗?
【问题讨论】:
标签: ubuntu github-actions varnish