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 search1つだけ見つかりました。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はインストールされておらず、nginxの代わりにApacheと他のサイトを引き続き使用することを好みます。このウェブサイトを見つけました。組み込みのNginxの代わりにGitLab CEでApacheを使用するところで試してみると答えが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)

ベストアンサー1

おすすめ記事