当运行yum命令出现如下错误:
Cannot find a valid baseurl for repo: core
Error: Cannot find a valid baseurl for repo: core
则可以修改/etc/yum.resprepos.d/fedora-*.repo等文件中的baseaurl地址为一个合法的值,比如
[core]
name=Fedora Core $releasever - $basearch
#baseurl=
baseurl=
mirrorlist=
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KE
[updates]
name=Fedora Core $releasever - $basearch - Updates
#baseurl=
baseurl=
[extras]
name=Fedora Extras $releasever - $basearch
#baseurl=
baseurl=
mirrorlist=
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1
保存之后,再运行yum update等命令就ok了。
阅读(698) | 评论(0) | 转发(0) |