Re: "Package is in a very bad inconsistent state" and j2sdk1.4

From: Paul (paula4l_at_access4less.net)
Date: 02/01/05

  • Next message: Andreas Ehn: "Re: Kerberos should be in the base system"
    Date: Tue, 01 Feb 2005 14:20:10 -0500
    To: debian-user@lists.debian.org
    
    

    H. S. wrote:
    >
    > I am helping a guy by email who has a freshly installed Sarge system. He
    > is totally new to Debian and he was helped by a friend during his first
    > install.
    >
    > His friend is away and I am now helping this guy in solving this problem
    > that he is having while installing (and now while removing) j2sdk1.4. If
    > he tries to remove this package, he gets:
    > #--------------------------------------------------------------
    > Do you what to continue? [Y/n] y
    > Preconfiguring packages ...
    > dpkg: error processing j2sdk1.4 {--remove):
    > package is in a very bad inconsistant state - you
    > should reinstall it before atempting a removal
    > Errors were encountered while processing:
    > j2sdk1.4
    > E: Sub-process /usr/bin/dpkg returned an error code
    > {1)
    > Root$
    > #--------------------------------------------------------------
    >
    > He gets this when he tried "dpkg --purge j2sdk1.4", "apt-get
    > dist-upgrade" or "apt-get "--purge remove j2sdk1.4".
    >
    > I have suggested him to try:
    > 1) #> dpkg --purge --force-remove-reinstreq j2sdk1.4
    >
    > 2) the following procedure if 1) above does not work.
    > a. dpkg --listfiles <package name>
    > Find every file that was installed, then do a search and destroy.
    >
    > b. Edit the file /var/lib/dpkg/status
    > Remove the section for your badly broken package
    >
    > c. Edit the file /var/lib/dpkg/available
    > Remove the section for your badly broken package
    >
    >
    >
    > Just wanted to know if somebody has seen this before or if somebody has
    > other suggestions.
    >
    > ->HS
    >

    Yes, I'm a newbie and already have encountered this several times. I
    don't know about the steps you list, but the apt-howto gives some
    'survival' advice:

    dpkg --configure -a
    apt-get -f install
    < repeat until problem goes away >

    I found these 2 steps didn't succeed for me. My work around was to
    install the older version of the package (in your case j2sdk1.4) and it
    overwrote and purged out the bad junk. So, if you have an old version
    available, give that a try. For j2sdk1.4, you may have difficulty
    finding an earlier version .. if so, use the 'java-package' to convert
    the java source from sun into a debian package, and then install your
    new (good) java over the old junk.

    Whatever the level of frustration, don't give up, because it will work
    through eventually.

    paul

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Andreas Ehn: "Re: Kerberos should be in the base system"

    Relevant Pages

    • Re: the best Linux for me
      ... I've ben using debian on my desktop for about 8 years, ... What's Debian's package / distro system called? ... cl-clx-sbcl - An X11 Common Lisp client library for SBCL ... You can also see how out of date my unstable install ...
      (comp.lang.lisp)
    • Re: FHS question
      ... doing software package installation or removal. ... The system and the admin. ... You as the admin are free to install software in /opt. ... Debian and that bug reports should not go to Debian for that software ...
      (Debian-User)
    • Re: Best Linux version to port from OpenServer 5.0.5/6
      ... 5.0.5/6, to Linux. ... > something that doesn install aload of crap you don't need... ... > The package management allows easy installs of packages ... Debian will never die!,See ...
      (comp.unix.sco.misc)
    • Re: freedom of debian
      ... While Debian does have a great package management system. ... do is install the stable version of some package on Debian Stable, ... software is packaged linked to the newer libraries. ...
      (Debian-User)
    • Errors applying kernel patch 118833-36
      ... install of Solaris 10 11/06. ... However, once the package list is done, I see a worrisome message: ... Below is the complete console output of the patch run. ... Changes for package SUNWnfsskr will not be applied to the system. ...
      (SunManagers)