
我正在嘗試連接到網路服務,但收到錯誤訊息:
cURL error 77: .........
我已經閱讀了整個網絡,我可以透過以下方式修復它:
yum reinstall -y ca-certificates
但當我這樣做時,我得到:
# yum reinstall -y ca-certificates
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64 error was
14: curl#77 - "Problem with the SSL CA cert (path? access rights?)"
Could not retrieve mirrorlist https://mirror.webtatic.com/yum/el7/x86_64/mirrorlist error was
14: curl#77 - "Problem with the SSL CA cert (path? access rights?)"
我需要做什麼?
答案1
您可以使用以下指令暫時停用 yum 中的 ssl 驗證。
-
echo "sslverify=0" >> /etc/yum.conf
- yum reinstall -y ca-證書
- 使用您選擇的編輯器從 /etc/yum.conf 中刪除臨時 hack
編輯:
如果由於某種原因,這仍然不起作用,您可以嘗試以下操作:
- 找到包裹。對於 RPM 軟體包,我推薦以下網站 -https://pkgs.org/
curl -k
使用或下載軟體包wget --no-check-certificate
。請注意,我正在使用下面的情況http
,但可能會重定向到 https。對於 CentOS 7 和目前日期它看起來像:wget --no-check-certificate http://mirror.centos.org/centos/7/os/x86_64/Packages/ca-certificates-2020.2.41-70.0.el7_8.noarch.rpm || curl -k http://mirror.centos.org/centos/7/os/x86_64/Packages/ca-certificates-2020.2.41-70.0.el7_8.noarch.rpm -o ca-certificates-2020.2.41-70.0.el7_8.noarch.rpm
- 手動安裝
yum reinstall -y ./ca-certificates-2020.2.41-70.0.el7_8.noarch.rpm