Giter VIP home page Giter VIP logo

Comments (6)

reinhapa avatar reinhapa commented on June 12, 2024 1

The general way to have a dynamic repo working for the current version and arch would look like this:

[adoptopenjdk]
name=AdoptOpenJDK $releasever - $basearch
baseurl=https://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public

Not that the repo id would be in lower case as standard (but works also in camel case 😎)

from installer.

aahlenst avatar aahlenst commented on June 12, 2024

In a Docker container (docker run -d -t fedora:30), I did the following:

cat <<EOF > /etc/yum.repos.d/adoptopenjdk.repo
[AdoptOpenJDK]
name=AdoptOpenJDK
baseurl=http://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/fedora/30/$(uname -m)
enabled=1
gpgcheck=1
gpgkey=https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public
EOF

Followed by a dnf update and dnf install adoptopenjdk-11-hotspot, which both succeeded.

Could you please list the steps you performed that led to the error? Preferably with a Docker container.

from installer.

cold-distance avatar cold-distance commented on June 12, 2024

I don't use Docker. I need a solution for a "real" system installed on VirtualBox. I need admin rights to set the repo.

I took the steps from here and the repo for Ubuntu and Debian works correctly, but I can't say the same thing about Fedora 30.

Captura de pantalla de 2019-05-21 19-45-46 (copia)

from installer.

aahlenst avatar aahlenst commented on June 12, 2024

Your adoptopenjdk.repo should look like this:

[AdoptOpenJDK]
name=AdoptOpenJDK
baseurl=http://adoptopenjdk.jfrog.io/adoptopenjdk/rpm/fedora/30/x86_64
enabled=1
gpgcheck=1
gpgkey=https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public

The problem with your adoptopenjdk.repo is that it still contains $(uname -m).

from installer.

karianna avatar karianna commented on June 12, 2024

Sounds like this can be closed. Please do reopen if the suggestions above aren't adequate!

from installer.

cold-distance avatar cold-distance commented on June 12, 2024

Now it's working. Thank your very much.

from installer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.