红联Linux门户
Linux帮助

使用yum命令时出现错误,哪位大哥能指点下

发布时间:2010-11-21 14:28:22来源:红联作者:dbft
[root@emos httpd-2.2.3]# yum -y install openssl-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. /
removing mirrorlist with no valid mirrors: //var/cache/yum/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
[root@emos httpd-2.2.3]#

//var/cache/yum/base/ 目录下没有mirrorlist.txt文件
文章评论

共有 3 条评论

  1. rundeep 于 2010-11-24 16:14:17发表:

    直接将你的yum的baseurl设置成本地的一张光盘下对应各种服务软件的文件目录就行了。
    文件好像是/etc/init.d/*.repo文件。

  2. rock^_^lee 于 2010-11-21 16:22:46发表:

    也可以尝试关闭fastestmirror,不过一般情况下是因为链接不上源。换成国内的源

  3. rock^_^lee 于 2010-11-21 16:22:00发表:

    自己添加个镜像源进去吧