使用 apache 安装 gitlab 时出现问题

使用 apache 安装 gitlab 时出现问题

我正在运行 Linux mint (18.2) 盒子。我已经安装了一个 LAMP 堆栈,用于一些本地开发。我想安装 GitLab 来帮助管理我的开发周期。

我试图按照以下说明安装 GitLab 的综合包官方网站并卡在了这一步:

sudo EXTERNAL_URL="http://gitlab.example.com" apt-get install gitlab-ee

这里我收到一条错误消息“找不到 gitlab-ee 包”。也是如此apt-cache search,并且只找到了一个gitlab如此安装的软件包。它给出了一个错误:

Setting up ruby-github-markup (1.3.3+dfsg-1build1) ...
Setting up ruby-gollum-lib (4.1.0-3) ...
Setting up gitlab (8.5.8+dfsg-5) ...
Creating/updating gitlab user account...
adduser: Warning: The home directory `/var/lib/gitlab' does not belong to the user you are currently creating.
Creating runtime directories for gitlab...
Updating file permissions...
Configuring hostname and email...
Registering /etc/gitlab/gitlab.yml via ucf

Creating config file /etc/gitlab/gitlab.yml with new version
Registering /etc/gitlab/gitlab-debian.conf via ucf

Creating config file /etc/gitlab/gitlab-debian.conf with new version

Creating config file /etc/nginx/sites-available/localhost with new version
cp: cannot create regular file '/etc/nginx/sites-available/localhost': No such file or directory
dpkg: error processing package gitlab (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 gitlab
E: Sub-process /usr/bin/dpkg returned an error code (1)

我没有安装 nginx,宁愿继续使用 apache 和我的其他站点而不是 nginx。我找到了这个网站在 GitLab CE 中使用 Apache 代替内置 Nginx但当我尝试时,gitlab-ctl stop我得到了gitlab-ctl: command not found回应。

尝试重新安装会出现以下情况:

sudo EXTERNAL_URL="http://gitlab.natral.net" apt-get install gitlab
[sudo] password for natral: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gitlab is already the newest version (8.5.8+dfsg-5).
0 upgraded, 0 newly installed, 0 to remove and 71 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up gitlab (8.5.8+dfsg-5) ...
Creating/updating gitlab user account...
adduser: The user `gitlab' already exists.
Proceeding with existing gitlab user...
Creating runtime directories for gitlab...
Updating file permissions...
GITLAB_HOST=localhost 
Registering /etc/gitlab/gitlab.yml via ucf
Registering /etc/gitlab/gitlab-debian.conf via ucf

Creating config file /etc/nginx/sites-available/localhost with new version
cp: cannot create regular file '/etc/nginx/sites-available/localhost': No such file or directory
dpkg: error processing package gitlab (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 gitlab
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容