adoptium / installer

Installer scripts for Eclipse Temurin binaries
Apache License 2.0
149 stars 75 forks source link

Unable to install temurin #621

Closed 4Sven closed 1 year ago

4Sven commented 1 year ago

I'm unable to install temurin because yum errors.

yum install -v -d 0 temurin-11-jre

Loading "extras_suggestions" plugin Loading "langpacks" plugin Loading "priorities" plugin Loading "update-motd" plugin Adding en_US to language list Config time: 0.567 Yum version: 3.4.3 rpmdb time: 0.000 Setting up Package Sacks Adoptium | 3.0 kB 00:00:00
https://packages.adoptium.net/ui/native/rpm/amazonlinux/2/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for Adoptium: Damaged repomd.xml file Trying other mirror.

One of the configured repositories failed (Adoptium), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=Adoptium ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable Adoptium
    or
        subscription-manager repos --disable=Adoptium

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=Adoptium.skip_if_unavailable=true

failure: repodata/repomd.xml from Adoptium: [Errno 256] No more mirrors to try. https://packages.adoptium.net/ui/native/rpm/amazonlinux/2/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for Adoptium: Damaged repomd.xml file

Operating System is Amazon Linux 2. We are behind a firewall.

This is my adoptium.repo

[Adoptium] name=Adoptium baseurl=https://packages.adoptium.net/ui/native/rpm/amazonlinux/2/$basearch enabled=1 gpgcheck=1 gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public proxy=http://xxxxxxxx:yyyy

I tried to get the repomd.xml with curl:

curl https://packages.adoptium.net/ui/native/rpm/amazonlinux/2/x86_64/repodata/repomd.xml

<!doctype html>JFrog

How can I solve this?

karianna commented 1 year ago

https://packages.adoptium.net/ui/native/rpm/amazonlinux/2/x86_64/repodata/repomd.xml appears to be an empty file when using a web browser.

Paging @gdams as I'm not sure we support Amazon Linux directly.

sxa commented 1 year ago

Not sure what happened here but I've just tried to reproduce and it works ok, and the repomd.xml mentioned in the previous comment appears to contain valid comment, so I think this issue can be closed. Feel free to reopen if you believe there is still an issue here.