"Failed to install instance manager" : cannot access "repmod.xml"

OS Name/Version: Oracle-Linux-8.6-aarch64-2022.08.08-0

Problem Description:
I’m trying to install AMP into a small Ampere VM running in Oracle Cloud. I’ve already installed Minecraft and it is running and accessible, but the AMP install keeps failing…

Installing AMP...
amp already exists. Skipping...
Updating System...
Installing prerequisites...
Adding AdoptOpenJDK RPM repository...
Installing Java for Minecraft...
Adding CubeCoders RPM repository...
Installing instance manager...
 - Installing via package manager...
Failed to install instance manager. Aborting...
Possible causes for this are an unsupported distribution, or the repository being in the middle of a sync. In which case wait 30 minutes and try again, re-running the same installation command.

The “getamp*.log” file shows the following:

Thu Sep  1 09:42:46 GMT 2022
Adoptium                                         70  B/s |  80  B     00:01
Errors during downloading metadata for repository 'Adoptium':
  - Status code: 404 for https://packages.adoptium.net/artifactory/rpm/ol/8.6/aarch64/repodata/repomd.xml (IP: 44.239.129.231)
Error: Failed to download metadata for repo 'Adoptium': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Adoptium                                         72  B/s |  80  B     00:01
Errors during downloading metadata for repository 'Adoptium':
  - Status code: 404 for https://packages.adoptium.net/artifactory/rpm/ol/8.6/aarch64/repodata/repomd.xml (IP: 52.88.35.32)
Error: Failed to download metadata for repo 'Adoptium': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Adoptium                                         73  B/s |  80  B     00:01
Errors during downloading metadata for repository 'Adoptium':
  - Status code: 404 for https://packages.adoptium.net/artifactory/rpm/ol/8.6/aarch64/repodata/repomd.xml (IP: 52.27.220.174)
Error: Failed to download metadata for repo 'Adoptium': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
repo id                          repo name
Adoptium                         Adoptium
CubeCoders                       CubeCoders Limited
ol8_MySQL80                      MySQL 8.0 for Oracle Linux 8 (aarch64)
ol8_MySQL80_connectors_community MySQL 8.0 Connectors Community for Oracle Linux 8 (aarch64)
ol8_MySQL80_tools_community      MySQL 8.0 Tools Community for Oracle Linux 8 (aarch64)
ol8_addons                       Oracle Linux 8 Addons (aarch64)
ol8_appstream                    Oracle Linux 8 Application Stream (aarch64)
ol8_baseos_latest                Oracle Linux 8 BaseOS Latest (aarch64)
ol8_ksplice                      Ksplice for Oracle Linux 8 (aarch64)
ol8_oci_included                 Oracle Software for OCI users on Oracle Linux 8 (aarch64)
Adoptium                                         72  B/s |  80  B     00:01
Errors during downloading metadata for repository 'Adoptium':
  - Status code: 404 for https://packages.adoptium.net/artifactory/rpm/ol/8.6/aarch64/repodata/repomd.xml (IP: 44.239.129.231)
Error: Failed to download metadata for repo 'Adoptium': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Adoptium                                         74  B/s |  80  B     00:01
Errors during downloading metadata for repository 'Adoptium':
  - Status code: 404 for https://packages.adoptium.net/artifactory/rpm/ol/8.6/aarch64/repodata/repomd.xml (IP: 52.88.35.32)
Error: Failed to download metadata for repo 'Adoptium': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
--2022-09-01 09:43:29--  https://repo.cubecoders.com/aarch64/CubeCoders.repo
Resolving repo.cubecoders.com (repo.cubecoders.com)... 198.244.186.210, 2001:41d0:800:1e2b::c00b:c0de
Connecting to repo.cubecoders.com (repo.cubecoders.com)|198.244.186.210|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 103 [text/plain]
Saving to: ‘/etc/yum.repos.d/CubeCoders.repo.3’

     0K                                                       100%  144M=0s

2022-09-01 09:43:29 (144 MB/s) - ‘/etc/yum.repos.d/CubeCoders.repo.3’ saved [103/103]

Adoptium                                         73  B/s |  80  B     00:01
Errors during downloading metadata for repository 'Adoptium':
  - Status code: 404 for https://packages.adoptium.net/artifactory/rpm/ol/8.6/aarch64/repodata/repomd.xml (IP: 52.27.220.174)
Error: Failed to download metadata for repo 'Adoptium': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Adoptium                                         71  B/s |  80  B     00:01
Errors during downloading metadata for repository 'Adoptium':
  - Status code: 404 for https://packages.adoptium.net/artifactory/rpm/ol/8.6/aarch64/repodata/repomd.xml (IP: 44.239.129.231)
Error: Failed to download metadata for repo 'Adoptium': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Trying to access the repo file from my browser errors with:

{
  "errors": [
    {
      "status": 404,
      "message": "Item rpm:ol/8.6/aarch64/repodata/repomd.xml does not exist"
    }
  ]
}

Actions taken to resolve so far:
I made sure that ports 80 and 443 were open for my Oracle Compartment and the VM and retried the installation.
It failed again with the same error.
I shouted at the screen for a bit, then decided to look for help.

Any help or suggestions as to what to investigate next would be welcomed.
Cheers.

Oracle Linux isn’t supported by AMP on ARM. You must use Ubuntu instead.

Thanks. I appreciate the feedback, but do you know why the repomd.xml file is unavailable?

–Edit
Ah, is the URL dynamically constructed from the host and OS?

Because the Adoptium repo for Java doesn’t support Oracle either.

AMP also won’t be able to run on Oracle 8.x - the version of glibc used is too old. AMP is compiled against a newer version when running on ARM instead of AMD64 which is why Ubuntu 20.04 (or Debian equivalent) or newer is mandatory for ARM systems.

Super, thanks for the clarification. Much appreciated.