+
80
-

linux安装出现Repository base is listed more than once in the configuration

linux安装出现Repository base is listed more than once in the configuration,请高手解答

网友回复

+
0
-

考虑系统中是否存在重复的软件源, 遇到"没有可用软件包 XXX"的问题首先要确认要安装的软件包名称是否写对了, 例如安装 pip 的命令不是 yum install pip, 而是 yum install python-pip, 在此之后如果问题仍然存在就需要考虑当前系统中是否正确配置了 YUM 和 EPEL 两个软件源.

1、查看所有源

cd /etc/yum.repos.d/
ls

我们看到好多repo,只要保留centos-base

2、备份一下

zip centos6-repo.zip /etc/yum.repos.d/*

3、删除除centos-base外的包

rm -rf xxx

4、清除缓存

yum clean all
yum makecache

我知道答案,我要回答