Failed to install latest version of gitlab

This question is not about code, but about installing Gitlab.

I have been trying to install Gitlab for several days without success.
Indeed, several times ago they proposed a method with wget that worked very well, but since we must use the method with Curl , it is impossible to go further than downloading.

The following command works on a Ubuntu 14.04 machine:

 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 encountered this problem after version 7.10.4 of Gitlab or know how to solve this problem. Installation from the source is very difficult for me to implement.

Here is the complete 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 does not exist. This is problem?

+6
source share
2 answers

I can not believe this. Today the problem starts again ...

I tried upgrading to the latest version of Gitlab and a fatal error was returned to me.

Remember to backup your configuration:

 sudo gitlab-rake gitlab:backup:create 

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


So I had to remove Gitlab:

 sudo gitlab-ctl uninstall 

Then reinstall . Here is the methodology :

  • If this is your first Gitlab installation , start with step 2:

     sudo apt-get install openssh-server ca-certificates postfix 
  • Then (I work with Ubuntu 14.04), go here and select the package you need and do it (I chose 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 
  • Then call dpkg :

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

     sudo gitlab-ctl reconfigure 
  • After that, you need to restore the backup and reconfigure the environment.

Reminders:

 Username: root Password: 5iveL!fe 
+8
source

You are using apt-get, which is not looking for your downloaded curl package.
Find the correct location of the file, add it to the apt-get database, and then run:

 apt-get update apt-get upgrade apt-get install gitlab-ce 

More information and detailed steps can be found here.

0
source

Source: https://habr.com/ru/post/987485/


All Articles