Installing jdk8 on ubuntu- “unable to locate package” update doesn't fix

前端 未结 8 1187
野性不改
野性不改 2021-02-02 09:37

I\'ve been trying to install the jdk on my ubuntu after downloading it.

first I\'ve used: sudo apt-get update

then: sudo apt-get install jdk*

相关标签:
8条回答
  • 2021-02-02 10:16

    I used another repository for oracle java.

    sudo add-apt-repository ppa:linuxuprising/java
    sudo apt-get update
    
    sudo apt install  oracle-java11-installer
    
    0 讨论(0)
  • 2021-02-02 10:20

    If you get a

    sudo: add-apt-repository: command not found

    then you need to run the following command

    sudo apt-get install software-properties-common python-software-properties

    0 讨论(0)
提交回复
热议问题