无法安装gitlab(在centos 6中)

时间:2016-02-11 12:33:05

标签: centos gitlab yum

我尝试在CentOS 6.7(最终版)上安装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

当执行install命令时,发生错误

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

我该怎么办?请帮帮我。

1 个答案:

答案 0 :(得分:0)

首先检查系统的代理设置。 点击命令:

yum update 

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