最近CentOS 6已經停止更新支持,同時官方也把yum源刪除了,目前CentOS 6系統使用yum命令安裝軟件包基本都是失敗,因此需要更換yum源。
操作方法:
在ssh界面執行以下命令即可一鍵更換yum源為CentOS的Vault源(包括CentOS官方和阿里云的源):
wget -O /etc/yum.repos.d/CentOS-Base.repo http://files.tttidc.com/centos6/Centos-6.repo wget -O /etc/yum.repos.d/epel.repo http://files.tttidc.com/centos6/epel-6.repo yum makecache
同時,T網云建議您盡量避免使用CentOS 6版本系統,升級使用CentOS 7。
T網云運營團隊
2020年12月17日