/usr/lib/jvm/java-6-openjdk-amd64/bin/rmiregistry is in openjdk-6-jre-headless 6b41-1.13.13-0ubuntu0.12.04.1.
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