日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

centos Error: Cannot find a valid baseurl for repo: base 解决方法

發布時間:2023/12/3 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 centos Error: Cannot find a valid baseurl for repo: base 解决方法 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

參考?https://arstech.net/centos-6-error-yumrepo-error-all-mirror-urls-are-not-using-ftp-http/?

【1】報錯現場;

原因, 軟件鏡像地址有誤,需要手工錄入;

2、編輯文件,?/etc/yum.repos.d/CentOS-Base.repo.

找到 base, updates, extras 域,并 注釋掉 mirrorlist, baseurl;?

然后復制 baseurl做修改,如下:(注意我的centos 版本是6.5 ,所以需要做對應修改)

# 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。?

?

?

?

?

創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的centos Error: Cannot find a valid baseurl for repo: base 解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。