fswdnr 发表于 2015-11-6 08:30:51

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 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
  

$ 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
  

$ 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 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
  

  

$ 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
  

$ 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
  

  

$ sudo yum upate --自我估计是之前clean all只是清理了普通用户下面的,没有清理root下面的。清理了就OK了
Loaded plugins: fastestmirror, refresh-packagekit, security
No such command: upate. Please use /usr/bin/yum --help
$ 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
  $
  

  

  

  

  补充:
  http://blog.sina.com.cn/s/blog_541a3cf10101h245.html   这个人的情况和我的不同
         版权声明:本文为博主原创文章,未经博主允许不得转载。
页: [1]
查看完整版本: YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. /