服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Centos - CentOS 6 停产后如何修复yum?

CentOS 6 停产后如何修复yum?

2021-10-14 21:49雪竹聊运维 Centos

CentOS 开发者邮件列表显示,CentOS 6 已于11月30日 EOL,如果由于某种原因,您被困在 CentOS 操作系统的现在EOL(生命的尽头)版本,您将无法再yum upgrade成功运行。

CentOS 6 停产后如何修复yum?

概述

CentOS 6 停产后如何修复yum?

CentOS 开发者邮件列表显示,CentOS 6 已于11月30日 EOL,如果由于某种原因,您被困在 CentOS 操作系统的现在EOL(生命的尽头)版本,您将无法再yum upgrade成功运行。yum upgrade在 CentOS 6 中运行将产生以下结果:

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 retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

CentOS 6 停产后如何修复yum?

更换yum源

CentOS官方:http://vault.centos.org/

阿里云镜像:

http://mirrors.aliyun.com/centos-vault/

CentOS 6 停产后如何修复yum?

1、关闭fastestmirror

  1. [root@localhost~]#vi/etc/yum/pluginconf.d/fastestmirror.conf
  2. [main]
  3. enabled=0#修改为0
  4. verbose=0

2、替换为官方Vault源

  1. mv/etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.bak
  2. #替换为官方Vault源
  3. wget-O/etc/yum.repos.d/CentOS-Base.repohttps://static.lty.fun/%E5%85%B6%E4%BB%96%E8%B5%84%E6%BA%90/SourcesList/Centos-6-Vault-Official.repo

3、替换为阿里云Vault镜像

  1. wget-O/etc/yum.repos.d/CentOS-Base.repohttps://static.lty.fun/%E5%85%B6%E4%BB%96%E8%B5%84%E6%BA%90/SourcesList/Centos-6-Vault-Aliyun.repo

修复 EPEL 存储库

  1. curlhttps://www.getpagespeed.com/files/centos6-epel-eol.repo--output/etc/yum.repos.d/epel.repo

修复 SCLO 存储库

包含较新编译软件的存储库gcc可通过 Software Collections 获得。

但是,它的存储库同样消失了。改用 Vault 存储库:

  1. yum-yinstallcentos-release-scl
  2. curlhttps://www.getpagespeed.com/files/centos6-scl-eol.repo--output/etc/yum.repos.d/CentOS-SCLo-scl.repo
  3. curlhttps://www.getpagespeed.com/files/centos6-scl-rh-eol.repo--output/etc/yum.repos.d/CentOS-SCLo-scl-rh.repo

原文链接:https://www.toutiao.com/a6994404327888552459/

延伸 · 阅读

精彩推荐
  • CentosCentOS系统下软件包的制作方法和过程详解

    CentOS系统下软件包的制作方法和过程详解

    今天小编将为大家带来的是CentOS系统下软件包的制作方法和过程详解;希望对大家会有帮助,有需要的朋友一起去看看吧...

    CentOS之家4802019-05-30
  • CentosCentOS上SVN服务器端程序的安装与使用教程

    CentOS上SVN服务器端程序的安装与使用教程

    SVN是一款高人气的软件项目版本控制系统,由于其在Windows的客户端的简易操作,在Git的浪潮中仍然保有很多的用户数量,这里我们就来看一下CentOS上SVN服务器端...

    cnblogs3902019-07-16
  • Centos在CentOS系统上安装Docker的教程

    在CentOS系统上安装Docker的教程

    这篇文章主要介绍了在CentOS系统上安装Docker的教程,Docker是当下人气最为火热的容器类虚拟软件,需要的朋友可以参考下 ...

    开源中文社区3952019-09-17
  • CentosCentOS6.2网卡设置

    CentOS6.2网卡设置

    如果你想让服务器可以更新、让网友访问你的LINUX服务器,那一定要设置LINUX网上给网卡绑定一个IP,下面我们就介绍CentOS6.2网卡设置IP的方法。...

    CentOS教程网10092021-10-03
  • Centos使用Xshell连接Centos 6.6服务器操作图文教程

    使用Xshell连接Centos 6.6服务器操作图文教程

    这篇文章主要介绍了使用Xshell连接Centos 6.6服务器操作图文教程,本文用详细的操作步骤讲解了如何使用Xshell连接Centos服务器,需要的朋友可以参考下 ...

    脚本之家4032019-09-18
  • CentosCentOS 最新版本git的安装教程

    CentOS 最新版本git的安装教程

    本文主要给大家介绍了CentOS 最新版本git的安装教程,非常不错,具有参考借鉴价值,感兴趣的朋友一起看看吧...

    CentOS教程网9252021-11-29
  • CentosCentOS7 阿里云的yum源使用详解

    CentOS7 阿里云的yum源使用详解

    这篇文章主要介绍了CentOS7 阿里云的yum源使用详解的相关资料,这里对备份yum源,添加EPEL源,和缓存清理,进行了介绍,需要的朋友可以参考下...

    天王9312020-12-28
  • Centoscentos 7中添加一个新用户并授权的步骤详解

    centos 7中添加一个新用户并授权的步骤详解

    这篇文章主要给大家介绍了关于在centos 7中添加一个新用户并授权的步骤,文中将实现的步骤介绍的非常详细,通过文中介绍的步骤可以轻松的创建一个新...

    Ryan.Miao9832022-02-12