How to fix CentOS 5 or 6 error: YumRepo Error: All mirror URLs are not using ftp, http[s] or file Rumi, December 6, 2020July 9, 2021 The error looks like- And here goes the resolution (please carefully update/use the exact CentOS version you are using, in my case it was CentOS 6.9) 1. Go to /etc/yum.repos.d/ directory: # cd /etc/yum.repos.d/ 2. Make copy of original file: # cp CentOS-Base.repo CentOS-Base.repo.old 3. Open and edit file with any text editor: # vi CentOS-Base.repo looks 4. After editing it should looks like: [base] name=CentOS-$releasever - Base # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os baseurl=http://vault.centos.org/6.9/os/$basearch gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 exclude=redhat-logos 5. Clean yum cache # yum clean all 6. Run again yum update command: # yum update That’s It An alternate Repo other than CentOS vault- [base] name=CentOS-$releasever - Base # mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os baseurl=http://ftp.uem.br/linux/CentOS/6.10/os/$basearch gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 exclude=redhat-logos Ref: https://arstech.net/yumrepo-error-all-mirror-urls-are-not-using-ftp-https-or-file/ Related Administrations Configurations (Linux) CentOSCentOS 5CentOS 6RepositoryYum
CentOS 7 XFS disk resizing June 4, 2021 Couldn’t find any article that explained step by step how to resize the main disks volume in a CentOS 7 vm. In my example I started witha single disk of 8GB and expanded to 20GB. I have two partitions on disk sda sda1 type Linux for boot sda2 type Linux… Read More
Understanding NAT, Direct Routing & Tunneling May 3, 2016 Virtual Server via NAT The advantage of the virtual server via NAT is that real servers can run any operating system that supports TCP/IP protocol, real servers can use private Internet addresses, and only an IP address is needed for the load balancer. The disadvantage is that the scalability of… Read More
Install Development Tool on CentOS and Debian June 17, 2022 Well, in my working domain I face these tools to be installed, so that most of the dependent tools or programs that need to be deployed later don’t face much of dependency issue. So here goes the installation process for both the OS. On CentOS/RHEL system use the follwoing command… Read More
Also for epel.repo use baseurl=http://archives.fedoraproject.org/pub/archive/epel/6/$basearch They have deprecated CentOS 6.x 🙁 More info: http://mirror.centos.org/centos/6/readme Reply
I just found this on stackoverflow that worked for me echo “https://vault.centos.org/6.10/os/x86_64/” > /var/cache/yum/x86_64/6/base/mirrorlist.txt echo “http://vault.centos.org/6.10/extras/x86_64/” > /var/cache/yum/x86_64/6/extras/mirrorlist.txt echo “http://vault.centos.org/6.10/updates/x86_64/” > /var/cache/yum/x86_64/6/updates/mirrorlist.txt echo “http://vault.centos.org/6.10/sclo/x86_64/rh” > /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt echo “http://vault.centos.org/6.10/sclo/x86_64/sclo” > /var/cache/yum/x86_64/6/centos-sclo-sclo/mirrorlist.txt Reply