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

Re: problem updating postgresql package



On Sat, 2003-09-06 at 00:35, Malcolm Warren wrote:
> Got the following message updating postgresql to 7.3.2
> 
> Any ideas?
> 
> Unpacking postgresql (from .../postgresql_7.3.2r1-5_i386.deb) ...
> dpkg: error processing 
> /var/cache/apt/archives/postgresql_7.3.2r1-5_i386.deb (--unpack):
>   subprocess pre-installation script returned error exit status 128
> Errors were encountered while processing:
>   /var/cache/apt/archives/postgresql_7.3.2r1-5_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> 
> Any help welcome.

I need to see what the error was, so you must modify the preinst
script in the package and put a trace in it.  This is a bit complicated
since it is the preinstallation script that is failing and it is only in
the deb:

# mkdir /tmp/pg
# cd /tmp
# ar x /var/cache/apt/archives/postgresql_7.3.2r1-5_i386.deb control.tar.gz
# cd /tmp/pg
# tar xzf ../control.tar.gz
# vi ./preinst
Add the line "set -x" at line 2 of the script and file it.
# tar czf ../control.tar.gz .
# cd ..
# ar r /var/cache/apt/archives/postgresql_7.3.2r1-5_i386.deb control.tar.gz
# dpkg -i /var/cache/apt/archives/postgresql_7.3.2r1-5_i386.deb

Now when it fails, we should know roughly what it was trying to do.

(FYI, 7.3.4 is now in unstable.)

-- 
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
                 ========================================
     "Behold, I stand at the door, and knock; if any man 
      hear my voice, and open the door, I will come in to 
      him, and will sup with him, and he with me."       
                                   Revelation 3:20 



Reply to: