/usr/lib/jvm/java-6-openjdk-amd64/bin/rmiregistry is in openjdk-6-jre-headless 6b31-1.13.3-1ubuntu1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/jvm/java-6-openjdk-amd64/bin/../jre/bin/rmiregistry