Installing Oracle on Debian/Ubuntu

The APT repository key of Oracle's OSS site has expired on 4th September (as probably many Debian/Ubuntu maintainers have found out by now). An apt-get update gave me the following error message:
W: GPG error: http://oss.oracle.com unstable Release: The following signatures were invalid: KEYEXPIRED 1315142507 KEYEXPIRED 1315142507 KEYEXPIRED 1315142507
W: You may want to run apt-get update to correct these problems
The Oracle help page at Ubuntu's wiki contains the URL for the currently valid key.

Checking the APT keys on the system gave the answer:
# apt-key list
/etc/apt/trusted.gpg
--------------------
pub   1024D/16BA136C 2005-08-21
uid                  Backports.org Archive Key <ftp-master@backports.org>
sub   2048g/5B82CECE 2005-08-21

pub   1024D/F42584E6 2008-04-06 [expires: 2012-05-15]
uid                  Lenny Stable Release Key <debian-release@lists.debian.org>

(...)

pub   1024D/B38A8516 2006-09-05 [expired: 2011-09-04]
uid                  Oracle OSS group (Open Source Software group) <build@oss.oracle.com>

The solution is to install the current valid key:
# sudo apt-key del B38A8516
# wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O - | sudo apt-key add -

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Thanks

Thanks you very much, it's very useful for me!

Thanks!!!

Thanks!!!

Latest key

Thanks for the info. The key for el4 has been expired and has not been updated in a couple of years. Instead the latest key is under "el6"
wget http://oss.oracle.com/el6/RPM-GPG-KEY-oracle -O - | sudo apt-key add -