nginx 在Amazon Linux2023上安装let's encrypt

fgw7neuy  于 2023-04-29  发布在  Nginx
关注(0)|答案(1)|浏览(345)

我试图获得SSL证书,让我们加密nginx。首先,我使用命令$ 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,但得到了类似的错误。我了解到我可能需要一个代码准备建设者,但还没有能够安装它。请问我怎么才能得到它。如果这不是问题所在,请告诉我我做错了什么,我该如何解决?

yrdbyhpb

yrdbyhpb1#

我也遇到了同样的问题,所以我尝试使用epel-release-9包。这为我解决了:
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

相关问题