How to fix the “no urls in mirrorlist” issue on CentOS?
When CentOS reports the “No URLs in mirrorlist” error, it may be due to one of the following reasons:
- Network connection issue: First, make sure your network connection is working properly. Try accessing the official CentOS mirror site (http://mirrorlist.centos.org) with your browser to confirm if you can access it successfully.
- DNS resolution issue: CentOS uses DNS resolution to retrieve the list of mirrors. If your DNS settings are incorrect or the DNS server is unreachable, it will result in a “No URLs in mirrorlist” error. You can try updating your DNS settings and then re-running the CentOS installation.
- Mirror site issue: Sometimes, there may be problems with the official CentOS mirror site, causing difficulty in accessing the mirror list. You can try switching to another mirror site to solve this issue. You can find other available mirror site lists on the CentOS official website and add them to your CentOS installation configuration.
- Firewall issue: If your firewall settings are too strict, you may not be able to access the CentOS mirror site. You can try disabling the firewall or adjusting its settings to resolve the issue.
- Other issues: If the above steps do not resolve the problem, it may be due to other unknown reasons. You can try using a different version of CentOS or contact CentOS official technical support for assistance.
Summary: When CentOS reports the “No URLs in mirrorlist” error, you can troubleshoot the issue by checking network connectivity, DNS settings, mirror sites, firewall settings, etc.