Rocking the blogosphere
Apple Online Store

Fixing NO_PUBKEY 2E2BCDBCB38A8516 error from Oracle Debian repository

Folks running and Debian, Ubuntu, etc. may be aware that Oracle has a Debian repository for Oracle Express and other open-source software.

If you weren’t aware of it and wanted to use it, here’s the magic line to add to /etc/apt/sources.list:

deb http://oss.oracle.com/debian unstable main non-free

Recently, my apt-get updates started printing this warning:


W: GPG error: http://oss.oracle.com unstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2E2BCDBCB38A8516

because Oracle is signing their packages with GPG and my system didn’t have their GPG public key.

First, I tried:

$ gpg --keyserver subkeys.pgp.net --recv 2E2BCDBCB38A8516
gpg: requesting key B38A8516 from hkp server subkeys.pgp.net
gpgkeys: key 2E2BCDBCB38A8516 not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
$ gpg --keyserver subkeys.pgp.net --recv-keys B38A8516
gpg: requesting key B38A8516 from hkp server subkeys.pgp.net
gpgkeys: key B38A8516 not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

No dice. So I poked around a bit and found Oracle’s RPM GPG key. I wondered if they used the same GPG key for their Debian packages as they did for their RPM packages. One way to find out:

$ wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle
...
13:50:04 (356.53 KB/s) - `RPM-GPG-KEY-oracle' saved [1744/1744]
$ sudo apt-key add RPM-GPG-KEY-oracle
OK
$ sudo aptitude update
...
Fetched 194B in 2s (94B/s)
Reading package lists... Done

Cool, it worked!

Del.icio.us Digg Reddit Technorati

Possibly related posts

Comments

  1. Zarla
    March 9th, 2007 | 1:10 pm

    Thanks a lot for this tips !

  2. mp
    April 11th, 2007 | 12:47 am

    Works! Thaks.

  3. Jan
    April 13th, 2007 | 1:55 am

    I just found that oracle updated this page to include this information, too:

    http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html

  4. AnoN
    April 17th, 2007 | 1:29 pm

    Thanx!

  5. Johnny cretzu
    April 21st, 2007 | 3:32 pm

    Thanks for the tip!

  6. April 24th, 2007 | 9:36 pm

    Thanks for this.

  7. PM
    June 13th, 2007 | 6:37 am

    Cool! It worked for me too!

  8. Christian Olivares
    August 22nd, 2007 | 6:34 am

    Thanks!!!! It worked for me!!!

  9. DV Ramakrisnna
    February 24th, 2008 | 5:19 am

    Ya, it worked for me. thanks.

  10. c.vo
    March 6th, 2008 | 12:27 pm

    awesomeness. this saved me a huge headache!

  11. May 26th, 2008 | 2:43 am

    Oke thanks verry much. it work for me.

  12. June 10th, 2008 | 7:42 am

    Marc thanks very much for posting this tip!

Leave a reply

Apple Online Store
Apple Online Store