Estou executando uma caixa do Linux mint (18.2). Eu instalei uma pilha LAMP que eu uso para algum desenvolvimento local. Eu queria instalar o GitLab para ajudar a gerenciar meu ciclo de desenvolvimento.
Eu estava tentando instalar o pacote omnibus do GitLab seguindo as instruções no site oficial e fiquei preso no passo:
sudo EXTERNAL_URL="http://gitlab.example.com" apt-get install gitlab-ee
Aqui recebi um erro dizendo "pacote do gitlab-ee não encontrado". Então, fiz um apt-cache search
e achei apenas um pacote gitlab
, então instalei isso. Deu um erro:
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)
Eu não tenho nginx instalado e prefiro continuar usando o apache junto com meus outros sites em vez de nginx. Eu encontrei este site Use o Apache em vez de embutido Nginx no GitLab CE mas quando tento gitlab-ctl stop
obtenho uma resposta gitlab-ctl: command not found
.
Tentar reinstalá-lo fornece o seguinte:
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)