安装gitlab时,使用rpm安装,提示错误:
[root@www.wulaoer.org ~]# rpm -ivh gitlab-ce-12.0.0-ce.0.el7.x86_64.rpm
警告:gitlab-ce-12.0.0-ce.0.el7.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID f27eab47: NOKEY
错误:依赖检测失败:
policycoreutils-python 被 gitlab-ce-12.0.0-ce.0.el7.x86_64 需要
这个错误提示,是因为gitlab安装时需要依赖policycoreutils-python。所以需要先安装policycoreutils-python,在安装gitlab-ce-12.0.0-ce.0.el7.x86_64
[root@www.wulaoer.org ~]# yum install policycoreutils-python -y
安装成功之后,在继续安装gitlab
[root@www.wulaoer.org ~]# rpm -ivh gitlab-ce-12.0.0-ce.0.el7.x86_64.rpm
警告:gitlab-ce-12.0.0-ce.0.el7.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID f27eab47: NOKEY
准备中... ################################# [100%]
正在升级/安装...
1:gitlab-ce-12.0.0-ce.0.el7 ################################# [100%]
It looks like GitLab has not been configured yet; skipping the upgrade script.
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
sudo gitlab-ctl reconfigure
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab才算安装成功,gitlab的问题先说到这了。如果以后有其他的问题在另外说明。

2022年5月28日 20:25 沙发
安装不上policycoreutils-python
2022年5月30日 13:49 1层
@凝望梦海 你可以尝试离线安装,或者换一下yum源