I can't get gitlab-ce to install via apt on Ubuntu 14.04

I followed the instructions on https://about.gitlab.com/downloads/ But, after running apt-get update and apt-get upgrade, all I get is this:

root:~# apt-get 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 313 MB of archives.
After this operation, 870 MB of additional disk space will be used.
Err https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main gitlab-ce amd64 7.11.4~omnibus-1
  Operation too slow. Less than 10 bytes/sec transferred the last 120 seconds
E: Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/pool/trusty/main/g/gitlab-ce/gitlab-ce_7.11.4~omnibus-1_amd64.deb  Operation too slow. Less than 10 bytes/sec transferred the last 120 seconds

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Any suggestions? Google has remarkably few search results on the subject…

2 Likes

Apparently I just had to keep trying to run “apt-get install gitlab-ce” until it took. Fun.

1 Like

Connectivity issues?

2 Likes

I’m having this problem too… But I also fixed it by just relentlessly running the apt-get install until it eventually installed…

1 Like

Same issue here, I had to wait a day before trying again

1 Like

Is anyone else behind a firewall? Could something about packages.gitlab.com cause a firewall to slow the traffic down?

I find it unlikely, since normal Ubuntu repos are just fine. But there was at least one search result that had similar problems caused by a firewall.

Just mentioning it in case it’s something we should actually look into.

1 Like

Hey!

I’m having the same issue :frowning:

0% [Working]^Cubuntu@gitlab:~$ sudo apt-get 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 4 not upgraded.
Need to get 313 MB of archives.
After this operation, 870 MB of additional disk space will be used.
Fetched 313 MB in 6min 3s (863 kB/s)
E: Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/pool/trusty/main/g/gitlab-ce/gitlab-ce_7.11.4~omnibus-1_amd64.deb  Hash Sum mismatch

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ubuntu@gitlab:~$ sudo apt-get 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 4 not upgraded.
Need to get 313 MB of archives.

Do you have any option to install Gitlab ? :frowning:

Did you actually try to run apt-get update?

From this I can say that the download was corrupt perhaps due to connectivity issues. Try to clear apt cache and install gitlab-ce again.

I’m having the same issue

maybe is the network problem,I like download file to install instead of that …

 [ worker@b9a4342b0035:~/ $ sudo apt-get 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 4 not upgraded.
    Need to get 313 MB of archives.
    After this operation, 870 MB of additional disk space will be used.
    Err https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main gitlab-ce amd64 7.11.4~omnibus-1
      GnuTLS recv error (-9): A TLS packet with unexpected length was received.
    E: Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/pool/trusty/main/g/gitlab-ce/gitlab-ce_7.11.4~omnibus-1_amd64.deb  GnuTLS recv error (-9): A TLS packet with unexpected length was received.
    
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

This seems to be server related, since so many people are facing the same problem. Maybe an instance of the download server is down and only the loadbalancer will make it eventually work?

On the download page (e.g. https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/trusty/gitlab-ce_7.11.4~omnibus-1_amd64.deb), you can find the instructions but also a download button (look upper right), which you can wget:

wget -c https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/trusty/gitlab-ce_7.11.4~omnibus-1_amd64.deb/download -O gitlab-ce_7.11.4.deb
sudo dpkg -i gitlab-ce_7.11.4.deb

An alternative approach if you really want to use apt-get would be, to automatically try again (e.g. in a screen)

while true; do apt-get install gitlab-ce -y; sleep 303; done

and check if it eventually worked

I just ran into this issue again when trying to upgrade. apt-get install gitlab-c just won’t work.

Fetched 350 MB in 27s (12.6 MB/s)
E: Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/pool/trusty/main/g/gitlab-ce/gitlab-ce_7.14.0-ce.0_amd64.deb  Hash Sum mismatch

E: Some files failed to download

Even after clearing the cache.

wgetting the file worked.

Faced the same issue.

This worked for me!

sudo rm -rf /var/lib/apt/lists/partial/*
sudo apt-get update
sudo apt-get clean

Source

http://forum.gitlab.com/t/gitlab-apt-repository-unavailable-ubuntu-14-04-lts/2003/6?u=dinesh

I need add amd64 architecture
sudo dpkg --add-architecture amd64
sudo apt-get update

This is still occurring, I have confirmed there is no proxy or gateway issue, a repeated manual wget of the file shows a different md5sum about 30% of the time, clearly a server issue @ gitlab.

Dumb luck that this fixed it mate, either it was a different problem to begin with, or you just the repeated attempt to download worked, there is an intermittent issue with the source (the gitlab server).