Héc*_*ses 2 yum radix centos6 centos6.5 centos-6.9
当使用带有 Centos6 映像的 VirtualBox 时,我无法再执行 yum udpate,我在互联网上查了一下,看起来 Centos6 已被弃用。
[root@centos69 ~]# yum makecache
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
[root@centos69 ~]# yum update
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Update Process
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
Run Code Online (Sandbox Code Playgroud)
解决此问题可能有两种可能的解决方案:
\nvim /etc/yum.repos.d/CentOS-Base.repo\nRun Code Online (Sandbox Code Playgroud)\n删除或注释以“mirrorlist”开头的每一行。
\n并将以下行添加到文件的每个 [部分],例如 [base]、[updates]...
\nbaseurl=https://vault.centos.org/6.10/os/$basearch/\nRun Code Online (Sandbox Code Playgroud)\n/scripts/autorepair centos6_base_repo_is_no_more\nRun Code Online (Sandbox Code Playgroud)\n有关这些解决方案的更多信息:\n\xc2\xa0
\nhttps://support.cpanel.net/hc/en-us/articles/360058490254--CentOS-6-End-of-Life-Notice \n\xc2\xa0
\nhttps://forums.cpanel.net/threads/yumrepo-error-and-cannot-find-valid-baseurl.682465/
\n