gitlab-ee not found on Ubuntu 20.04 LTS (focal) [with "solution"]
Summary
gitlab-ee package not found in gitlab-ee
Steps to reproduce
Run an installation of any Ubuntu distribution, version 20.04 (focal) (eg. Ubuntu Server 20.04) and follow the installation steps for self-hosting Gitlab. After adding the repository, package gitlab-ee is not found
What is the current bug behavior?
Package gitlab-ee is not found when attempting to install it through apt or apt-get
What is the expected correct behavior?
Package gitlab-ee is found and installed when attempting to install it through apt or apt-get
Relevant logs and/or screenshots
[2020-07-15 19:54:02] % Total % Received % Xferd Average Speed Time Time Time Current
[2020-07-15 19:54:02] Dload Upload Total Spent Left Speed
[2020-07-15 19:54:02]
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 5933 100 5933 0 0 8403 0 --:--:-- --:--:-- --:--:-- 8403
[2020-07-15 19:54:03] Detected operating system as Ubuntu/focal.
[2020-07-15 19:54:03] Checking for curl...
[2020-07-15 19:54:03] Detected curl...
[2020-07-15 19:54:03] Checking for gpg...
[2020-07-15 19:54:03] Detected gpg...
[2020-07-15 19:54:03] Running apt-get update... done.
[2020-07-15 19:54:06] Installing apt-transport-https... done.
[2020-07-15 19:54:08] Installing /etc/apt/sources.list.d/gitlab_gitlab-ee.list...done.
[2020-07-15 19:54:09] Importing packagecloud gpg key... done.
[2020-07-15 19:54:10] Running apt-get update... done.
[2020-07-15 19:54:13]
[2020-07-15 19:54:13] The repository is setup! You can now install packages.
[2020-07-15 19:54:13] root@kevinw-lsvr:~# EXTERNAL_URL="http://{hidden}" apt -y install gitlab-ee
[2020-07-15 19:54:36]
Reading package lists... 0%
(...)
[2020-07-15 19:54:37] E: Unable to locate package gitlab-ee
Possible fixes
There is no package available at https://packages.gitlab.com/gitlab/gitlab-ee for focal.
The setup script (script.deb.sh) simply adds a repository according to the system version you're using. It doesn't check if the repository exists. I could not find a match for "focal" on the repository (see URL above).
To override this, you can alter /etc/apt/sources.ist.d/gitlab_gitlab-ee.list
and change 'focal' (=20.04) to 'bionic' (=18.04).