centos Error: Cannot find a valid baseurl for repo: base 解决方法
生活随笔
收集整理的這篇文章主要介紹了
centos Error: Cannot find a valid baseurl for repo: base 解决方法
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
參考?https://arstech.net/centos-6-error-yumrepo-error-all-mirror-urls-are-not-using-ftp-http/?
【1】報(bào)錯(cuò)現(xiàn)場;
原因, 軟件鏡像地址有誤,需要手工錄入;
2、編輯文件,?/etc/yum.repos.d/CentOS-Base.repo.
找到 base, updates, extras 域,并 注釋掉 mirrorlist, baseurl;?
然后復(fù)制 baseurl做修改,如下:(注意我的centos 版本是6.5 ,所以需要做對應(yīng)修改)
# CentOS-Base.repo2 #3 # The mirror system uses the connecting IP address of the client and the4 # update status of each mirror to pick mirrors that are updated to and5 # geographically close to the client. You should use this for CentOS updates6 # unless you are manually picking other mirrors.7 #8 # If the mirrorlist= does not work for you, as a fall back you can try the9 # remarked out baseurl= line instead.10 #11 #12 13 [base]14 name=CentOS-$releasever - Base15 # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os16 # baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/17 baseurl=http://vault.centos.org/6.5/os/$basearch/18 gpgcheck=119 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-620 21 #released updates22 [updates]23 name=CentOS-$releasever - Updates24 # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates25 # baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/26 baseurl=http://vault.centos.org/6.5/updates/$basearch/27 gpgcheck=128 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-629 30 #additional packages that may be useful31 [extras]32 name=CentOS-$releasever - Extras33 # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras34 # baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/35 baseurl=http://vault.centos.org/6.5/extras/$basearch/36 gpgcheck=137 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-638 39 #additional packages that extend functionality of existing packages40 [centosplus]41 name=CentOS-$releasever - Plus42 mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus43 #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/44 gpgcheck=145 enabled=046 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-647 48 #contrib - packages by Centos Users49 [contrib]50 name=CentOS-$releasever - Contrib51 mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib52 #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/53 gpgcheck=154 enabled=055 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6?
3、清空緩存
yum clean all?
4 更新??yum update?
bingo。?
?
?
?
?
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的centos Error: Cannot find a valid baseurl for repo: base 解决方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: wpe安卓版(wpe安卓)
- 下一篇: how to install nc on