亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

搜索
博主信息
博文 291
粉絲 0
評論 0
訪問量 450453
最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板
解決:Failed to download metadata for repo ‘base‘
原創(chuàng)
1277人瀏覽過

鏡像下載、域名解析、時間同步請點擊 阿里云開源鏡像站

file

1.先查看本機的系統(tǒng)信息

  1. [root@h0436 h0436 zlong]# cat /etc/redhat-release

2.進入yum.repos.d

  1. [root@h0436 zlong]# cd /etc/yum.repos.d

3.查看鏡像文件(看看你需要修改的哪個文件)

  1. [root@h0436 yum.repos.d]# ls
  2. CentOS-Base.repo CentOS-Base.repo.bak epel.repo
  3. CentOS-Base.repo.backup docker-ce.repo

4.修改文件(我的是CentOS-Base.repo.backup文件)

  1. [root@h0436 yum.repos.d]# vim CentOS-Base.repo.backup

5.如果你找不到在哪個文件夾,你就每個文件夾都vim 進去看看,找到CentOS-Base.repo就行

file

6.復(fù)制下面這一段配置就行,按鍵盤上“i”編輯,按ESC退出。如果要保存退出就按:wq,如果不保存退出就按:q (圖中標(biāo)紅的地方都是改過之后的地方)

  1. [base]
  2. name=CentOS-8 - Base - mirrors.aliyun.com
  3. failovermethod=priority
  4. baseurl=http://mirrors.aliyun.com/centos/8/os/$basearch/
  5. http://mirrors.aliyuncs.com/centos/8/os/$basearch/
  6. http://mirrors.cloud.aliyuncs.com/centos/8/os/$basearch/
  7. gpgcheck=1
  8. gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-8
  9. #released updates
  10. [updates]
  11. name=CentOS-8 - Updates - mirrors.aliyun.com
  12. failovermethod=priority
  13. baseurl=http://mirrors.aliyun.com/centos/8/updates/$basearch/
  14. http://mirrors.aliyuncs.com/centos/8/updates/$basearch/
  15. http://mirrors.cloud.aliyuncs.com/centos/8/updates/$basearch/
  16. gpgcheck=1
  17. gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-8
  18. #additional packages that may be useful
  19. [extras]
  20. name=CentOS-8 - Extras - mirrors.aliyun.com
  21. failovermethod=priority
  22. baseurl=http://mirrors.aliyun.com/centos/8/extras/$basearch/
  23. http://mirrors.aliyuncs.com/centos/8/extras/$basearch/
  24. http://mirrors.cloud.aliyuncs.com/centos/8/extras/$basearch/
  25. gpgcheck=1
  26. gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-8
  27. #additional packages that extend functionality of existing packages
  28. [centosplus]
  29. name=CentOS-8 - Plus - mirrors.aliyun.com
  30. failovermethod=priority
  31. baseurl=http://mirrors.aliyun.com/centos/8/centosplus/$basearch/
  32. http://mirrors.aliyuncs.com/centos/8/centosplus/$basearch/
  33. http://mirrors.cloud.aliyuncs.com/centos/8/centosplus/$basearch/
  34. gpgcheck=1
  35. enabled=0
  36. gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-8
  37. #contrib - packages by Centos Users
  38. [contrib]
  39. name=CentOS-8 - Contrib - mirrors.aliyun.com
  40. failovermethod=priority
  41. baseurl=http://mirrors.aliyun.com/centos/8/contrib/$basearch/
  42. http://mirrors.aliyuncs.com/centos/8/contrib/$basearch/
  43. http://mirrors.cloud.aliyuncs.com/centos/8/contrib/$basearch/
  44. gpgcheck=1
  45. enabled=0
  46. gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-8

7.清除緩存

  1. [root@h0436 yum.repos.d]# yum clean all

8.加載緩存

  1. [root@h0436 yum.repos.d]# yum makecache

file

本文轉(zhuǎn)自:https://blog.csdn.net/Along_168163/article/details/124338818

本博文版權(quán)歸博主所有,轉(zhuǎn)載請注明地址!如有侵權(quán)、違法,請聯(lián)系admin@php.cn舉報處理!
全部評論 文明上網(wǎng)理性發(fā)言,請遵守新聞評論服務(wù)協(xié)議
0條評論
作者最新博文
關(guān)于我們 免責(zé)申明 意見反饋 講師合作 廣告合作 最新更新
php中文網(wǎng):公益在線php培訓(xùn),幫助PHP學(xué)習(xí)者快速成長!
關(guān)注服務(wù)號 技術(shù)交流群
PHP中文網(wǎng)訂閱號
每天精選資源文章推送
PHP中文網(wǎng)APP
隨時隨地碎片化學(xué)習(xí)
PHP中文網(wǎng)抖音號
發(fā)現(xiàn)有趣的

Copyright 2014-2025 http://ipnx.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號

  • 登錄PHP中文網(wǎng),和優(yōu)秀的人一起學(xué)習(xí)!
    全站2000+教程免費學(xué)