我嘗試在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.
我嘗試安裝 apt 缺少的密鑰,sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 45DACFFDB8AFA6AA它做了一些事情并產生了輸出gpg: key 0BAC19E3F6C90CD5: public key "https://packagecloud.io/varnishcache/varnish66 (https://packagecloud.io/docs#gpg_signing) <[email protected]>" imported(請注意,這里的密鑰不一樣 - 對 apt 密鑰不夠熟悉,無法判斷這是預期的還是有問題的)
知道如何安裝它嗎?
uj5u.com熱心網友回復:
一位同事發現了我的錯誤:清漆源串列檔案指定了需要 gpg 密鑰的密鑰環的路徑,但我讓 apt-key 將密鑰添加到默認密鑰環。
我們發現https://packagecloud.io/varnishcache/varnish66/install這似乎是問題的干凈解決方案,一個以一致方式安裝密鑰和源條目的腳本。我現在將使用安裝腳本。
uj5u.com熱心網友回復:
我在Varnish Developer Portal上創建了一個官方教程,解釋了如何使用包安裝 Varnish。
查看https://www.varnish-software.com/developers/tutorials/#installations以了解發行版的概述。
這是 Ubuntu 的示例:https : //www.varnish-software.com/developers/tutorials/installing-varnish-ubuntu/。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/394842.html
標籤:乌本图 github-actions 漆
上一篇:我可以在不構建Ubunto內核的情況下為Ubuntu構建內核驅動程式嗎?
下一篇:物件成員的打字稿行內型別宣告
