求助:运行yum update时出错

我勒个去也 发布于 2011/11/02 10:17
阅读 9K+
收藏 0
运行YUM UPDATE 时下班中断,第二天再开机运行yum update时出错。
[root@fedora14 m]# yum makecache

已加载插件:fastestmirror, langpacks, presto, refresh-packagekit
Adding zh_CN to language list
Loading mirror speeds

from cached hostfile
Fedora/metalink | 21 kB 00:00


Could not parse metalink https://mirrors.Fedoraproject.org/me...&arch=basearch error was
No repomd file

错误:File /var/cache/yum/i386/14/Fedora/metalink.xml does not exist

[root@fedora14 m]# yum install yum-fastestmirror

已加载插件:fastestmirror, langpacks, presto, refresh-packagekit
Adding zh_CN to language list
Loading mirror speeds

from cached hostfile

错误:Cannot retrieve metalink for repository: Fedora. Please verify its path and try again

[root@fedora14 m]# yum update

已加载插件:fastestmirror, langpacks, presto, refresh-packagekit
Adding zh_CN to language list
Loading mirror speeds

from cached hostfile

错误:Cannot retrieve metalink for repository: Fedora. Please verify its path and try again

[root@fedora14 m]#

补充: /var/cache/yum/i386/14/Fedora/metalink.xml 文件存在,

另火狐打不开,但可以PING通外网。

加载中
0
szf
szf

yum clean all

yum update

0
我勒个去也
我勒个去也

引用来自“szf”的答案

yum clean all

yum update

这个方法试过,还是不行
0
我勒个去也
我勒个去也

     多谢,问题已经解决,原因是我在/etc/yum.repos.d/下建立了一个sohu的源,那个文件可能不正确,将那个源移除,将原来fedora的源恢复回来,再运行yum update时就可以了,多谢SZF的回答!

 

不过另有一点倒是不太明白,我运行了

yum install yum-presto -y   

yum install fastestmirror

这两个命令后,原来的  fedora  的源还有必要保留吗?

 

返回顶部
顶部