this seems to be a leftover of a very old package providing java
alternatives of it's own. try to remove this package. what's the output
of
update-alternatives --list java
update-alternatives --display java
update-alternatives --list rmiregistry
update-alternatives --display rmiregistry
--
Here is the error:
2009-11-02 23:16:59,161 ERROR got an error from dpkg for pkg: 'gij-4.3':
'subprocess installed post-installation script returned error exit
status 2
Setting up gij-4.3 (4.3.4-4ubuntu1) ...^M
update-alternatives: error: alternative rmiregistry can't be master: it is a
slave of