解决办法:
cd /etc/yum.repos.d/
vim CentOS-Base-sohu.repo
找到addons修改为os即可
然后执行
yum makecache
问题解决。
二,进程占用
[iyunv@localhost yum.repos.d]# yum clean all
Loaded plugins: fastestmirror
Existing lock /var/run/yum.pid: another copy is running as pid 1224.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 14 M RSS (142 MB VSZ)
Started: Tue Jul 19 19:41:24 2016 - 00:12 ago
State : Traced/Stopped, pid: 1224
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 14 M RSS (142 MB VSZ)
Started: Tue Jul 19 19:41:24 2016 - 00:14 ago
State : Traced/Stopped, pid: 1224
^Z