看板 Linux 關於我們 聯絡資訊
遇到問題如下: 有什麼方式 能解決?? 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
magicrex: 你是做了什麼出現這資訊? 09/10 15:17
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
magicrex: 要裝epel不用這樣裝阿,直接yum install epel-release 09/10 17:07
pizzahut: 這看起來是被更新後的repo出問題,所以yum會跳這個訊息 09/10 17:13
我有一台一模一樣 把什麼文件 copy 過來 是否有機會復原? 還是該如何卸載? 再裝? ※ 編輯: psinqoo (61.220.43.131), 09/10/2015 17:29:58 ※ 編輯: psinqoo (61.220.43.131), 09/10/2015 17:30:32
magicrex: 可是我照你的去打(重新裝一個mini版),可以更新... 09/10 18:46
psinqoo: @@~~ 我想自殺~~冏 09/10 18:54
magicrex: 別這樣~研究看看哪問題 09/10 18:57
magicrex: 也是跟我最小安裝? 09/10 18:58
Neisseria: 別這樣,可能只是 repo 剛好出問題,我試 mini 可安裝 09/10 21:23
ckknmark: 我也是 yum 掛了 看來是 http://dl.atrpms.net/ 連不上 09/10 21:41
psinqoo: 完全安裝 ~~開發的 09/11 09:43
magicrex: 桌面版? 09/11 10:21
psinqoo: 式的 桌面 09/11 10:30
magicrex: 最後一個安裝選項右邊全勾這樣嗎? 09/11 10:32
psinqoo: 是的 09/11 10:37
magicrex: 晚點測試看看 09/11 10:48
magicrex: 全安裝開機預設yum會啟動,你是先關掉再更新epel的? 09/11 11:29
psinqoo: 啟動的 灌完 跑全更新 09/11 11:34
magicrex: 呃...我不用那更新的...關了他再用你的那兩條OK 09/11 11:37
magicrex: 試試把Centos-XXX.repo以外的repo先刪除掉或更名repo.bk 09/11 11:43
magicrex: 然後跑yum讓他抓預設值看看 09/11 11:44
psinqoo: 所謂的更新是 桌面 選單內有軟體更新 去更新 09/11 11:58
magicrex: 所以你是灌完 用軟體更新去更新完後 去終端機打那兩行? 09/11 14:32
psinqoo: 是的 09/11 14:40