{"id":228388,"date":"2021-10-22T09:29:28","date_gmt":"2021-10-22T01:29:28","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=228388"},"modified":"2021-10-14T19:30:18","modified_gmt":"2021-10-14T11:30:18","slug":"centos-6-eolyum","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/centos-6-eolyum.html","title":{"rendered":"CentOS 6 EOL\u540e\u5982\u4f55\u66f4\u6362yum\u6e90\uff1f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nCentOS \u5f00\u53d1\u8005\u90ae\u4ef6\u5217\u8868\u663e\u793a\uff0cCentOS 6 \u5df2\u4e8e11\u670830\u65e5 EOL\uff0c\u5982\u679c\u7531\u4e8e\u67d0\u79cd\u539f\u56e0\uff0c\u60a8\u88ab\u56f0\u5728 CentOS \u64cd\u4f5c\u7cfb\u7edf\u7684\u73b0\u5728EOL(\u751f\u547d\u7684\u5c3d\u5934)\u7248\u672c\uff0c\u60a8\u5c06\u65e0\u6cd5\u518dyum upgrade\u6210\u529f\u8fd0\u884c\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u6982\u8ff0<\/strong><\/div>\n

\"\"<\/p>\n

CentOS \u5f00\u53d1\u8005\u90ae\u4ef6\u5217\u8868\u663e\u793a\uff0cCentOS 6 \u5df2\u4e8e11\u670830\u65e5 EOL\uff0c\u5982\u679c\u7531\u4e8e\u67d0\u79cd\u539f\u56e0\uff0c\u60a8\u88ab\u56f0\u5728 CentOS \u64cd\u4f5c\u7cfb\u7edf\u7684\u73b0\u5728EOL(\u751f\u547d\u7684\u5c3d\u5934)\u7248\u672c\uff0c\u60a8\u5c06\u65e0\u6cd5\u518dyum upgrade\u6210\u529f\u8fd0\u884c\u3002yum upgrade\u5728 CentOS 6 \u4e2d\u8fd0\u884c\u5c06\u4ea7\u751f\u4ee5\u4e0b\u7ed3\u679c\uff1a<\/p>\n

YumRepo Error: All mirror URLs are not using ftp, http[s] or file.<\/p>\n

Eg. Invalid release\/repo\/arch combination\/<\/p>\n

removing mirrorlist with no valid mirrors: \/var\/cache\/yum\/x86_64\/6\/base\/mirrorlist.txt<\/p>\n

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again<\/p>\n

\u66f4\u6362yum\u6e90<\/strong><\/div>\n

CentOS\u5b98\u65b9\uff1ahttp:\/\/vault.centos.org\/<\/p>\n

\u963f\u91cc\u4e91\u955c\u50cf\uff1a<\/p>\n

http:\/\/mirrors.aliyun.com\/centos-vault\/<\/p>\n

\"\"<\/p>\n

1\u3001\u5173\u95edfastestmirror<\/strong><\/span><\/div>\n
[root@localhost\u00a0~]#\u00a0vi\u00a0\/etc\/yum\/pluginconf.d\/fastestmirror.conf\r\n[main]\r\nenabled=0\u00a0#\u4fee\u6539\u4e3a0\r\nverbose=0<\/pre>\n
2\u3001\u66ff\u6362\u4e3a\u5b98\u65b9Vault\u6e90<\/strong><\/span><\/div>\n
mv\u00a0\/etc\/yum.repos.d\/CentOS-Base.repo\u00a0\/etc\/yum.repos.d\/CentOS-Base.repo.bak\r\n#\u66ff\u6362\u4e3a\u5b98\u65b9Vault\u6e90\r\nwget\u00a0-O\u00a0\/etc\/yum.repos.d\/CentOS-Base.repo\u00a0https:\/\/static.lty.fun\/%E5%85%B6%E4%BB%96%E8%B5%84%E6%BA%90\/SourcesList\/Centos-6-Vault-Official.repo<\/pre>\n
3\u3001\u66ff\u6362\u4e3a\u963f\u91cc\u4e91Vault\u955c\u50cf<\/strong><\/span><\/div>\n
wget\u00a0-O\u00a0\/etc\/yum.repos.d\/CentOS-Base.repo\u00a0https:\/\/static.lty.fun\/%E5%85%B6%E4%BB%96%E8%B5%84%E6%BA%90\/SourcesList\/Centos-6-Vault-Aliyun.repo<\/pre>\n
\u4fee\u590d EPEL \u5b58\u50a8\u5e93<\/strong><\/div>\n
curl\u00a0https:\/\/www.getpagespeed.com\/files\/centos6-epel-eol.repo\u00a0--output\u00a0\/etc\/yum.repos.d\/epel.repo<\/pre>\n
\u4fee\u590d SCLO \u5b58\u50a8\u5e93<\/strong><\/div>\n

\u5305\u542b\u8f83\u65b0\u7f16\u8bd1\u8f6f\u4ef6\u7684\u5b58\u50a8\u5e93gcc\u53ef\u901a\u8fc7 Software Collections \u83b7\u5f97\u3002<\/p>\n

\u4f46\u662f\uff0c\u5b83\u7684\u5b58\u50a8\u5e93\u540c\u6837\u6d88\u5931\u4e86\u3002\u6539\u7528 Vault \u5b58\u50a8\u5e93\uff1a<\/p>\n

yum\u00a0-y\u00a0install\u00a0centos-release-scl\r\ncurl\u00a0https:\/\/www.getpagespeed.com\/files\/centos6-scl-eol.repo\u00a0--output\u00a0\/etc\/yum.repos.d\/CentOS-SCLo-scl.repo\r\ncurl\u00a0https:\/\/www.getpagespeed.com\/files\/centos6-scl-rh-eol.repo\u00a0--output\u00a0\/etc\/yum.repos.d\/C<\/pre>\n","protected":false},"excerpt":{"rendered":"

CentOS \u5f00\u53d1\u8005\u90ae\u4ef6\u5217\u8868\u663e\u793a\uff0cCentOS 6 \u5df2\u4e8e11\u670830\u65e5 EOL\uff0c\u5982\u679c\u7531\u4e8e\u67d0\u79cd\u539f\u56e0\uff0c\u60a8\u88ab\u56f0\u5728 Ce […]<\/p>\n","protected":false},"author":323,"featured_media":89924,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-228388","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=228388"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228388\/revisions"}],"predecessor-version":[{"id":228422,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228388\/revisions\/228422"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/89924"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=228388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=228388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=228388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}