How to Install Gitlab On Debian 9 Stretch Linux - LinuxConfig.org


#1
Gitlab is an awesome free software alternative to Github. It allows teams and individual developers to host and manage their own projects on servers that they control. Debian Stretch provides a stable foundation for Gitlab and can make for an excellent code repository server. Plus, Gitlab's Omnibus Package makes installation super simple.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-install-gitlab-on-debian-9-stretch-linux

#2

Hemanth

Worked For me. Thank you very much.


#3

Red Baron

The article assumes that the installation is a breeze for 64bit AND 32bit. With 32bit it’s a COMPLETELY different story and you will have to spend quite some time figuring things out.


#4

Gold

This doesn’t work for Stretch.

The gitlab-ce package does not yet exist.

There is an open issue: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2129

I can only assume that this content was harvested as it was definitely not tested before being posted.


#5

Kalth -> Gold

I have a fresh install of a debian 9 and I encounter same problem, I resolve it using “curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | os=debian dist=stretch bash”

The script doesn’t correctly detect the OS.


#6

Lubos Rendek -> Gold

Just tested. Works as expected:

root@527f962ec8bb:/# cat /etc/issue
Debian GNU/Linux 9 \n \l

# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | bash
Detected operating system as debian/9.
Checking for curl...
Detected curl...
Running apt-get update... done.
Installing debian-archive-keyring which is needed for installing 
apt-transport-https on many Debian systems.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/gitlab_gitlab-ce.list...done.
Importing packagecloud gpg key... done.
Running apt-get update... done.

The repository is setup! You can now install packages.
root@527f962ec8bb:/# apt install gitlab-ce
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following NEW packages will be installed:
gitlab-ce
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 402 MB of archives.
After this operation, 1222 MB of additional disk space will be used.
Get:1 https://packages.gitlab.com/gitlab/gitlab-ce/debian stretch/main amd64 gitlab-ce amd64 9.5.4-ce.0 [402 MB]
Fetched 402 MB in 1min 47s (3745 kB/s) 
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package gitlab-ce.
(Reading database ... 22643 files and directories currently installed.)
Preparing to unpack .../gitlab-ce_9.5.4-ce.0_amd64.deb ...
Unpacking gitlab-ce (9.5.4-ce.0) ...
Setting up gitlab-ce (9.5.4-ce.0) ...

*. *. 
*** *** 
***** ***** 
.****** ******* 
******** ******** 
,,,,,,,,,***********,,,,,,,,, 
,,,,,,,,,,,*********,,,,,,,,,,, 
.,,,,,,,,,,,*******,,,,,,,,,,,, 
,,,,,,,,,*****,,,,,,,,,. 
,,,,,,,****,,,,,, 
.,,,***,,,, 
,*,.

_______ __ __ __ 
/ ____(_) /_/ / ____ _/ /_ 
/ / __/ / __/ / / __ `/ __ \ 
/ /_/ / / /_/ /___/ /_/ / /_/ / 
\____/_/\__/_____/\__,_/_.___/

gitlab: Thank you for installing GitLab!
gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:

sudo gitlab-ctl reconfigure

#7

ruslanguns -> Lubos Rendek

worked for me