Centos
不工作 yum update (yum 沒有足夠的記憶體數據繼續)
我已經在centos 7上通過yum成功安裝了東西。然後我安裝了epel repo(
yum install epel-release
)並總是給我以下錯誤,之後我無法安裝任何東西One of the configured repositories failed (Unknown), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 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. Run the command with the repository temporarily disabled yum --disablerepo=<repoid> ... 4. Disable the repository permanently, 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 <repoid> or subscription-manager repos --disable=<repoid> 5. 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=<repoid>.skip_if_unavailable=true
我在網際網路上搜尋了很多,但我找不到解決方案。有些人可能來自代理。即使我將代理資訊添加到 yum.conf,但我還是失敗了。
然後我想檢查一下,如果我刪除了 epel repo,那麼它可能會起作用,然後我從系統中刪除了 epel-repo,之後我就可以安裝了。
請幫助我我花了兩天時間解決這個問題
正如您所發現的,epel-release 包導致了這個問題。如果您還沒有:
# yum remove epel-release
然後使用以下內容安裝 EPEL Repo(需要 wget 包):
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm # rpm -ivh epel-release-7-9.noarch.rpm
從那裡你應該能夠毫無問題地進行 yum update 。
我剛剛在使用新的 CentOS 7.6 時遇到了這個問題
解決方案很簡單:
不要刪除軟體包
epel-release
(如果您已經刪除了它,請安裝它)編輯文件
/etc/yum.repos.d/epel.repo
在第一節 (
[epel]
) 中:
- 評論
metalink=https://...
- 取消註釋
baseurl=http://...
這為我解決了這個問題。