Fix HTTP Error 404 Not Found Trying Other Mirror CentOS 7

bonguides.com
2 min readJul 17, 2024

--

Not a reader? Watch this related video tutorial:

Table of Contents

HTTP Error 404 Not Found Trying Other Mirror CentOS 7

Sometimes, you get the following errors when trying to refresh the update repositories on CentOS 7.

Z43s2kr63PNrVDvT5B9kT4Wsbgch6WoVgtjHzFydmIkGLhlR9Dbrq7xspF8q

You got it because CentOS 7 is at the end of its support. To temporarily resolve this error for installation. You can change the mirrors as follows in the repo files for use.

1. SSH to your Linux server using an administrative account.

2. Run the following commands to search and replace the mirrors:

The commands explanation:

  • Command 1: This command finds and replaces all occurrences of mirror.centos.org with vault.centos.org in all .repo files in the /etc/yum.repos.d/ directory. This can help access old CentOS repositories when major mirrors are unavailable.
  • Command 2: This command finds and removes the # sign at the beginning of lines containing baseurl=http in all .repo files in the /etc/yum.repos.d/ directory. This enables baseurl usage instead of disabling it.
  • Command 3: This command adds a # sign to the beginning of lines containing mirrorlist=http in all .repo files in the /etc/yum.repos.d/ directory. This disables the use of mirrorlist.
  • Command 4: This command adds the line sslverify=false to the end of the /etc/yum.conf file. This turns off SSL checking when using yum, which can help overcome problems related to SSL certificates

3. Once done, please perform yum update or yum install to check the results.

6QWBptYaWzt7Ifq0Of0123pQ7hryIcdLePYfXM8xoETmCR0VZ1yrEqXexcnr

https://bonguides.com/fix-http-error-404-not-found-trying-other-mirror-centos-7/?feed_id=1094&_unique_id=6697806adee10

--

--

bonguides.com

Discover some of the best IT articles, tech guides, tech tutorials, tech tips, useful scripts, how-to’s and more.