无法在AmazonLinux上安装Varnish 6.0

时间:2018-07-24 09:08:06

标签: varnish

我正在尝试在amazon linux和ubuntu上安装varnish 6映像,但是不幸的是我没有成功。

我已经遵循https://packagecloud.io/varnishcache/varnish60/install#bash-rpm上的脚本和手动方法,均未成功。参见下面的输出。我在Ubuntu上也得到类似的输出

[root@aaa00web32 yum.repos.d]# curl -s https://packagecloud.io/install/repositories/varnishcache/varnish60/script.rpm.sh | sudo bash
Detected operating system as amzn/2018.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/varnishcache/varnish60/config_file.repo?os=amzn&dist=2018&source=script
done.
Installing pygpgme to verify GPG signatures...
Loaded plugins: ovl, priorities
amzn-main                                                                                                                                                                     | 2.1 kB  00:00:00
amzn-updates                                                                                                                                                                  | 2.5 kB  00:00:00
nt-local                                                                                                                                                                      | 2.9 kB  00:00:00
varnishcache_varnish60-source/signature                                                                                                                                       |  836 B  00:00:00
varnishcache_varnish60-source/signature                                                                                                                                       |  951 B  00:00:01 !!!
(1/6): amzn-main/latest/group_gz                                                                                                                                              | 4.4 kB  00:00:00
(2/6): amzn-updates/latest/group_gz                                                                                                                                           | 4.4 kB  00:00:00
(3/6): nt-local/primary_db                                                                                                                                                    |  59 kB  00:00:00
(4/6): amzn-updates/latest/primary_db                                                                                                                                         | 351 kB  00:00:00
(5/6): amzn-updates/latest/updateinfo                                                                                                                                         | 502 kB  00:00:00
(6/6): amzn-main/latest/primary_db                                                                                                                                            | 4.0 MB  00:00:01
varnishcache_varnish60-source/primary                                                                                                                                         |  175 B  00:00:01
Package python26-pygpgme-0.3-9.12.amzn1.x86_64 already installed and latest version
Nothing to do
Installing yum-utils...
Loaded plugins: ovl, priorities
Package yum-utils-1.1.31-40.29.amzn1.noarch already installed and latest version
Nothing to do
Generating yum cache for varnishcache_varnish60...

The repository is setup! You can now install packages.
[root@aaa00web32 yum.repos.d]# yum install varnish
Loaded plugins: ovl, priorities
No package varnish available.
Error: Nothing to do

[root@aaa00web32 yum.repos.d]# yum update
Loaded plugins: ovl, priorities
No packages marked for update
[root@aaa00web32 yum.repos.d]#

任何人都知道这里可能是什么问题?

1 个答案:

答案 0 :(得分:0)

清漆6.0不支持Amazon Linux

在[https://packagecloud.io/varnishcache/varnish60/install#bash-rpm][1]中,您会在安装脚本中看到

        else
      aws=`grep -q Amazon /etc/issue`
      if [ "$?" = "0" ]; then
        dist='6'
        os='aws'
      else
        unknown_os
      fi

amazon linux将dist设置为6

在清漆下载页面[https://packagecloud.io/varnishcache/varnish60lts?page=1][2]中,您可以看到没有el6

如果搜索el6标签[https://packagecloud.io/app/varnishcache/varnish60/search?dist=el%2F6][3]

,也会发生同样的情况