YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. /

sudo yum update --系統更新出現這個問題
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </HTML>/
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.btte.net
Setting up Update Process

No Packages marked for Update


[wjx@localhost ~]$ yum clean all --嘗試用clean all,注意,這是在普通用戶模式下
Loaded plugins: fastestmirror, refresh-packagekit, security
Cleaning repos: base extras google-chrome rpmforge updates
Cleaning up Everything
Cannot remove rpmdb file /var/lib/yum/rpmdb-indexes/pkgtups-checksums
Cannot remove rpmdb file /var/lib/yum/rpmdb-indexes/conflicts
Cannot remove rpmdb file /var/lib/yum/rpmdb-indexes/file-requires
Cannot remove rpmdb file /var/lib/yum/rpmdb-indexes/version

Cleaning up list of fastest mirrors


[wjx@localhost ~]$ sudo yum update --還是不行
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. </HTML>/
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.btte.net
Setting up Update Process

No Packages marked for Update



[wjx@localhost ~]$ sudo yum clean all --突發奇想:試試加個sudo
Loaded plugins: fastestmirror, refresh-packagekit, security
Cleaning repos: base extras google-chrome rpmforge updates
Cleaning up Everything

Cleaning up list of fastest mirrors


[wjx@localhost ~]$ sudo yum update --沒有問題了
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
 * base: mirrors.grandcloud.cn
 * extras: mirrors.grandcloud.cn
 * rpmforge: kartolo.sby.datautama.net.id
 * updates: mirrors.grandcloud.cn
base                                                     | 3.7 kB     00:00     
base/primary_db                                          | 3.5 MB     00:02     
extras                                                   | 3.4 kB     00:00     
extras/primary_db                                        |  18 kB     00:00     
google-chrome                                            |  951 B     00:00     
google-chrome/primary                                    | 1.9 kB     00:00     
google-chrome                                                               3/3
rpmforge                                                 | 1.9 kB     00:00     
rpmforge/primary_db                                      | 2.8 MB     00:10     
updates                                                  | 3.4 kB     00:00     
updates/primary_db                                       | 2.9 MB     00:02     
Setting up Update Process

No Packages marked for Update



[wjx@localhost ~]$ sudo yum upate --自我估計是之前clean all只是清理了普通用戶下面的,沒有清理root下面的。清理了就OK了
Loaded plugins: fastestmirror, refresh-packagekit, security
No such command: upate. Please use /usr/bin/yum --help
[wjx@localhost ~]$ sudo yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.grandcloud.cn
 * extras: mirrors.grandcloud.cn
 * rpmforge: kartolo.sby.datautama.net.id
 * updates: mirrors.grandcloud.cn
Setting up Update Process
No Packages marked for Update

[wjx@localhost ~]$ 





補充:

http://blog.sina.com.cn/s/blog_541a3cf10101h245.html   這個人的情況和我的不同

發佈了62 篇原創文章 · 獲贊 3 · 訪問量 24萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章