-
-
Save Sanix-Darker/247daa10ab4635f2168b848e8cecb5ac to your computer and use it in GitHub Desktop.
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 |
@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
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.