E: Package 'oracle-java8-installer' has no installation candidate

后端 未结 4 2050
执笔经年
执笔经年 2021-01-31 08:41

I tried to install java8 using the following commands:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-install         


        
4条回答
  •  时光说笑
    2021-01-31 09:35

    Add the following line to /etc/apt/sources.list:

    deb https://debian.opennms.org/ stable main

    Install GPG key of the repository:

    wget -O - http://debian.opennms.org/OPENNMS-GPG-KEY | sudo apt-key add -

    Update the package index:

    sudo apt-get update

    Install oracle-java8-installer deb package:

    sudo apt-get install oracle-java8-installer

    Source

提交回复
热议问题