最近在centos上通过yum来安装程序,出下了以下问题:

Loaded plugins: fastestmirror Setting up Install Process

Loading mirror speeds from cached hostfile

No package tigervnc-server available.

Error: Nothing to do

出现这种情况,一般有以下2中排除方式:

1、可能机器没有联网,ping baidu.com

2、ping通了,但是yum命令还是使用不了,有可能说明yum镜像没有了,那就的下载一个下来更新:

#cd /etc/yum.repos.d

#mv CentOS-Base.repo CentOS-Base.repo.backup

#wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

#mv CentOS6-Base-163.repo CentOS-Base.repo

#yum clean all

 3、(可选)可以更新下yum仓库

      #yum -y update

 

posted on 2017-10-01 10:06  猥琐丶欲为  阅读(580)  评论(0编辑  收藏  举报