Ubuntu: OpenJDK 8 - Unable to locate package

后端 未结 6 1925
遇见更好的自我
遇见更好的自我 2020-12-12 10:44

So I just installed Ubuntu, and this is my first time working in a Linux environment, so bear with my noobishness here.

Anyway, I downloaded the Java 8 JDK directly

6条回答
  •  难免孤独
    2020-12-12 11:20

    I was having the same issue and tried all of the solutions on this page but none of them did the trick.

    What finally worked was adding the universe repo to my repo list. To do that run the following command

    sudo add-apt-repository universe
    

    After running the above command I was able to run

    sudo apt install openjdk-8-jre
    

    without an issue and the package was installed.

    Hope this helps someone.

提交回复
热议问题