CentOS Stream 9にApache用Certbot(python3-certbot)をインストールできません。

CentOS Stream 9にApache用Certbot(python3-certbot)をインストールできません。

sudo yum install certbotCentos Stream 9がcertbot()をサーバーにインストールしようとすると、次のものが返されます。

Error: 
 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 or '--nobest' to use not only best candidate packages)

公式ウェブサイトからpython3-certbotをインストールしようとしましたが、このエラーも返されました。また、PowerToolsを開こうとしましたが、リポジトリが存在しないため、開けません。 certbotをインストールする方法はありますか?

ベストアンサー1

現在、dnfパッケージはなく、snapパッケージのみがあります。引用:

https://certbot.eff.org/instructions?ws=apache&os=centosrhel8

すべてのコマンドラインは次のとおりです。


dnf config-manager --set-enabled crb
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
dnf install https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm

dnf list|grep snapd
dnf install snapd

systemctl enable snapd
systemctl start snapd
systemctl status snapd

snap install core
ln -s /var/lib/snapd/snap /snap
snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot

systemctl list-timers

おすすめ記事