Bug with installer script - adoptium repo

Note - If you do not fill in every section below, your post won’t be answered - you must provide the steps you have followed so far and the actions you’ve already taken. Make sure to remove this notice from your post too.

OS Name/Version: RHEL 9.0

Product Name/Version: AMP One-line installer.

Problem Description:
There’s a bug with the installer and the creation of the adoptium repo for yum. It’s adding a 9.0 to the repo URL when the actual URl contains just a 9 for the RHEL repo.

Updating Subscription Management repositories.
Adoptium                                         35  B/s |  80  B     00:02    
Errors during downloading metadata for repository 'Adoptium':
  - Status code: 404 for https://packages.adoptium.net/artifactory/rpm/rhel/9.0/x86_64/repodata/repomd.xml (IP:
Error: Failed to download metadata for repo 'Adoptium': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Bad adoptium repo config.


Good adoptium repo config.


Steps to reproduce:

  • Step 1 Create virtual machine using rhel-baseos-9.0-x86_64-boot.iso.
  • Step 2 Logon and run one-liner script.

Actions taken to resolve so far:
If I modify the /etc/os-release/ file and remove all the .0’s from it, it creates the repo with the correct url and installs fine.

What’s the contents of your /etc/os-release file?

Also you might be the first person to use actual RHEL to run AMP instead of one of its relatives.