← Back to team overview

openjdk team mailing list archive

[Bug 371772] Re: package gij-4.3 4.3.3-5ubuntu4 failed to install/upgrade: subprocess post-installation script returned error exit status 2 (OpenJDK won't get removed)

 

> Setting up gij-4.3 (4.3.3-5ubuntu4) ...
> update-alternatives: error or eof reading /var/lib/dpkg/alternatives/java for update_mode ()
> dpkg: error processing gij-4.3 (--configure):
>  subprocess post-installation script returned error exit status 2

never seen this, but apparently it's update-alternatives or a messed up
file /var/lib/dpkg/alternatives/java

** Package changed: openjdk-6 (Ubuntu) => dpkg (Ubuntu)

-- 
package gij-4.3 4.3.3-5ubuntu4 failed to install/upgrade: subprocess post-installation script returned error exit status 2 (OpenJDK won't get removed)
https://bugs.launchpad.net/bugs/371772
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in “dpkg” package in Ubuntu: New

Bug description:
Trying to remove OpenJDK, it crashed and not synaptic won't install, update or remove anything.

I tried several things to remove it, even install it with the -f switch. I tried every possible combinaison with apt-get and dpkg (even the mighty dpkg --configure -a) and this is what I get not:

$ sudo apt-get -f remove openjdk*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting openjdk-6-demo for regex 'openjdk*'
Note, selecting openjdk-6-source for regex 'openjdk*'
Note, selecting openjdk-6-jre-lib for regex 'openjdk*'
Note, selecting openjdk-6-jre-headless for regex 'openjdk*'
Note, selecting openjdk-6-jre-zero for regex 'openjdk*'
Note, selecting openjdk-6-dbg for regex 'openjdk*'
Note, selecting openjdk-6-doc for regex 'openjdk*'
Note, selecting openjdk-6-jdk for regex 'openjdk*'
Note, selecting openjdk-6-source-files for regex 'openjdk*'
Note, selecting openjdk-6-jre for regex 'openjdk*'
The following packages will be REMOVED:
  openjdk-6-jre openjdk-6-jre-headless
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
16 not fully installed or removed.
After this operation, 75.1MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 140916 files and directories currently installed.)
Removing openjdk-6-jre ...
update-alternatives: error or eof reading /var/lib/dpkg/alternatives/javaws for update_mode ()
dpkg: error processing openjdk-6-jre (--remove):
 subprocess pre-removal script returned error exit status 2
Removing openjdk-6-jre-headless ...
update-alternatives: error or eof reading /var/lib/dpkg/alternatives/java for update_mode ()
dpkg: error processing openjdk-6-jre-headless (--remove):
 subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
 openjdk-6-jre
 openjdk-6-jre-headless
E: Sub-process /usr/bin/dpkg returned an error code (1)
yanick@Dell-Yanick:~$ sudo dpkg --configure -a
dpkg: status database area is locked by another process
yanick@Dell-Yanick:~$ sudo dpkg --configure -a
Setting up gij-4.3 (4.3.3-5ubuntu4) ...
update-alternatives: error or eof reading /var/lib/dpkg/alternatives/java for update_mode ()
dpkg: error processing gij-4.3 (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of java-gcj-compat-headless:
 java-gcj-compat-headless depends on gij-4.3 (>= 4.3); however:
  Package gij-4.3 is not configured yet.
dpkg: error processing java-gcj-compat-headless (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcj-4.3:
 gcj-4.3 depends on gij-4.3 (= 4.3.3-5ubuntu4); however:
  Package gij-4.3 is not configured yet.
dpkg: error processing gcj-4.3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gappletviewer-4.3:
 gappletviewer-4.3 depends on gij-4.3 (= 4.3.3-5ubuntu4); however:
  Package gij-4.3 is not configured yet.
dpkg: error processing gappletviewer-4.3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgcj9-dev:
 libgcj9-dev depends on gcj-4.3 (= 4.3.3-5ubuntu4); however:
  Package gcj-4.3 is not configured yet.
dpkg: error processing libgcj9-dev (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of java-gcj-compat:
 java-gcj-compat depends on java-gcj-compat-headless (= 1.0.80-1); however:
  Package java-gcj-compat-headless is not configured yet.
dpkg: error processing java-gcj-compat (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ecj:
 ecj depends on gij-4.3 (>= 4.3.3); however:
  Package gij-4.3 is not configured yet.
dpkg: error processing ecj (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcj:
 gcj depends on gcj-4.3 (>= 4.3.3-1); however:
  Package gcj-4.3 is not configured yet.
dpkg: error processing gcj (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ecj-gcj:
 ecj-gcj depends on ecj (>= 3.4.2-0ubuntu1); however:
  Package ecj is not configured yet.
dpkg: error processing ecj-gcj (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gij:
 gij depends on gij-4.3 (>= 4.3.3-1); however:
  Package gij-4.3 is not configured yet.
dpkg: error processing gij (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of java-gcj-compat-dev:
 java-gcj-compat-dev depends on java-gcj-compat (= 1.0.80-1); however:
  Package java-gcj-compat is not configured yet.
 java-gcj-compat-dev depends on gcj-4.3; however:
  Package gcj-4.3 is not configured yet.
 java-gcj-compat-dev depends on ecj-gcj (>= 3.3.0+0728); however:
  Package ecj-gcj is not configured yet.
 java-gcj-compat-dev depends on gappletviewer-4.3; however:
  Package gappletviewer-4.3 is not configured yet.
dpkg: error processing java-gcj-compat-dev (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgcj9-src:
 libgcj9-src depends on gcj-4.3 (>= 4.3.3-1); however:
  Package gcj-4.3 is not configured yet.
dpkg: error processing libgcj9-src (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mauve:
 mauve depends on java-gcj-compat-dev | java-sdk; however:
  Package java-gcj-compat-dev is not configured yet.
  Package java-sdk is not installed.
  Package java-gcj-compat-dev which provides java-sdk is not configured yet.
dpkg: error processing mauve (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 gij-4.3
 java-gcj-compat-headless
 gcj-4.3
 gappletviewer-4.3
 libgcj9-dev
 java-gcj-compat
 ecj
 gcj
 ecj-gcj
 gij
 java-gcj-compat-dev
 libgcj9-src
 mauve

ProblemType: Package
Architecture: amd64
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 2
NonfreeKernelModules: fglrx
Package: gij-4.3 4.3.3-5ubuntu4
SourcePackage: gcj-4.3
Title: package gij-4.3 4.3.3-5ubuntu4 failed to install/upgrade: subprocess post-installation script returned error exit status 2
Uname: Linux 2.6.28-11-generic x86_64