Is the Gitlab Runner Debian repository down?

When I go to https://packages.gitlab.com/runner/gitlab-ci-multi-runner/ubuntu/ I get a message that says “The page you were looking for doesn’t exist.”

I’m wondering if this could be causing trouble for my Gitlab installation. I’m trying to follow the instructions from Install GitLab Runner using the official GitLab repositories | GitLab on Ubuntu 20.04, but no matter what I do I get the gitlab-runner package from the main Ubuntu repository.

$ apt-cache madison gitlab-runner
gitlab-runner | 11.2.0+dfsg-2ubuntu1 | http://us-west1.gce.archive.ubuntu.com/ubuntu focal/universe amd64 Packages

Clearly shows the main Ubuntu package as the only available version.

But when I update, I don’t see any errors:

$ sudo apt-get update
Hit:1 http://us-west1.gce.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://us-west1.gce.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                    
Get:3 http://us-west1.gce.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]                  
Hit:4 https://download.docker.com/linux/ubuntu focal InRelease                                                                                             
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                                           
Hit:6 https://packages.gitlab.com/runner/gitlab-ci-multi-runner/ubuntu focal InRelease
Fetched 214 kB in 2s (100 kB/s)
Reading package lists... Done

My Apt sources seems to be set up as expected:

$ cat /etc/apt/sources.list.d/runner_gitlab-ci-multi-runner.list
# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/runner/gitlab-ci-multi-runner

deb https://packages.gitlab.com/runner/gitlab-ci-multi-runner/ubuntu/ focal main
deb-src https://packages.gitlab.com/runner/gitlab-ci-multi-runner/ubuntu/ focal main

And I even pinned the repository, though it doesn’t make any difference:

$ cat /etc/apt/preferences.d/pin-gitlab-runner.pref
Explanation: Prefer GitLab provided packages over the Debian native ones
Package: gitlab-runner
Pin: origin packages.gitlab.com
Pin-Priority: 1001

And yet, grepping the apt-cache dump shows no packages from this repository:

$ apt-cache dump | grep packages.gitlab

I also noticed that while I do have a /var/lib/apt/lists/packages.gitlab.com_runner_gitlab-ci-multi-runner_ubuntu_dists_focal_InRelease, I don’t see anything that matches the glob /var/lib/apt/lists/packages.gitlab*Packages.

I’m running into the issue with 11.2.0 reported at image gitlab-runner-helper:11.2.0 (#4773) · Issues · GitLab.org / gitlab-runner · GitLab, so this is preventing me from getting my runner up and going.

Thanks in advance for any help!

It has been a long time since they renamed the packages from gitlab-ci-multi-runner (or something like that) to just gitlab-runner. They also renamed the repos, but the old name still shows up in your error messages, and in your apt sources. Try removing ‘-ci-multi’ from those lines (and rename the file).

You could also try removing that file altogethe and run the script they provide to generate it.

In that case: Don’t follow the official guide that says to run something of the form curl | sh, that is always a bad idea. Instead download the script, read through it so you know what it does (that’s what you don’t know when piping from curl to sh) and execute the copy you downloaded (being lazy and just copying the command to re-download and execute brings the risk of the script having been changed server-side, so execute the copy you know what does.)

Gah, I didn’t realize the script itself had changed. I knew about the name change, but for a long time they hadn’t updated the debian repo, so you could still get the new name under the old repo location. Thanks!