下载软件包时报错:
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
You need to be root to perform this command.
处理方法:
1、理解报错信息
最后一行提示需要root权限来执行该命令,所以在下载命令前加sudo。
好像是没有网哈,咱先连接网络。
然后现在解决这个
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
的问题
我们现在就去配置文件找base、updates等这几个关键字
这个是yum源配置文件,cat查看CentOS7-Base-163.repo,为什么查看这个文件的原因就是因为yum源配置的时候我改动的文件就是这个,可以看到这几个关键字都出现了哈
猜测是中括号里面的内容重复,现在看看CentOS-Base.repo,也出现了这几个关键字
再看看这个文件
应该就是中括号撞名字了,我们这样子修改一下,因为我这个是网易的源,就添加一个wy的尾缀
这样就下载成功了!