$ sudo aptitude install rhino
[...]
The following packages have been automatically kept back:
openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
The following packages have been kept back:
linux-headers-generic
The following NEW packages will be installed:
rhino
0 packages upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
[...]
Setting up rhino (1.6.R7-2) ...
[...]

んで、

$ sudo aptitude safe-upgrade
[...]
The following packages have been kept back:
linux-headers-generic
The following packages will be upgraded:
openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
4 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 32.2MB/36.9MB of archives. After unpacking 193kB will be freed.
Do you want to continue? [Y/n/?]
[...]
Preparing to replace openjdk-6-jre-lib 6b10-0ubuntu1 (using .../openjdk-6-jre-lib_6b11-2ubuntu2_all.deb) ...
Unpacking replacement openjdk-6-jre-lib ...
Preparing to replace openjdk-6-jre-headless 6b10-0ubuntu1 (using .../openjdk-6-jre-headless_6b11-2ubuntu2_amd64.deb) ...
Unpacking replacement openjdk-6-jre-headless ...
Preparing to replace openjdk-6-jre 6b10-0ubuntu1 (using .../openjdk-6-jre_6b11-2ubuntu2_amd64.deb) ...
Unpacking replacement openjdk-6-jre ...
Preparing to replace openjdk-6-jdk 6b10-0ubuntu1 (using .../openjdk-6-jdk_6b11-2ubuntu2_amd64.deb) ...
Unpacking replacement openjdk-6-jdk ...
Setting up openjdk-6-jre-lib (6b11-2ubuntu2) ...
Setting up openjdk-6-jre-headless (6b11-2ubuntu2) ...
Installing new version of config file /etc/java-6-openjdk/security/cacerts ...
Installing new version of config file /etc/java-6-openjdk/management/management.properties ...
Setting up openjdk-6-jre (6b11-2ubuntu2) ...
Using '/usr/lib/jvm/java-6-openjdk/jre/bin/javaws' to provide 'javaws'.
Using '/usr/lib/jvm/java-6-openjdk/jre/bin/pluginappletviewer' to provide 'pluginappletviewer'.
Using '/usr/lib/jvm/java-6-openjdk/jre/bin/policytool' to provide 'policytool'.
Setting up openjdk-6-jdk (6b11-2ubuntu2) ...
Using '/usr/lib/jvm/java-6-openjdk/bin/appletviewer' to provide 'appletviewer'.
Using '/usr/lib/jvm/java-6-openjdk/bin/apt' to provide 'apt'.
Using '/usr/lib/jvm/java-6-openjdk/bin/extcheck' to provide 'extcheck'.
Using '/usr/lib/jvm/java-6-openjdk/bin/idlj' to provide 'idlj'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jar' to provide 'jar'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jarsigner' to provide 'jarsigner'.
Using '/usr/lib/jvm/java-6-openjdk/bin/javac' to provide 'javac'.
Using '/usr/lib/jvm/java-6-openjdk/bin/javadoc' to provide 'javadoc'.
Using '/usr/lib/jvm/java-6-openjdk/bin/javah' to provide 'javah'.
Using '/usr/lib/jvm/java-6-openjdk/bin/javap' to provide 'javap'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jconsole' to provide 'jconsole'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jdb' to provide 'jdb'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jhat' to provide 'jhat'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jinfo' to provide 'jinfo'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jmap' to provide 'jmap'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jps' to provide 'jps'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jrunscript' to provide 'jrunscript'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jsadebugd' to provide 'jsadebugd'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jstack' to provide 'jstack'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jstat' to provide 'jstat'.
Using '/usr/lib/jvm/java-6-openjdk/bin/jstatd' to provide 'jstatd'.
Using '/usr/lib/jvm/java-6-openjdk/bin/native2ascii' to provide 'native2ascii'.
Using '/usr/lib/jvm/java-6-openjdk/bin/rmic' to provide 'rmic'.
Using '/usr/lib/jvm/java-6-openjdk/bin/schemagen' to provide 'schemagen'.
Using '/usr/lib/jvm/java-6-openjdk/bin/serialver' to provide 'serialver'.
Using '/usr/lib/jvm/java-6-openjdk/bin/wsgen' to provide 'wsgen'.
Using '/usr/lib/jvm/java-6-openjdk/bin/wsimport' to provide 'wsimport'.
Using '/usr/lib/jvm/java-6-openjdk/bin/xjc' to provide 'xjc'.
[...]