Problem installing Gitlab on Debian 11

Hey Folks,
I got an error when I install Gitlab on my Debian 11 Bullseye System, I follow the steps from the Official Doku (Download and install GitLab | GitLab). When I enter the command to fetch the Install Script (curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash) I get the following error `Installing /etc/apt/sources.list.d/gitlab_gitlab-ee.list…curl: (22) The requested URL returned error: 404

Unable to download repo config from: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/config_file.list?os=debian&dist=11&source=script

This usually happens if your operating system is not supported by
packagecloud.io, or this script’s OS detection failed.

You can override the OS detection by setting os= and dist= prior to running this script.
You can find a list of supported OSes and distributions on our website: packagecloud Documentation - Documentation for the Command-Line Interface (CLI) and automation tools

For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh

If you are running a supported OS, please email support@packagecloud.io and report this.`

I have tried the steps shown in the error, but I have no success. What can I do now, I don’t wan’t to install manually from source. Thanks guys :slight_smile:

I have the same error trying to install for Ubuntu. The script runs fine until it gets to this part…

Installing /etc/apt/sources.list.d/gitlab_gitlab-ee.list…curl: (22) The requested URL returned error: 404
Unable to download repo config from: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/config_file.list?os=Ubuntu&dist=impish&source=script

I tried the url to config_file.list and that’s where the 404 is coming from. Can you please let us know how to fix the script, or fix it yourself and update the page here (Download and install GitLab | GitLab)??

My full error is below…

pblanton@Newton:~$ sudo curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash

  • % Total % Received % Xferd Average Speed Time Time Time Current*
    Dload Upload Total Spent Left Speed
    100 5933 100 5933 0 0 20388 0 --:–:-- --:–:-- --:–:-- 20388
    Detected operating system as Ubuntu/impish.
    Checking for curl…
    Detected curl…
    Checking for gpg…
    Detected gpg…
    Running apt-get update… done.
    Installing apt-transport-https… done.
    Installing /etc/apt/sources.list.d/gitlab_gitlab-ee.list…curl: (22) The requested URL returned error: 404

Unable to download repo config from: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/config_file.list?os=Ubuntu&dist=impish&source=script

This usually happens if your operating system is not supported by
packagecloud.io, or this script’s OS detection failed.

You can override the OS detection by setting os= and dist= prior to running this script.
You can find a list of supported OSes and distributions on our website: packagecloud Documentation - Documentation for the Command-Line Interface (CLI) and automation tools

For example, to force Ubuntu Trusty: os=ubuntu dist=trusty ./script.sh

If you are running a supported OS, please email support@packagecloud.io and report this.

Update: I have figured out that only the LTS versions are supported.

I figured out a hack to get mine to work. I downloaded script_deb.sh, made it executable, then edited line 130 as follows…

apt_config_url=“https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/config_file.list?os=${os}&dist=focal&source=script

as apparently only the LTS distributions are supported. I simply hard-coded “focal” as my distribution, then ran the script locally to set up the dependencies.

Update: gitlab_greg’s solution is better.

For Debian 11, try:

sudo curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo os=debian dist=bullseye bash

Or if you’re using Ubuntu 21.10 (impish), try:

sudo curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo os=ubuntu dist=focal bash
2 Likes

Why was my original reply to this thread “flagged by the community”??

I am new to this forum, and I don’t understand why it’s so hard to participate here. It’s not like I came in and started throwing fireballs.

To add insult to injury, my first post to this forum was flagged as “Spam”. Seriously!?!? It’s a reply to Aeon’s post as I was having the exact same issue except on Ubuntu. There was nothing at all spammy about it.

That’s a sucky way to welcome a new member to your forums. If I am not welcome here then maybe I won’t participate.

I’ve just approved it, sorry about the hold-up. The spam detection system from the Discourse platform thought this could be spam. Maybe your email address landed on a ban list, or your IP address origin is shared with malicious actors.

2 Likes

Thanks!
I thought it was actually flagged by community members as spam. I’m glad it was only an automated thing.

When I first made the post, I kept learning more about the issue and kept editing my post. That may have triggered a spam flag somewhere.

I think “by community” is a generic term, you’ll never see the real reasons unless being a moderator/admin. In this case here, I can confirm that it was the system itself. If you encounter the problem again, please send me or our team a DM to investigate.

Thank’s this works for me.

1 Like