[問題] centos

看板Linux作者 (零度空間)時間10年前 (2015/09/10 14:49), 10年前編輯推噓1(1022)
留言23則, 5人參與, 最新討論串1/2 (看更多)
遇到問題如下: 有什麼方式 能解決?? CENTOS 7 可以 PING 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. 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 <repoid> 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=<repoid>.skip_if_unavailable=true -- -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.220.43.131 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1441867763.A.355.html ※ 編輯: psinqoo (61.220.43.131), 09/10/2015 14:51:05

09/10 15:17, , 1F
你是做了什麼出現這資訊?
09/10 15:17, 1F
su -c 'rpm -Uvh http://ftp.yzu.edu.tw/Linux/Fedora-EPEL/7/x86_64/e/epel-release-7-5.noarch.rpm' sudo yum update ※ 編輯: psinqoo (61.220.43.131), 09/10/2015 16:13:14

09/10 17:07, , 2F
要裝epel不用這樣裝阿,直接yum install epel-release
09/10 17:07, 2F

09/10 17:13, , 3F
這看起來是被更新後的repo出問題,所以yum會跳這個訊息
09/10 17:13, 3F
我有一台一模一樣 把什麼文件 copy 過來 是否有機會復原? 還是該如何卸載? 再裝? ※ 編輯: psinqoo (61.220.43.131), 09/10/2015 17:29:58 ※ 編輯: psinqoo (61.220.43.131), 09/10/2015 17:30:32

09/10 18:46, , 4F
可是我照你的去打(重新裝一個mini版),可以更新...
09/10 18:46, 4F

09/10 18:54, , 5F
@@~~ 我想自殺~~冏
09/10 18:54, 5F

09/10 18:57, , 6F
別這樣~研究看看哪問題
09/10 18:57, 6F

09/10 18:58, , 7F
也是跟我最小安裝?
09/10 18:58, 7F

09/10 21:23, , 8F
別這樣,可能只是 repo 剛好出問題,我試 mini 可安裝
09/10 21:23, 8F

09/10 21:41, , 9F
我也是 yum 掛了 看來是 http://dl.atrpms.net/ 連不上
09/10 21:41, 9F

09/11 09:43, , 10F
完全安裝 ~~開發的
09/11 09:43, 10F

09/11 10:21, , 11F
桌面版?
09/11 10:21, 11F

09/11 10:30, , 12F
式的 桌面
09/11 10:30, 12F

09/11 10:32, , 13F
最後一個安裝選項右邊全勾這樣嗎?
09/11 10:32, 13F

09/11 10:37, , 14F
是的
09/11 10:37, 14F

09/11 10:48, , 15F
晚點測試看看
09/11 10:48, 15F

09/11 11:29, , 16F
全安裝開機預設yum會啟動,你是先關掉再更新epel的?
09/11 11:29, 16F

09/11 11:34, , 17F
啟動的 灌完 跑全更新
09/11 11:34, 17F

09/11 11:37, , 18F
呃...我不用那更新的...關了他再用你的那兩條OK
09/11 11:37, 18F

09/11 11:43, , 19F
試試把Centos-XXX.repo以外的repo先刪除掉或更名repo.bk
09/11 11:43, 19F

09/11 11:44, , 20F
然後跑yum讓他抓預設值看看
09/11 11:44, 20F

09/11 11:58, , 21F
所謂的更新是 桌面 選單內有軟體更新 去更新
09/11 11:58, 21F

09/11 14:32, , 22F
所以你是灌完 用軟體更新去更新完後 去終端機打那兩行?
09/11 14:32, 22F

09/11 14:40, , 23F
是的
09/11 14:40, 23F
文章代碼(AID): #1LyIVpDL (Linux)
討論串 (同標題文章)
以下文章回應了本文
完整討論串 (本文為第 1 之 2 篇):
1
23
10年前, 09/10
文章代碼(AID): #1LyIVpDL (Linux)