Installing gitlab on Oracle Linux 9 fails

I followed this doc for installation. On the step 2 the setup failed with this stack:

$ curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6968 100 6968 0 0 1275 0 0:00:05 0:00:05 --:–:-- 1717[sudo] password for mg:

Detected operating system as ol/9.
Checking for curl…
Detected curl…
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/config_file.repo?os=ol&dist=9&source=script
done.
Installing yum-utils…
gitlab_gitlab-ee-source 0.0 B/s | 0 B 00:11
Errors during downloading metadata for repository ‘gitlab_gitlab-ee-source’:

WARNING:
The yum-utils package could not be installed. This means you may not be able to install source RPMs or use other yum features.

Generating yum cache for gitlab_gitlab-ee…
Error: Failed to download metadata for repo ‘gitlab_gitlab-ee’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Generating yum cache for gitlab_gitlab-ee-source…
Error: Failed to download metadata for repo ‘gitlab_gitlab-ee-source’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

The repository is setup! You can now install packages.

Thanks,
Gado

What repositories are enabled in Oracle Linux? Normally yum-utils is in baseos repository. If you don’t have any repositories configured, no dependencies for Gitlab can be installed and it will fail.

Normally for EL distros, there should be at least BASEOS and APPSTREAM enabled. If you don’t have these, then make sure that you do.

Ok I’ll check this. But the error seems to be about SSL certificates or keys in cloudfront.

Some of the repos were disabled. I enabled them but still the same errors. This is the yum.repos.d/oracle-linux-ol9.repo:

[ol9_baseos_latest]
name=Oracle Linux 9 BaseOS Latest ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/baseos/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol9_appstream]
name=Oracle Linux 9 Application Stream Packages ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/appstream/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol9_u0_baseos_base]
name=Oracle Linux 9 BaseOS GA ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/0/baseos/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol9_u1_baseos_base]
name=Oracle Linux 9.1 BaseOS ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/1/baseos/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol9_u2_baseos_base]
name=Oracle Linux 9.2 BaseOS ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/2/baseos/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol9_addons]
name=Oracle Linux 9 Addons ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol9_codeready_builder]
name=Oracle Linux 9 CodeReady Builder ($basearch) - (Unsupported)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/codeready/builder/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol9_distro_builder]
name=Oracle Linux 9 Distro Builder ($basearch) - (Unsupported)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/distro/builder/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol9_MODRHCK]
name=Latest RHCK with fixes from Oracle for Oracle Linux $releasever ($basearch)
baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/MODRHCK/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
priority=20
enabled=0