尝试使用 在 CentOS 8 上安装 certbot sudo dnf install certbot python3-certbot-nginx
,如建议的那样certbot 的网站失败并出现以下错误
Error:
Problem 1: package python3-certbot-nginx-1.3.0-1.el8.noarch requires python3.6dist(certbot) >= 1.1.0, but none of the providers can be installed
- package python3-certbot-nginx-1.3.0-1.el8.noarch requires python3-certbot >= 1.0.0, but none of the providers can be installed
- conflicting requests
- nothing provides python3-mock needed by python3-certbot-1.3.0-3.el8.noarch
- nothing provides python3.6dist(mock) needed by python3-certbot-1.3.0-3.el8.noarch
Problem 2: package certbot-1.3.0-3.el8.noarch requires python3-certbot = 1.3.0-3.el8, but none of the providers can be installed
- conflicting requests
- nothing provides python3-mock needed by python3-certbot-1.3.0-3.el8.noarch
- nothing provides python3.6dist(mock) needed by python3-certbot-1.3.0-3.el8.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
正如最后一条错误行所暗示的那样,添加--nobest
命令没有作用。
之前已经安装了Epel-Release和python3。
谁能帮我这个?
答案1
您需要启用包含所需依赖项的 PowerTools repo:
sudo dnf config-manager --set-enabled PowerTools