Hi,

i am encountering the same problems as described in this thread.

following your advice to alter the preinst script, i receive this output:
(my locale settings are german)

# dpkg -i /var/cache/apt/archives/postgresql_7.3.2r1-5_i386.deb
(Lese Datenbank ... 17012 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke postgresql (aus .../postgresql_7.3.2r1-5_i386.deb) ...
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/tmp.ci/preinst install 7.2.1-2woody4
dpkg: Fehler beim Bearbeiten von /var/cache/apt/archives/postgresql_7.3.2r1-5_i386.deb 
(--install):
 Unterprozess pre-installation script gab den Fehlerwert 128 zurück
Fehler traten auf beim Bearbeiten von:
 /var/cache/apt/archives/postgresql_7.3.2r1-5_i386.deb

Is this helpful for anyone?




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                                [EMAIL PROTECTED]
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 



_______________________
Hofheinz Netzwerkdesign
Martin Hofheinz
Mathiasweg 51
D-57074 Siegen

Fon:                  (02 71) 3 86 57 32
Fax:                  (0 12 12) 5 106 97 198

E-Mail:               [EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to