
又是我。不幸的是,當我嘗試安裝另一個儲存庫時,我破壞了原始的 yum 儲存庫,現在顯示一條錯誤訊息:
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
https://cdn.redhat.com/content/beta/rhel/server/7/x86_64/rhscl/1/os/repodata/repomd.xml.asc:[Errno 14] HTTPS 錯誤 404 - 找不到正在嘗試其他鏡像。若要解決此問題,請參閱以下知識庫文章
https://access.redhat.com/articles/1320623
如果上述文章無法協助解決此問題,請向紅帽支援開立票證。
rhel-server-rhscl-7-beta-rpms | rhel-server-rhscl-7-beta-rpms | rhel-server-rhscl-7-beta-rpms 4.0 KB 00:00:00
配置的儲存庫之一失敗(適用於 Red Hat Enterprise Linux 7 Server 的 Red Hat Software Collections Beta RPM),且 yum 沒有足夠的快取資料來繼續。此時 yum 能做的唯一安全的事情就是失敗。有幾種方法可以「修復」這個問題:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable rhel-server-rhscl-7-beta-rpms
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=rhel-server-rhscl-7-beta-rpms.skip_if_unavailable=true
失敗:來自 rhel-server-rhscl-7-beta-rpms 的 repodata/repomd.xml.asc:[Errno 256] 沒有更多鏡像可供嘗試。 https://cdn.redhat.com/content/beta/rhel/server/7/x86_64/rhscl/1/os/repodata/repomd.xml.asc:[Errno 14] HTTPS 錯誤 404 - 未找到
有人知道我如何解決這個問題嗎?我已經刪除了其他有問題的存儲庫。
編輯:使用 wget,這就是返回的內容:
wget https://cdn.redhat.com/content/beta/rhel/server/7/x86_64/rhscl/1/os/repodata/repomd.xml.asc
--2016-09-22 14:52:19-- https://cdn.redhat.com/content/beta/rhel/server/7/x86_64/rhs%E2%80%8C%E2%80%8Bcl/1/os/repodata/rep%E2%80%8C% E2%80%8Bomd.xml.asc
正在解析 cdn.redhat.com (cdn.redhat.com)... 173.222.216.251 正在連接到 cdn.redhat.com (cdn.redhat.com)|173.222.216.251|:443... 已連線。錯誤:無法驗證 cdn.redhat.com 的證書,由 '/C=US/ST=North Carolina/O=Red Hat, Inc./OU=Red Hat Network/CN=Red Hat Entitlement Operations Authority/ 頒發[電子郵件受保護]': 遇到自簽名憑證。若要不安全地連線到 cdn.redhat.com,請使用--no-check-certificate'。--no-check-certificate'. --2016-09-22 14:52:19-- https://cdn.redhat.com/content/beta/rhel/server/7/x86_64/rhs%E2%80%8C%E2%80%8Bcl/1/os/repodata/rep%E2%80%8C%E2%80%8Bomd.xml.asc Connecting to cdn.redhat.com (cdn.redhat.com)|173.222.216.251|:443... connected. ERROR: cannot verify cdn.redhat.com's certificate, issued by ‘/C=US/ST=North Carolina/O=Red Hat, Inc./OU=Red Hat Network/CN=Red Hat Entitlement Operations Authority/[email protected]’: Self-signed certificate encountered. To connect to cdn.redhat.com insecurely, use
答案1
我最近在紅帽開發者訂閱中註意到了同樣的事情。大多數預設訂閱儲存庫根本不需要,而且正如您所看到的,至少其中一個甚至無法工作。您最好的選擇是停用有問題的儲存庫,如您發布的錯誤輸出中詳細說明的。
yum-config-manager --disable rhel-server-rhscl-7-beta-rpms
更好的是,為了避免下載大量不必要的儲存庫數據,請停用所有儲存庫,而僅啟用基本儲存庫。
yum-config-manager --disable '*'
yum-config-manager --enable rhel-7-server-rpms
您也可以考慮啟用rhel-7-server-optional-rpms
和rhel-7-server-extras-rpms
,其中包含有用的東西,例如 docker 和 *-devel 軟體包。
答案2
試著用 清理東西yum clean all
,看看是否有幫助。