http://mirror.centos.org/centos-6/ は削除され、第三者のミラーサイトからもCentOS 6のソースが削除されています。http://mirrors.tencent.com/とhttp://mirrors.tencentyun.com/のソースをCentOS 6のソースに同期することができず、Tencent Cloudでデフォルト構成のCentOS 6のソースを使い続けるとエラーが発生します。cat /etc/centos-release

CentOS-Base.repoファイルを編集します。vim /etc/yum.repos.d/CentOS-Base.repo
http://mirrors.tencentyun.com/centos-vault/6.x/リポジトリに切り替える必要があります。http://mirrors.tencent.com/centos-vault/6.x/リポジトリに切り替える必要があります。CentOS-Base.repoファイルは下図のとおりです。

[extras]gpgcheck=1gpgkey=http://mirrors.tencentyun.com/centos/RPM-GPG-KEY-CentOS-6enabled=1baseurl=http://mirrors.tencentyun.com/centos-vault/6.9/extras/$basearch/name=Qcloud centos extras - $basearch[os]gpgcheck=1gpgkey=http://mirrors.tencentyun.com/centos/RPM-GPG-KEY-CentOS-6enabled=1baseurl=http://mirrors.tencentyun.com/centos-vault/6.9/os/$basearch/name=Qcloud centos os - $basearch[updates]gpgcheck=1gpgkey=http://mirrors.tencentyun.com/centos/RPM-GPG-KEY-CentOS-6enabled=1baseurl=http://mirrors.tencentyun.com/centos-vault/6.9/updates/$basearch/name=Qcloud centos updates - $basearch
CentOS-Epel.repo ファイルを修正します。vim /etc/yum.repos.d/CentOS-Epel.repo
baseurl=http://mirrors.tencentyun.com/epel/$releasever/$basearch/を baseurl=http://mirrors.tencentyun.com/epel-archive/6/$basearch/に修正します。修正が完了すると以下のようになります。

[epel]name=epel for redhat/centos $releasever - $basearchfailovermethod=prioritygpgcheck=1gpgkey=http://mirrors.tencentyun.com/epel/RPM-GPG-KEY-EPEL-6enabled=1baseurl=http://mirrors.tencentyun.com/epel-archive/6/$basearch/
yum installコマンドを使用して必要なソフトウェアをインストールできます。フィードバック