【问题标题】:Can't install gitlab (in centos 6)无法安装 gitlab(在 centos 6 中)
【发布时间】:2016-05-22 05:40:13
【问题描述】:

我尝试在 CentOS 6.7(Final) 上安装 gitlab-ce。但是,失败了。

我的环境

使用代理(在 /etc/yum.conf 中设置代理)

我的 gitlab_gitlab-ce.repo 文件 (https://packages.gitlab.com/gitlab/gitlab-ce/install手动配置)

[gitlab_gitlab-ce]
name=gitlab_gitlab-ce
baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/el/6/$basearch
repo_gpgcheck=1
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt

[gitlab_gitlab-ce-source]
name=gitlab_gitlab-ce-source
baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/el/6/SRPMS
repo_gpgcheck=1
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt

执行安装命令时出现错误

yum -q makecache -y --disablerepo='*' --enablerepo='gitlab_gitlab-ce'

https://packages.gitlab.com/gitlab/gitlab-ce/el/6/x86_64/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: gitlab_gitlab-ce. Please verify its path and try again

我该怎么办?请帮帮我。

【问题讨论】:

  • 您手动设置是否有特定原因?安装脚本会为您执行此操作。

标签: centos gitlab yum


【解决方案1】:

您首先检查系统的代理设置。 触发以下命令:

yum update 

如果它不起作用,则在文件中设置代理:/etc/yum.conf 然后检查。

【讨论】:

    猜你喜欢
    • 2015-11-04
    • 2013-09-02
    • 2016-08-09
    • 2016-11-27
    • 2016-02-25
    • 2013-02-03
    • 2012-12-11
    • 1970-01-01
    • 2018-12-10
    相关资源
    最近更新 更多