01-26-2021, 05:49 AM
Hello all experts.
I need to install Java into my VPS. and almost i follow all tutorials to install it but fails. so i need some expert feed back to resolve the errors.
I share a tutorial got from Digitalocean which is most authentic and favorite but i got following outputs.
After that when i try to install java 8 .
Anyone have solution for this?
I need to install Java into my VPS. and almost i follow all tutorials to install it but fails. so i need some expert feed back to resolve the errors.
I share a tutorial got from Digitalocean which is most authentic and favorite but i got following outputs.
Code: (Select All)
root@kvm-xxxxxxxxxxxxx:~# sudo apt install default-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
default-jdk is already the newest version (2:1.8-58+deb9u1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@kvm-xxxxxxxxxxxxxx:~# java -version
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-1~deb9u1-b01)
OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)
root@kvm-xxxxxxxxxxxxx:~# sudo apt-get install default-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
default-jre is already the newest version (2:1.8-58+deb9u1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@kvm-xxxxxxxxxxxxxx:~# sudo apt-get install software-properties-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
software-properties-common is already the newest version (0.96.20.2-1+deb9u1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@kvm-xxxxxxxxxxxxxx:~# sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
root@kvm-xxxxxxxxxxxxxxxxx:~#
root@kvm-xxxxxxxxxxxxxxxxxxx:~#
root@kvm-xxxxxxxxxxxxxxxxxxx:~# sudo apt-get update
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://ftp.us.debian.org/debian stretch InRelease
Get:3 http://ftp.us.debian.org/debian stretch-updates InRelease [93.6 kB]
Get:4 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease [17.6 kB]
Hit:5 http://security.debian.org/debian-security jessie/updates InRelease
Hit:6 http://ftp.us.debian.org/debian stretch Release
Hit:7 http://ppa.launchpad.net/linuxuprising/java/ubuntu hirsute InRelease
Hit:9 http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease
Ign:10 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute InRelease
Ign:11 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute Release
Ign:12 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main amd64 Packages
Ign:13 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main all Packages
Ign:14 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main Translation-en_US
Ign:15 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main Translation-en
Ign:12 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main amd64 Packages
Ign:13 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main all Packages
Ign:14 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main Translation-en_US
Ign:15 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main Translation-en
Ign:12 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main amd64 Packages
Ign:13 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main all Packages
Ign:14 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main Translation-en_US
Ign:15 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main Translation-en
Ign:12 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main amd64 Packages
Ign:13 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main all Packages
Ign:14 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main Translation-en_US
Ign:15 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main Translation-en
Ign:12 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main amd64 Packages
Ign:13 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main all Packages
Ign:14 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main Translation-en_US
Ign:15 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main Translation-en
Err:12 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main amd64 Packages
404 Not Found [IP: 91.189.95.85 80]
Ign:13 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main all Packages
Ign:14 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main Translation-en_US
Ign:15 http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute/main Translation-en
Fetched 111 kB in 7s (14.1 kB/s)
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu hirsute Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/hirsute/main/binary-amd64/Packages 404 Not Found [IP: 91.189.95.85 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
After that when i try to install java 8 .
Code: (Select All)
root@kvm-xxxxxxxxxxxxxxxxx:~# sudo apt-get install oracle-java8-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package oracle-java8-installer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'oracle-java8-installer' has no installation candidate
Anyone have solution for this?
LOVE FOR ALL HATRED FOR NONE