User Tools

Site Tools


linux:admin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:admin [2021/04/23 03:04] – [Install software] adminlinux:admin [2022/10/29 16:15] (current) – external edit 127.0.0.1
Line 4: Line 4:
  
 ===== Fix Old CentOS Repos ===== ===== Fix Old CentOS Repos =====
 +Maintainece update not supported from **2020/11/30** => you must config repos to new mirror for Fixing yum error:
 +<code bash>
 +yum list
 +Failed to set locale, defaulting to C
 +Loaded plugins: fastestmirror
 +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
 +</code>
 +
 +Steps:
 +  - Step1: **Update /etc/yum.repos.d/CentOS-Base.repo**
 <code bash> <code bash>
 [base] [base]
Line 22: Line 35:
 enabled=0 enabled=0
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
 +</code>
 +  - Step2:<code bash>
 +yum clean all
 </code> </code>
 ===== Install software ===== ===== Install software =====
linux/admin.1619147041.txt.gz · Last modified: 2022/10/29 16:15 (external edit)