The YUM stand for (Yellowdog Updater Modified) is a free and open-source command-line package utility for Linux rpm based operating system.
How to fix Yum Repo Error in CentOS 6
Output Error :-
Setting up Update Process
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
Step 1) Before we continue to fix YumRepo Error let's check the CentOS version.
$ cat /etc/redhat-release
Step 2) Make a Backup file of /etc/yum.repo.d/Centos-Base.
$ cp -a /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bkp
Step 3) Edit /etc/yum.repo.d/Centos-Base.repo file and do some changes.
vim /etc/yum.repos.d/CentOS-Base.repo
Step 4) Comment all the Row started from "mirrorlist=http"
Step 5) Uncomment all the Row started from "#baseurl=http"
Step 6) Change the baseurl from http://mirror.centos.org/ to http://vault.centos.org/
By using following vim editor command
- Come out from Insert mode press Esc
- Replace string :%s/mirror/vault/g
- Save file and exit :wq!
Step 7) sudo yum update
Now Successfully running yum update command.
No comments:
Post a Comment
testing