There are a few reasons why you might see the error message "Error setting up base repository," when trying to install CentOS. The most common reason is that your CentOS installation CD or DVD is corrupt. This can happen if the CD/DVD was not properly burned, or if it was damaged in transit. Other possible causes include a bad memory stick or hard drive.
If you see this error message, the first thing you should do is check the integrity of your CentOS installation media. To do this, you can use the MD5sum tool. First, open a terminal window and change to the directory where your CentOS installation files are located. Then, use the MD5sum tool to generate a checksum for each of the files. Compare the checksums to the ones listed on the CentOS website. If they don't match, your installation media is probably corrupt.
Another thing you can try is to use a different CD/DVD or USB drive. If you're installing from a DVD, try burning the image to a new disc. If you're using a USB drive, try copying the image to a different drive. You can also try using a different USB port on your computer.
What is 'Centos error setting up base repository'?
Centos error setting up base repository is an error that may occur during installation of CentOS. If this error has occurred, your installation of CentOS has been unsuccessful.
How can you fix 'Centos error setting up base repository'?
Please see our in-depth walk-through solutions below.
1. Recreate a new bootable device
"CentOS error setting up base repository" may indicate that your bootable device has a problem. The problem could be your CentOS ISO image is corrupt or your bootable device is faulty. If the problem is your CentOS ISO image, redownload it here. However, if the problem is your bootable device, replace it or recreate it while making sure the guides below are followed.
DVD
- Make sure you are using DVD-R
- Make sure the DVD is in good condition.
- Make sure your Optical disk drive (DVD drive) is in good condition.
- Make sure the operating system has no malicious software that could interrupt the creation process.
- When creating a CentOS bootable DVD, burn the CentOS image at a slow speed.
USB
- Make sure the USB is in good condition and has enough space.
- Make sure the USB port is in good condition.
- Make sure the operating system has no malicious software that could interrupt the creation process.
- Make sure to format the USB device before extracting the image into the USB.
- You may want to use a software that created USB bootable device such as Rufus, see link here for Rufus.
2. Clean and update packages
To try and fix CentOS error setting up base repository, run the following command:
yum clean all
After running the command, check to see if your command still fails. If it does not, then you may need to fix your Centos base repository configuration.
If that doesn't work, try running yum update
to update all your repositories, and then try your command again in order to fix Centos error setting up base repository.
If you're still having trouble, try adding the --nogpgcheck
flag to your command in order to fix Centos error setting up the base repository.