Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wangxianhe/f9949ded7508ff83b9d9d32921dc1230 to your computer and use it in GitHub Desktop.
Centos 7 system-config-kickstart由于下载软件包失败, 软件包选择被禁止

问题:

Centos 7 system-config-kickstart由于下载软件包失败, 软件包选择被禁止

解决办法:

[root@localhost ~]# vi /etc/yum.repos.d/CentOS-Base.repo

[base] 
name=CentOS-$releasever - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

[base]    此处base 改为 development

即:

[development]
name=CentOS-$releasever - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment