Gitlab apt-repository unavailable (Ubuntu 14.04 LTS)

Hi,

I’m updating my Gitlab CE installation on Ubuntu using apt-get upgrade, but I’m receiving an error about the repository not being available and thus gitlab-ce candidate being unavailable (error 500):

gitlab-ce:
  Installed: 8.2.0-ce.0
  Candidate: 8.2.1-ce.0
  Version table:
     8.2.1-ce.0 0
        500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
 *** 8.2.0-ce.0 0
        500 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

Manually visiting the repository URL results in an ‘unavailable’ page:

Can anyone help resolving this issue?

Thanks!

Try this:

wget https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/trusty/main/binary-amd64/Packages.gz

If that fails somehow, the printout may help you figure out what’s going wrong for you.

Unfortunately it does not help, the Packages.gz file downloads just fine.

sietse@development:/tmp$ wget https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/trusty/main/binary-amd64/Packages.gz
--2015-11-30 20:00:35--  https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/trusty/main/binary-amd64/Packages.gz
Resolving packages.gitlab.com (packages.gitlab.com)... 54.153.54.194
Connecting to packages.gitlab.com (packages.gitlab.com)|54.153.54.194|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://packages-gitlab-com.s3.amazonaws.com/7/8/ubuntu/dists/trusty/main/binary-amd64/Packages.gz?AWSAccessKeyId=AKIAJ74R7IHMTQVGFCEA&Signature=heMu4nZOcaKBFmAh0bXIY5O7dXo%3D&Expires=1448910340 [following]
--2015-11-30 20:00:40--  https://packages-gitlab-com.s3.amazonaws.com/7/8/ubuntu/dists/trusty/main/binary-amd64/Packages.gz?AWSAccessKeyId=AKIAJ74R7IHMTQVGFCEA&Signature=heMu4nZOcaKBFmAh0bXIY5O7dXo%3D&Expires=1448910340
Resolving packages-gitlab-com.s3.amazonaws.com (packages-gitlab-com.s3.amazonaws.com)... 54.231.18.65
Connecting to packages-gitlab-com.s3.amazonaws.com (packages-gitlab-com.s3.amazonaws.com)|54.231.18.65|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9934 (9.7K) [text/plain]
Saving to: 'Packages.gz'

100%[===================================================================================>] 9,934       4.82KB/s   in 2.0s   

2015-11-30 20:00:43 (4.82 KB/s) - 'Packages.gz' saved [9934/9934]

Yet when executing apt-get upgrade gitlab-ce it stalls at the connection phase:

sietse@development:/tmp$ sudo apt-get upgrade gitlab-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  gitlab-ce
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 373 MB of archives.
After this operation, 15.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
0% [Working]

Any more clues on how to debug this? It’s pretty frustrating that I’m not able to update to the latest Gitlab version.

By the way my gitlab_gitlab-ce.list file for apt:

sietse@development:/tmp$ cat /etc/apt/sources.list.d/gitlab_gitlab-ce.list 
# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/gitlab/gitlab-ce

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

I have the exact same gitlab_gitlab-ce.list, and I just tried a download:

# apt-get download gitlab-ce
Fetched 373 MB in 36s (10.3 MB/s) 

It was standing still at 0% for quite a chunk of those 36 seconds, so I thought I was hitting the same thing as you, but alas… not sure what I can do for you now.

After running the upgrade command again, I’m getting a response from the server:

sietse@development:~$ sudo apt-get upgrade gitlab-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following held packages will be changed:
  gitlab-ce
The following packages will be upgraded:
  gitlab-ce
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 373 MB of archives.
After this operation, 14.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Fetched 373 MB in 24min 47s (251 kB/s)
E: Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/pool/trusty/main/g/gitlab-ce/gitlab-ce_8.2.2-ce.0_amd64.deb  Hash Sum mismatch

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

Does this latest error provide any more insight maybe?

@Sietse Check out http://doc.gitlab.com/omnibus/common_installation_problems/README.html#hash-sum-mismatch-when-installing-packages

1 Like

Alright, that worked! Thanks @muthuri.kelmut!

Though, it’s still very slow. I’m on 100 mbit uplink and I get this result:
Fetched 373 MB in 1h 8min 57s (90.1 kB/s)

@Sietse It’s great to hear that you were able to solve the issue. I hope you have been able to install and use GitLab since :slightly_smiling: