Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 18 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save Sanix-Darker/247daa10ab4635f2168b848e8cecb5ac to your computer and use it in GitHub Desktop.
Save Sanix-Darker/247daa10ab4635f2168b848e8cecb5ac to your computer and use it in GitHub Desktop.
[Shell] Install Java JDK 1.8 on Debian, Kali linux
sudo su -
cat >/etc/apt/sources.list.d/webupd8team-java.list<< EOF
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
EOF
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
java -version
@Ak4695755
Copy link

Totally was a raw material for me just a waste of time nothing else

@rmpitts94
Copy link

so i am branching off with my work with kali into some new things and as a few others have also gotten, i have as well. nothing online seems to fix this.
apt-get install oracle-java8-installer 1 ⨯
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package oracle-java8-installer

@rmpitts94
Copy link

i cant alt the java version either as obviously its not installing properly. for what im doing i have to use 1.8. no other version will work for it.

@rmpitts94
Copy link

@aadesh2401 and @WiHacker , apt-get update first doesn't help ?

this is what you get:
Hit:1 http://kali.download/kali kali-rolling InRelease
Get:2 https://deb.torproject.org/torproject.org stretch InRelease [3,531 B]
Err:2 https://deb.torproject.org/torproject.org stretch InRelease
The following signatures were invalid: EXPKEYSIG 74A941BA219EC810 deb.torproject.org archive signing key
Hit:3 https://apt.syncthing.net syncthing InRelease
Hit:4 https://packagecloud.io/AtomEditor/atom/any any InRelease
Ign:5 http://ppa.launchpad.net/nginx/stable/ubuntu kinetic InRelease
Err:6 http://ppa.launchpad.net/nginx/stable/ubuntu kinetic Release
404 Not Found [IP: 185.125.190.52 80]

and then everything else in the list:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment