Search code examples
linuxubuntugitlabubuntu-serverubuntu-17.04

Install gitlab-ce on ubuntu server 17.04


I'm trying to install the gitlab-ce package on a system running Ubuntu server 17.04. I followed the official installation instructions here.

First I ran:

sudo apt-get install curl openssh-server ca-certificates postfix

I already had all of those installed. Then I ran:

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

Which also worked fine. But when I try to run

sudo apt-get install gitlab-ce

I get the following error message:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gitlab-ce

I know it's possible to install gitlab on Ubuntu server 17.04, since I had already done It on a previous installation. Unfortunately I installed the OS again from scratch and I can't remember how I had installed gitlab.

Thanks for any help in advance!


Solution

  • I gave up with the "full" automated script, as it doesn't appear to be working with 17.04... Anyway. I grabbed the latest package from https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce_9.3.0-ce.0_amd64.deb

    curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce_9.3.0-ce.0_amd64.deb/download
    

    Installed it with the package manager

    sudo dpkg -i gitlab-ce_9.3.0-ce.0_amd64.deb
    

    Then configured it with

    sudo gitlab-ctl reconfigure
    

    Then, point your web browser at your new gitlab install and you should be good to go...

    Ubuntu 20.04.1

    Incase anyone bumps back into this, while trying to gitlab on version 20.0.4 of ubuntu, life is much easier... and the instructions and automated script actually work. GitLab-CE installation instructions

    on a fresh install of ubuntu: -

    sudo apt install curl
    curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab- ce/script.deb.sh | sudo bash
    sudo apt install gitlab-ce
    

    done!