You could try using --skip-broken to work around the problem
** Found 4 pre-existing rpmdb problem(s), 'yum check' output follows:
libsemanage-2.5-14.el7.x86_64 is a duplicate with libsemanage-2.5-8.el7.x86_64
libsemanage-python-2.5-14.el7.x86_64 is a duplicate with libsemanage-python-2.5-8.el7.x86_64
libsepol-2.5-10.el7.x86_64 is a duplicate with libsepol-2.5-6.el7.x86_64
setools-libs-3.3.8-4.el7.x86_64 is a duplicate with setools-libs-3.3.8-1.1.el7.x86_64
出现这种问题,是因为安装的有重复包,通过以下命令查找使用rpm -qa找到该软件2.使用yum remove卸载该依赖包3.重新安装
例如,rpm -qa libsemanage-2.5-8.el7.x86_64
yum remove libsemanage-2.5-8.el7.x86_64
注意,一定要重新安装后,再启动启动操作系统,如果误删一些基础包,会导致系统启动失败。
yum install kubernetes-cni-0.7.5-0.x86_64
yum install -y kubeadm-1.14.0-0 kubelet-1.14.0-0 kubectl-1.14.0-0 --disableexcludes=kubernetes