Question:
In CentOS 8, there is an error using yum. There is no URL in the image list, similar to the following:
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
reason:
On January 31, 2022, the CentOS team finally removed all packages of CentOS 8 from the official image.
CentOS 8 has expired on December 31, 2021, but the software package has been retained on the official image for some time. Now they are transferred to https://vault.centos.org
Solution:
If you still need to run CentOS 8, you can run it in/etc/yum repos. Update the source in D. Use vault.centos.Org instead of mirror.centos.org.
sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
sudo sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
Essentially, it replaces the previous URL with the URL that is still running. This problem should be solved within this period of time.
Read More:
- linux yum Error: PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’”
- Linux yum Error: All mirror URLs are not using ftp
- [Solved] Centos7 Error: gcc: configure: error: in build‘: configure: error: no acceptable C compiler found in $PATH
- Solutions to errors in installing xunsearch engine in centos8.0
- [Solved] CentOS7 python import docker Error: No module named selectors
- [Solved] Docker failed to delete image error: no such image: CentOS
- [Solved] Exception in replication between CentOS virtual machine and host
- summary of configuration and deployment of uwsgi+nginx+flag in centos7 and why internal server error is prompted [official instructions]
- How to fix the ERROR: Failed to build gem native extension in Centos 8
- Centos7 Error: initramfs not found
- [Solved] Error reported using telnet command in Centos7: telnet: error while loading shared libraries: libtinfo.so.6
- [Solved] Virtual Machine Centos7 Startup Error: Entering emergency mode
- CentOS/RHEL 7: How to Reinstall GRUB2 from Rescue Mode (EFI)
- After Centos installation is complete, ifconfig: command not found
- How to Fix No default.conf file in conf.d after Installing Nginx
- ./configure Command Execute error (Centos7 Install erlang)
- [Solved] CentOS Use Yum to install dependency: error: rpmdb open failed
- [Solved] Centos8 openssh Compile Error: error while loading shared libraries
- Centos7 Start Error: Entering emergency mode.Exit the shell to continue
- Centos6.8vnc error: connect: Connection refused 10061