問題初步分析,可能是yum 安裝源查找的是已經過時的軟件源,可以考慮清楚緩存,然后再執行命令進行安裝:
yum clean all yum update
yum update 的時候,運行的時間比較久,根據網絡環境不一樣,執行的時長也不一樣。
.......
正在升級 : libcurl-7.19.7-53.el6_9.x86_64 91/336 正在升級 : rpm-libs-4.8.0-55.el6.x86_64 92/336 正在升級 : curl-7.19.7-53.el6_9.x86_64 93/336 正在升級 : rpm-4.8.0-55.el6.x86_64 94/336 正在升級 : openldap-2.4.40-16.el6.x86_64 95/336 正在升級 : GConf2-2.28.0-7.el6.x86_64 96/336 正在升級 : libuser-0.56.13-8.el6_7.x86_64 97/336 正在升級 : rpm-python-4.8.0-55.el6.x86_64 98/336 正在升級 : python-pycurl-7.19.0-9.el6.x86_64 99/336 正在升級 : python-urlgrabber-3.9.1-11.el6.noarch 100/336 正在升級 : yum-plugin-fastestmirror-1.1.30-40.el6.noarch 101/336 正在升級 : yum-3.2.29-81.el6.centos.noarch 102/336 正在升級 : centos-release-6-9.el6.12.3.x86_64 103/336 正在升級 : libdrm-2.4.65-2.el6.x86_64 104/336 正在升級 : iputils-20071127-24.el6.x86_64 105/336 正在升級 : plymouth-0.8.3-29.el6.centos.x86_64 106/336 正在升級 : util-linux-ng-2.17.2-12.28.el6.x86_64 107/336 正在升級 : initscripts-9.03.58-1.el6. [# ] 108/336^
正在升級 : initscripts-9.03.58-1.el6.cen.....
結果:問題解決了。