Re: upgrading postgres on unstable
On Sat, 2003-10-11 at 06:39, Monique Y. Herman wrote:
> home:/var/lib/dpkg/info# apt-get install postgresql
> Preconfiguring packages ...
> (Reading database ... 76051 files and directories currently installed.)
> Unpacking postgresql (from .../postgresql_7.3.4-6_i386.deb) ...
> dpkg: error processing /var/cache/apt/archives/postgresql_7.3.4-6_i386.deb
> subprocess pre-installation script returned error exit status 20
> So here's my question. How do I figure out what "exit status 20" means?
> I d/l'd the source and grepped around in preinst.in, but I couldn't
> figure it out.
First, try installing after doing:
# export DEBCONF_DEBUG=developer
because the value of the error code suggests a debconf error. If that
doesn't help, get the preinst script as below; add set -x at line 2 and
run it (as root). Let me know where it stops. (You may have to extract
the debconf files and load them into the debconf database - see
debconf-devel(7) in the debugging section.)
> Secondarily, is there a place that debian stores the currently-used
> install files so that I don't have to download the whole source package
> just to find them? It seems like /var/lib/dpkg/info only has this sort
> of thing for fully-installed packages.
You can extract it from the deb file:
ar p /var/cache/apt/archives/postgresql_7.3.4-6_i386.deb control.tar.gz
| tar xzf - ./preinst
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
"I waited patiently for the LORD; and he inclined unto
me, and heard my cry. He brought me up also out of an
horrible pit, out of the miry clay, and set my feet
upon a rock, and established my goings."