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

前端 未结 8 1210
野性不改
野性不改 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:08

    For me non of the above worked and I had to do as below, and it worked,

    sudo -E add-apt-repository ppa:openjdk-r/ppa

    and then,

    sudo apt-get update

    sudo apt-get install openjdk-8-jdk

    Reference: https://askubuntu.com/questions/644188/updating-jdk-7-to-8-unable-to-locate-package

提交回复
热议问题