gitlab安装报错

avatar 2020年4月3日18:03:40 2 4,858 次浏览

安装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的问题先说到这了。如果以后有其他的问题在另外说明。

avatar
  • 未经博主允许,禁止转载本博客任何内容,如需转载请留言,谢谢合作!!!
  • 转载注明:gitlab安装报错 | 吴老二

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:2   其中:访客  1   博主  1

    • avatar 凝望梦海 4

      安装不上policycoreutils-python

        • avatar 吴老二 Admin

          @凝望梦海 你可以尝试离线安装,或者换一下yum源