sarge dist-upgrade "Package is in a very bad inconsistent state"

From: Will Trillich (will_at_serensoft.com)
Date: 09/06/04

  • Next message: Mike Chandler: "Re: OT: Re: how to start jbidwatcher"
    Date: Mon, 6 Sep 2004 14:32:09 -0500
    To: debian-user@lists.debian.org
    
    

    f.y.i.

    in trying an upgrade (dist-upgrade) from woody to sarge, we ran
    into trouble with the following sympoms:

    root@www# apt-get -f install postgresql
    Reading Package Lists... Done
    Building Dependency Tree... Done
    You might want to run `apt-get -f install' to correct these:
    The following packages have unmet dependencies:
      gnome-control-center: Depends: capplets (= 1:2.6.1-12) but it is not going to be installed
      gnome-core: Depends: yelp (>= 2.4.0) but it is not going to be installed
      gnome-panel: Depends: gnome-desktop-data (>= 2.6.1-2) but it is not going to be installed
      nautilus: Depends: capplets (>= 2.6) but it is not going to be installed
      postgresql: Depends: postgresql-client (>= 7.4) but 7.2.1-2woody5 is to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

    root@www# apt-get -f install
    Reading Package Lists... Done
    Building Dependency Tree... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
      capplets capplets-data gnome-desktop-data postgresql postgresql-client yelp
    Suggested packages:
      xscreensaver xbase-clients gstreamer0.8-oss gstreamer0.8-esd libpgjava libpgtcl postgresql-dev
      postgresql-contrib pgdocs pgaccess python-pygresql pgmonitor
    The following NEW packages will be installed:
      capplets capplets-data gnome-desktop-data yelp
    The following packages will be upgraded:
      postgresql postgresql-client
    2 upgraded, 4 newly installed, 0 to remove and 28 not upgraded.
    151 not fully installed or removed.
    Need to get 0B/7096kB of archives.
    After unpacking 18.3MB of additional disk space will be used.
    Do you want to continue? [Y/n]
    Preconfiguring packages ...
    dpkg: error processing postgresql (--remove):
     Package is in a very bad inconsistent state - you should
     reinstall it before attempting a removal.
    Errors were encountered while processing:
     postgresql
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    root@www# apt-get -f remove postgresql
    Reading Package Lists... Done
    Building Dependency Tree... Done
    You might want to run `apt-get -f install' to correct these:
    The following packages have unmet dependencies:
      gnome-control-center: Depends: capplets (= 1:2.6.1-12) but it is not going to be installed
      gnome-core: Depends: yelp (>= 2.4.0) but it is not going to be installed
      gnome-panel: Depends: gnome-desktop-data (>= 2.6.1-2) but it is not going to be installed
      nautilus: Depends: capplets (>= 2.6) but it is not going to be installed
    E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

    root@www# dpkg -l postg\*
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
    |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
    ||/ Name Version Description
    +++-====================-====================-========================================================
    un postgres95 <none> (no description available)
    un postgres95-dev <none> (no description available)
    rHR postgresql 7.2.1-2woody5 Object-relational SQL database, descended from POSTGRES.
    ii postgresql-client 7.2.1-2woody5 Front-end programs for PostgreSQL
    pn postgresql-contrib <none> (no description available)
    pn postgresql-dev <none> (no description available)
    ii postgresql-doc 7.4.3-3 Documentation for the PostgreSQL database
    pn postgresql-pl <none> (no description available)
    pn postgresql-slink <none> (no description available)
    pn postgresql-test <none> (no description available)

    our solution was:

    - perl -pi -e 's/\bsarge\b/woody/g' /etc/apt/sources.list
    - apt-get update && apt-get upgrade
    - apt-get remove postgresql
    - perl -pi -e 's/\bwoody\b/sarge/g' /etc/apt/sources.list
    - apt-get update && apt-get dist-upgrade
    - apt-get install postgresql

    hoo boy!

    our main suspect, for what caused this, is US, of course (pebkac
    and ID-10-T come to mind). but we're not really sure. just in
    case we're not the only ones, thought we'd send a flare...

    -- 
    I use Debian/GNU Linux version 3.0;
    Linux boss 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i586 unknown
     
    DEBIAN NEWBIE TIP #106 from Joost Kooij <joost@topaz.mdcc.cx>
    :
    Wondering HOW TO GET CPAN MODULES FOR PERL THAT ARE
    DEBIAN-FRIENDLY? Many perl modules are already Debianized:
    	apt-get install lib<MODULE>-perl
    	apt-get install libdbi-perl libmd5-perl libmime-base64-perl
    To recover from using CPAN installs directly, reinstall all the
    perl debs on your system.  If you use the --reinstall option to
    apt-get, it is almost easy, even.
      To create Debian-friendly *.deb packages from Perl modules,
    	apt-get install dh-perl-make
    and then you can build your own.
    Also see http://newbieDoc.sourceForge.net/ ...
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Mike Chandler: "Re: OT: Re: how to start jbidwatcher"

    Relevant Pages

    • Re: apt-get problems.
      ... >apt-get, lovely tool. ... unrelated to the program you are trying to install or upgrade, ... packages which depend on the package you have asked to remove. ... printer related kde app and much of kde itself just by hovering the ...
      (Debian-User)
    • Re: Updates SOLVED!
      ... Putting Synaptic to one side, and after having done the apt-get update, ... problems with the vlc package, ... Then an apt-get install vlc may have printed out some usefull info. ... We've already confirmed that if you originally got vlc from freshrpms, the maintainer should be shown as Matthias Saou, so the packages above should also show him as the maintainer. ...
      (Fedora)
    • Package installation errors
      ... #apt-get upgrade ... You might want to run 'apt-get -f install' to correct these: ... The following packages have unmet dependencies: ... Try 'apt-get -f install' with no packages. ...
      (Debian-User)
    • Re: RH 9.0, Putting Samba on Linux with RPM?
      ... If not then, ask them to assist you in upgrading the RHL9 packages, you ... the apt-get /etc/apt/sources.list file is already configured to use the ... This command will update your install RPM packages to the latest ones ...
      (linux.redhat.misc)
    • Apt-get broken dependencies
      ... gforge-ldap-openldap because they depend on postgresql which was removed first. ... even apt-get -f remove doesn't fix the problem because it attempts to INSTALL ... Why is it impossible to REMOVE packages which depend on packages that are not present? ... This would be something I would just ignore, except NOW apt-get will not install ANY new software because of the broken dependencies. ...
      (Debian-User)