在 Centos Stream 9 上,当我尝试将 certbot ( sudo yum install 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
答案2
没有证书机器人对于 Centos Stream 9。它不存在于 epel 中,也不存在于 epel-next 存储库中,也不存在于 snapd 中。因此,您必须等待,直到它针对 Centos 9 发布。您存储库中的软件包适用于 Centos 8。它们永远不会工作。
答案3
我相信现在已经可以使用了。
yum install -y certbot
或者
dnf install -y certbot