CentOS 6 reached end-of-life (EOL) on November 30, 2020, and is no longer maintained by the Linux community. Therefore, the CentOS 6 source is unavailable in
http://mirror.centos.org/centos-6/ and third-party image sites. Tencent Cloud sites,
http://mirrors.tencentyun.com/, cannot obtain CentOS 6 source. If you continue to use the default CentOS 6 source configured in Tencent Cloud, an error may occur.
Upgrading your operating system to CentOS 7 or a later version is recommended. If you still need to use the CentOS 6 dependencies, switch the CentOS 6 source as instructed below.
As shown in the following figure, the operating system version is CentOS 6.9.
3. Run the following command to edit the
baseurlaccording to the CentOS version and network environment.
- Source for private network access:
- Source for public network access:
This document uses a CentOS 6.9-based instance that requires private network access as an example. The modified
CentOS-Base.repo file is as follows:
5. Press ESC, enter :wq, and press Enter to save the modification.
6. Run the following command to modify the
baseurlbased on the network environment.
baseurl=http://mirrors.tencentyun.com/epel-archive/6/$basearch/. The result should be as follows:
yum installcommand to install the required software.