[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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/ ...



Reply to: