[TOC]
中标麒麟操作系统安装kubesphere问题处理记录
系统版本:
# 系统版本信息
NeoKylin Linux Advanced Server V7Update4 (Titanium)
# 查看linux版本
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)
[root@ks-allinone ~]# uname -a
Linux ks-allinone 3.10.0-693.el7.x86_64 #1 SMP Thu Sep 14 15:11:35 CST 2017 x86_64 x86_64 x86_64 GNU/Linux
由于中标麒麟操作系统缺少必要文件,导致安装kubesphere不成功
# 报错信息
http://mirror.centos.org/centos/7.4-1.el7.ns7.02.lic.adv/extras/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
To address this issue please refer to the below knowledge base article
http://www.cs2c.com.cn
If above article doesn't help to resolve this issue please contact with CS2C Support.
One of the configured repositories failed (CentOS-7 - Extras),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=extras ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable extras
or
subscription-manager repos --disable=extras
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=extras.skip_if_unavailable=true
failure: repodata/repomd.xml from extras: [Errno 256] No more mirrors to try.
http://mirror.centos.org/centos/7.4-1.el7.ns7.02.lic.adv/extras/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
解决办法
在/etc/yum.repos.d目录创文件名为CentOS7-Base-163.repo的文件,将如下信息粘贴进文件中
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-7 - Updates - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-7 - Extras - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/7/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-7 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/7/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7