[Errno 14] PYCURL ERROR 22 阿里yum源安裝,centos 6已停止維護
-
參考連結: https://wiki.centos.org/zh/About/Product
-
嘗試了163、清華源、都不行
-
阿里源也整了半天才在最下面的相關連結發現能找到源的地址 https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b11shelh6
- 備份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
- 下載新的 CentOS-Base.repo 到 /etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
- 執行 yum makecache 生成快取
[root@hadoop101 yum.repos.d]# yum makecache 已載入外掛:fastestmirror, refresh-packagekit, security Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository contrib is listed more than once in the configuration Determining fastest mirrors * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 嘗試其他映象。 To address this issue please refer to the below knowledge base article https://access.redhat.com/articles/1320623 If above article doesn't help to resolve this issue please open a ticket with Red Hat Support. http://mirrors.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirrors.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: (28, 'connect() timed out!') 嘗試其他映象。 http://mirrors.cloud.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.cloud.aliyuncs.com'" 嘗試其他映象。 錯誤:Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again [root@hadoop101 yum.repos.d]#
- 替換原始檔配置, 使用https://mirrors.aliyun.com/centos-vault/
- 官方: 非阿里雲ECS使用者會出現 Couldn’t resolve host ‘mirrors.cloud.aliyuncs.com’ 資訊,不影響使用。使用者也可自行修改相關配置: eg:
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo
- 替換http成https
sed -i 's/http/https/g' /etc/yum.repos.d/CentOS-Base.repo
- 替換版本,$releasever替換6.8, 6.8是我用的版本
sed -i 's/$releasever/6.8/g' /etc/yum.repos.d/CentOS-Base.repo
- 替換centos為centos-vault
sed -i 's/centos/centos-vault/g' /etc/yum.repos.d/CentOS-Base.repo
- 官方: 非阿里雲ECS使用者會出現 Couldn’t resolve host ‘mirrors.cloud.aliyuncs.com’ 資訊,不影響使用。使用者也可自行修改相關配置: eg:
yum clean all && yum makecache
[root@hadoop101 yum.repos.d]# yum clean all && yum makecache 已載入外掛:fastestmirror, refresh-packagekit, security Cleaning repos: base extras updates 清理一切 Cleaning up list of fastest mirrors 已載入外掛:fastestmirror, refresh-packagekit, security Determining fastest mirrors base | 3.7 kB 00:00 base/group_gz | 226 kB 00:00 base/filelists_db | 6.4 MB 00:01 base/primary_db | 4.7 MB 00:00 base/other_db | 2.8 MB 00:00 extras | 3.4 kB 00:00 extras/filelists_db | 38 kB 00:00 extras/prestodelta | 1.3 kB 00:00 extras/primary_db | 37 kB 00:00 extras/other_db | 51 kB 00:00 updates | 3.4 kB 00:00 updates/filelists_db | 3.5 MB 00:00 updates/prestodelta | 390 kB 00:00 updates/primary_db | 5.4 MB 00:01 updates/other_db | 74 MB 00:12 後設資料快取已建立 [root@hadoop101 yum.repos.d]#
相關文章
- CentoS6停止維護-yum源配置問題CentOS
- CentOS載入yum源時報錯 [Errno 14] HTTP Error 404 - Not Found Trying other mirror.CentOSHTTPError
- CentOS6官方不維護了,更新怎麼辦?配置阿里雲yum源CentOS阿里
- centos6-增加阿里yum源CentOS阿里
- centos7停止維護後怎麼換源?CentOS
- CentOS 搭建內部Yum源同步阿里Yum源CentOS阿里
- CentOS 8 停止維護後透過 rpm 包手動安裝 dockerCentOSDocker
- CentOS即將停止維護,擁抱阿里“龍蜥“(Anolis OS),VMware安裝Anolis OS與介紹CentOS阿里
- Centos6下使用yum安裝MariaDBCentOS
- Red Hat Linux安裝CentOS的yum源LinuxCentOS
- CentOS 7 配置 阿里雲 yum源CentOS阿里
- CentOS安裝配置yumCentOS
- Centos7配置阿里epel源|yum源CentOS阿里
- CentOS8 AnolisOS8 yum安裝 No match for argument: htop ErrorCentOSError
- Centos-Stream 配置本地yum源和配置阿里雲yum源CentOS阿里
- CentOS7 yum源修改為阿里,配置阿里epel源CentOS阿里
- CentOS8配置阿里雲YUM源CentOS阿里
- 【yum源】CentOS7安裝第三方源CentOS
- centos6,python3,通過pip安裝pycurl出現報錯提示CentOSPython
- CentOS 更改 yum 映象源為阿里雲映象源CentOS阿里
- Centos 7 yum 安裝nginxCentOSNginx
- CentOS 7 yum 安裝 NGINXCentOSNginx
- CentOS 7 yum 安裝 MySQLCentOSMySql
- CentOS7.9 搭建內部yum源伺服器同步阿里yum源CentOS伺服器阿里
- postgres yum源安裝
- Linux系統CentOS6 7 8更換阿里yum源的方法LinuxCentOS阿里
- centos 7中 yum安裝jdkCentOSJDK
- CentOs6.8 yum安裝GitLabCentOSGitlab
- CentOS 7 用yum安裝 MySQLCentOSMySql
- 在CentOS7上安裝MySQL5.7-YUM源方式CentOSMySql
- CentOS停止維護後我們該怎麼辦?CentOS
- 修改Centos7預設yum源為阿里雲源CentOS阿里
- centos7替換yum源為阿里雲CentOS阿里
- CentOS8使用阿里雲yum源異常CentOS阿里
- CentOS 7.0下使用yum安裝MySQLCentOSMySql
- CentOS 7 yum 安裝與配置 JDKCentOSJDK
- CentOS 7 yum 安裝與配置 RedisCentOSRedis
- CentOS 7 yum安裝與配置 TomcatCentOSTomcat