I have problem to install Java * for my Linux Ubuntu 14.04 LTS. This is due to error NO_PUBKEY
I'm using WebUpD8 Ubuntu PPA (Oracle Java (JDK) 7/8/9
https://launchpad.net/~webupd8team/+archive/ubuntu/java
error from
apt-get install oracle-java8-installer
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
I need to get this from web browser due to firewall is blocking the needed TCP port. The key can be copy and paste from here :-
http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0xC2518248EEA14886
-----BEGIN PGP PUBLIC KEY BLOCK----- Version: SKS 1.1.5 Comment: Hostname: keyserver.ubuntu.com mI0ES9/P3AEEAPbI+9BwCbJucuC78iUeOPKl/HjAXGV49FGat0PcwfDd69MVp6zUtIMbLgkU OxIlhiEkDmlYkwWVS8qy276hNg9YKZP37ut5+GPObuS6ZWLpwwNus5PhLvqeGawVJ/obu7d7 gM8mBWTgvk0ErnZDaqaU2OZtHataxbdeW8qH/9FJABEBAAG0DUxhdW5jaHBhZCBWTEOItgQT AQIAIAUCS9/P3AIbAwYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEMJRgkjuoUiG5wYEANCd jhXXEpPUbP7cRGXL6cFvrUFKpHHopSC9NIQ9qxJVlUK2NjkzCCFhTxPSHU8LHapKKvie3e+l kvWW5bbFN3IuQUKttsgBkQe2aNdGBC7dVRxKSAcx2fjqP/s32q1lRxdDRM6xlQlEA1j94ewG 9SDVwGbdGcJ43gLxBmuKvUJ4 =0Cp+ -----END PGP PUBLIC KEY BLOCK-----
From my terminal, I ran this command
sudo apt-key add -
and pasted the output from the above command (the public key) into the stdin ans enter, followed by control-D.