在 Amazon Linux2023 上安装 let's encrypt

问题描述 投票:0回答:1

我正在尝试使用 let's encrypt nginx 获取 SSL 证书。首先,我使用命令

$ wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
$ sudo rpm -ihv --nodeps ./epel-release-latest-8.noarch.rpm
添加了 epel 并且它安装没有问题然后我尝试了
sudo yum install python3-certbot-nginx
并收到错误消息:

Problem: package certbot-1.22.0-1.el8.noarch requires python3-certbot = 1.22.0-1.el8, 
but none of the providers can be installed
  - conflicting requests
  - nothing provides python3.6dist(setuptools) >= 39.0.1 needed by python3-certbot-1.22.0-1.el8.noarch
  - nothing provides python3.6dist(cryptography) >= 2.5.0 needed by python3-certbot-1.22.0-1.el8.noarch
  - nothing provides python3.6dist(configobj) >= 5.0.6 needed by python3-certbot-1.22.0-1.el8.noarch
  - nothing provides python3.6dist(distro) >= 1.0.1 needed by python3-certbot-1.22.0-1.el8.noarch
  - nothing provides /usr/bin/python3.6 needed by python3-certbot-1.22.0-1.el8.noarch
  - nothing provides python3.6dist(pytz) needed by python3-certbot-1.22.0-1.el8.noarch
  - nothing provides python(abi) = 3.6 needed by python3-certbot-1.22.0-1.el8.noarch
  (try to add '--skip-broken' to skip uninstallable packages)

我也试过

sudo dnf install python3-certbot-nginx
但得到了类似的错误。 我了解到我可能需要一个代码就绪生成器,但无法安装它。请问我怎样才能得到它。如果那不是问题,请问我做错了什么,我该如何解决?

nginx ssl-certificate lets-encrypt certbot amazon-linux
1个回答
0
投票

我遇到了完全相同的问题,所以我尝试使用 epel-release-9 包。这为我解决了:

sudo dnf 安装https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

© www.soinside.com 2019 - 2024. All rights reserved.