How to Install Gitlab On Debian 9 Stretch Linux -

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


Worked For me. Thank you very much.

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.


This doesn’t work for Stretch.

The gitlab-ce package does not yet exist.

There is an open issue: Provide package for Debian 9 (stretch) (#2129) · Issues · / omnibus-gitlab · GitLab

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

Kalth → Gold

I have a fresh install of a debian 9 and I encounter same problem, I resolve it using “curl -sS | os=debian dist=stretch bash”

The script doesn’t correctly detect the OS.

Lubos Rendek -> Gold

Just tested. Works as expected:

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

# curl -sS | 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:
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 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

ruslanguns -> Lubos Rendek

worked for me

Works well, but it should be mentioned, that you have to alter the script behind a proxy. For every curl call (there are 2 of them), you have to add the proxy as

-x <proxy_url> --proxy-user <proxyuser:proxypass>

to the command.