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):
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
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?