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

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   这个人的情况和我的不同

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值