Package: sun-java5-jdk
Version: 1.5.0-12-1
Severity: important
During the last upgrade I got the following lines (again):
Preparing the replace sun-java5-jdk 1.5.0-11-1 (using
.../sun-java5-jdk_1.5.0-12-1_i386.deb)
Removing manually selected alternative - switching to auto mode
Removing manually selected alternative - switching to auto mode
Removing manually selected alternative - switching to auto mode
Removing manually selected alternative - switching to auto mode
The harbinger of disaster. Guess what, after that
/usr/sbin/update-alternatives --display javac
shows this:
javac - status is auto.
link currently points to /usr/lib/jvm/java-gcj/bin/javac
/usr/bin/gcj-wrapper-4.1 - priority 41
/usr/lib/jvm/java-gcj/bin/javac - priority 1041
/usr/bin/ecj - priority 143
/usr/lib/jvm/java-1.5.0-sun/bin/javac - priority 53
Current `best' version is /usr/lib/jvm/java-gcj/bin/javac.
I don't want gcj as my javac, I don't know how often I forced the
alternative system to use the sun-jdk-javac, but on each (security-)
upgrade, that piece of configuration is lost again and again.
Please fix the /var/lib/dpkg/info/sun-java5-jdk.prerm script to NOT
remove the alternatives on just an upgrade! Wrap in in some
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
update-alternatives --remove ...
fi
Since update-alternatives is idem-potent, you don't need to remove them
every time, just on removes.
Sincerely
Philipp Hahn
PS: I tagged this report important, because sometimes it happens with
/usr/bin/java, too. Then I get a Java-VM which doesn't support AWT and
my applications don't start any more.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (989, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.21.5-laptop (PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages sun-java5-jdk depends on:
ii debconf [debconf-2.0] 1.5.13 Debian configuration management sy
ii libc6 2.5-11 GNU C Library: Shared libraries
ii libx11-6 2:1.0.3-7 X11 client-side library
pn sun-java5-demo <none> (no description available)
pn sun-java5-jre <none> (no description available)
sun-java5-jdk recommends no packages.
-- debconf information excluded
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]