解决policycoreutils-python is needed by问题

policycoreutils-python is needed by

出现这个问题,应该是在安装gitlab时,gitlab的版本是centos7的,如果你确定你的centos版本是centos7

解决方法:yum install policycoreutils-python

如果这个方法无效,你的centos版本一定不是centos7

如果你的centos版本是centos8.那么换一个gitlab版本,也就是重新下载一个,这里是最新地址

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el8/

下载命令:

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el8/gitlab-ce-12.10.1-ce.0.el8.x86_64.rpm

安装gitlab:

rpm -i gitlab-ce-12.10.1-ce.0.el8.x86_64.rpm

会出现这个错误:

policycoreutils-python-utils is needed by gitlab-ce-12.10.1-ce.0.el8.x86_64

解决办法:yum install policycoreutils-python-utils 

然后重新安装gitlab:

rpm -i gitlab-ce-12.10.1-ce.0.el8.x86_64.rpm
成功效果如图:

解决policycoreutils-python is needed by问题_第1张图片

你可能感兴趣的:(java编程的Bug解决,policycoreutils,gitlab安装,centos7,centos8)