Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install the latest version of Gitlab

This question is not about code, but the installation of Gitlab.

I am trying to install Gitlab for few days now without success.
Indeed, some times ago, they proposed the method with wget that worked very well, but since we must use the method with Curl, it is impossible to go further than the download.

On Ubuntu 14.04 machine, the following command works :

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

But with the next command, it appears [0% pending] and nothing happens again.

sudo apt-get install gitlab-ce

Have you ever faced this problem since the 7.10.4 version of Gitlab or do you know a way to solve this problem. Installation from the source is for me something very difficult to implement.

Here is the full error :

Err packages.gitlab.com/gitlab/gitlab-ce/ubuntu trusty/main gitlab-ce amd64 7.10.4~omnibus.1-1 Operation too slow.
Less than 10 bytes/sec transferred the last 120 seconds
E: Impossible de récupérer packages.gitlab.com/gitlab/gitlab-ce/ubuntu/pool/trusty/main/g/…
Operation too slow. Less than 10 bytes/sec transferred the last 120 seconds

When I do cat /etc/apt/sources.list.d/gitlab_gitlab-ce.list, I have this result :

deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty main

And this page doesn't exists. Is this the problem ?

like image 391
w3spi Avatar asked May 19 '15 08:05

w3spi


People also ask

What is the current version of GitLab?

GitLab Patch Release: 15.4. 2.

Should I install GitLab CE or EE?

GitLab comes in two distributions: the Enterprise Edition and the Community Edition. We recommend you download and install GitLab Enterprise Edition, so if you want to in the future you can upgrade to a paid tier or add a subscription for paid features without having to reinstall GitLab.


1 Answers

I can't believe it. Problem starts again today ...

I tried to update to the most recent version of Gitlab, and I was returned a fatal error.

Don't forget to make a backup of your configuration :

sudo gitlab-rake gitlab:backup:create

It is available at /var/opt/gitlab/backups/


I therefore had to uninstall Gitlab :

sudo gitlab-ctl uninstall

Then reinstall. Here is the methodology :

  1. If it is your first Gitlab installation else start at step 2:

    sudo apt-get install openssh-server ca-certificates postfix
    
  2. Then, (I'm working with Ubuntu 14.04), go here, and select the package you want, and do (I have chosen the following, because it is the most recent) :

    wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab-ce_8.3.2-ce.0_amd64.deb
    
  3. Then call dpkg :

    sudo dpkg -i gitlab-ce_8.3.2-ce.0_amd64.deb
    
  4. Then :

    sudo gitlab-ctl reconfigure
    
  5. After this, you have to restore your backup and reconfigure your environment

Reminders :

Username: root 
Password: 5iveL!fe
like image 155
w3spi Avatar answered Sep 21 '22 23:09

w3spi