ubuntu - 在 github 操作中安装 Varnish

标签 ubuntu github-actions varnish

我尝试在 https://github.com/FriendsOfSymfony/FOSHttpCache/pull/500/ 的 github 操作中安装 Varnish

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
key 已安装,但 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 缺少的 key 它做了一些事情并产生了输出gpg: key 0BAC19E3F6C90CD5: public key "https://packagecloud.io/varnishcache/varnish66 (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>" imported (请注意,这里的键不一样 - 对 apt 键不够熟悉,无法判断这是预期的还是有问题的)
知道如何安装它吗?

最佳答案

我在 Varnish Developer Portal 上创建了一个官方教程这解释了如何使用软件包安装 Varnish。
看看https://www.varnish-software.com/developers/tutorials/#installations有关分布的概述。
以下是 Ubuntu 的示例:https://www.varnish-software.com/developers/tutorials/installing-varnish-ubuntu/ .

关于ubuntu - 在 github 操作中安装 Varnish ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70422912/

相关文章:

curl - 使用 HTTP 和 REGEX 清除 Varnish

chef-infra - Varnish HAproxy Recipe

varnish - 测试 Varnish 缓存规则

python - SyntaxError : invalid syntax on lib/python3. 8/site-packages/sql_server/pyodbc/base.py django 在 Linux 上部署

azure - 如何使用Azure上/dev/sdb1下的空磁盘空间?

github - 如何从 github 中的矩阵触发单个部署 Hook ?

github-actions - 自动创建的 PR 不会触发 Github 工作流程

ubuntu - vmware。错误 : file not found Ubuntu fails to boot after upgrading version

mysql : Unable to set password for the MySQL "root" user

github-actions - 在 GitHub Actions 中,是否可以访问已删除分支的名称?