自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

CentOS 6 停產(chǎn)后如何修復(fù)yum?

系統(tǒng) Linux
CentOS 開發(fā)者郵件列表顯示,CentOS 6 已于11月30日 EOL,如果由于某種原因,您被困在 CentOS 操作系統(tǒng)的現(xiàn)在EOL(生命的盡頭)版本,您將無法再yum upgrade成功運(yùn)行。

[[428510]]

概述

CentOS 6 停產(chǎn)后如何修復(fù) yum?

CentOS 開發(fā)者郵件列表顯示,CentOS 6 已于11月30日 EOL,如果由于某種原因,您被困在 CentOS 操作系統(tǒng)的現(xiàn)在EOL(生命的盡頭)版本,您將無法再yum upgrade成功運(yùn)行。yum upgrade在 CentOS 6 中運(yùn)行將產(chǎn)生以下結(jié)果:

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 停產(chǎn)后如何修復(fù) yum?

更換yum源

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

阿里云鏡像:

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

CentOS 6 停產(chǎn)后如何修復(fù) yum?

1、關(guān)閉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.repo https://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.repo https://static.lty.fun/%E5%85%B6%E4%BB%96%E8%B5%84%E6%BA%90/SourcesList/Centos-6-Vault-Aliyun.repo 

修復(fù) EPEL 存儲(chǔ)庫

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

修復(fù) SCLO 存儲(chǔ)庫

包含較新編譯軟件的存儲(chǔ)庫gcc可通過 Software Collections 獲得。

但是,它的存儲(chǔ)庫同樣消失了。改用 Vault 存儲(chǔ)庫:

  1. yum -y install centos-release-scl 
  2. curl https://www.getpagespeed.com/files/centos6-scl-eol.repo --output /etc/yum.repos.d/CentOS-SCLo-scl.repo 
  3. curl https://www.getpagespeed.com/files/centos6-scl-rh-eol.repo --output /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo 

 

責(zé)任編輯:姜華 來源: 今日頭條
相關(guān)推薦

2021-04-13 15:09:16

CentOS6EOL項(xiàng)目

2010-03-30 17:28:10

CentOS操作系統(tǒng)

2019-07-17 15:55:57

蘋果iPhone 6手機(jī)

2010-04-01 13:48:58

CentOS系統(tǒng)

2018-03-19 11:50:00

LinuxCentOS yum命令行

2012-09-06 11:40:00

CentOS 6.2yum

2010-04-01 14:16:04

CentOS 內(nèi)核

2009-12-28 11:27:34

Fedora Core

2013-12-04 14:45:22

2021-09-03 07:47:58

CentOS 7yum源

2010-02-22 16:27:24

CentOS yum

2021-08-04 06:30:27

CentOS 8OpenVASGVM

2010-03-29 15:18:52

CentOS系統(tǒng)

2010-02-06 10:06:29

CentOS yum倉

2010-01-13 14:09:33

CentOS yum使

2010-04-01 09:31:16

CentOS系統(tǒng)

2010-06-17 17:26:21

如何修復(fù)Grub

2018-01-09 09:20:39

CentOSRHELyum

2015-12-21 13:19:23

CentosRHEL 6.XWetty

2011-11-01 12:46:41

DCS-942L無線網(wǎng)絡(luò)攝像機(jī)
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)