Linux

CentOS 8 上的 certbot 安裝失敗

  • May 25, 2020

按照certbot 網站的sudo dnf install certbot python3-certbot-nginx建議,嘗試在 CentOS 8 上安裝 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。

誰能幫我這個?

您需要啟用包含所需依賴項的 PowerTools 儲存庫:

sudo dnf config-manager --set-enabled PowerTools

引用自:https://serverfault.com/questions/1018614