Linux
使用 RHEL 6.5 安裝 Yum 失敗
我正在嘗試使用 YUM 安裝(Yum install shibboleth)安裝 shibboleth SP 包。安裝時出現以下錯誤。
Downloading Packages: http://download.opensuse.org/repositories/security%3A/shibboleth/CentOS_CentOS-6/x86_64/libcurl- openssl-7.33.0-1.1.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://download.opensuse.org/repositories/security%3A/shibboleth/CentOS_CentOS- 6/x86_64/liblog4shib1-1.0.8-1.1.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://download.opensuse.org/repositories/security%3A/shibboleth/CentOS_CentOS-6/x86_64/libsaml8-2.5.3-1.1.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://download.opensuse.org/repositories/security%3A/shibboleth/CentOS_CentOS-6/x86_64/libxerces-c-3_1-3.1.1-2.1.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://download.opensuse.org/repositories/security%3A/shibboleth/CentOS_CentOS-6/x86_64/libxml-security-c17-1.7.2-2.1.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. http://download.opensuse.org/repositories/security%3A/shibboleth/CentOS_CentOS-6/x86_64/libxmltooling6-1.5.3-1.1.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. Error Downloading Packages:libxerces-c-3_1-3.1.1-2.1.x86_64: failure: x86_64/libxerces-c-3_1- 3.1.1-2.1.x86_64.rpm from security_shibboleth: [Errno 256] No more mirrors to try. liblog4shib1-1.0.8-1.1.x86_64: failure: x86_64/liblog4shib1-1.0.8-1.1.x86_64.rpm from security_shibboleth: [Errno 256] No more mirrors to try. libcurl-openssl-7.33.0-1.1.x86_64: failure: x86_64/libcurl-openssl-7.33.0-1.1.x86_64.rpm from security_shibboleth: [Errno 256] No more mirrors to try. libxml-security-c17-1.7.2-2.1.x86_64: failure: x86_64/libxml-security-c17-1.7.2-2.1.x86_64.rpm from security_shibboleth: [Errno 256] No more mirrors to try. libsaml8-2.5.3-1.1.x86_64: failure: x86_64/libsaml8-2.5.3-1.1.x86_64.rpm from security_shibboleth: [Errno 256] No more mirrors to try. libxmltooling6-1.5.3-1.1.x86_64: failure: x86_64/libxmltooling6-1.5.3-1.1.x86_64.rpm from security_shibboleth: [Errno 256] No more mirrors to try.
這個問題可能是什麼原因?我在其他一些機器上使用相同的命令安裝了它(它工作正常)。
最後我確定了這個問題。
我的機器連接的鏡像不包含請求的文件。
因此,在儲存庫配置中更改基本 URL/鏡像列表就解決了這個問題。
如果您在瀏覽器中收到 404,這是什麼意思?這裡也是一樣。
您已記憶體有關此儲存庫的元數據不再有效,或者您在訪問鏡像時遇到網路問題。從 a 開始,
yum clean all
然後重試。如果仍然失敗,請開始調查網路堆棧。(您是否在此主機上為 download.opensuse.org 等記憶體了錯誤的 DNS 記錄?)