Installing default-jdk, uninstalling it, doing apt-get autoremove, and reinstalling it leaves you without /usr/bin/javac ?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
java-common (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
To reproduce:
$ sudo lxc-create -t ubuntu -n testbot01-
$ sudo lxc-start -n testbot01-
(log in)
$ sudo apt-get install default-jdk
$ which javac
/usr/bin/javac
$ sudo apt-get remove default-jdk
$ which javac
/usr/bin/javac
$ sudo apt-get autoremove -y
$ which javac
$ sudo apt-get install default-jdk
$ which javac
$ update-
java-1.6.0-openjdk 1061 /usr/lib/
$ sudo update-
update-
update-
...
$ apt-cache policy default-jdk
default-jdk:
Installed: 1.6-34
Candidate: 1.6-34
Version table:
*** 1.6-34 0
500 http://
100 /var/lib/
If you save a log on the two 'apt-get install default-jdk' lines, diffing the two shows:
Setting up openjdk-
-update-
...
Setting up openjdk-6-jdk (6b27-1.
-update-
So evidently there's some sort of postinst / postrm problem that only shows up on the second install?
Oh, and the host OS was Ubuntu 12.04.4 LTS, if that matters.