Centos yum报错

Centos yum 安装包得时候包如下错误:

Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
No package xxx available.

解决方案

cd /etc/yum.repos.d

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

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

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

yum clean all

 

你可能感兴趣的:(Linux,Centos,yum,no,package)