Sorry for butting in -- I am getting a very similar error log to this, but this time after a complete purge and reinstall. I started having the problem after upgrading last time to the latest postgres 8.1.4-2 package (amd64) and I was hoping that a complete purge/reinstall would do the trick. (Though I did try installing this on another machine which has never had postgresql-8.1 installed before and it succeeded without error...)
This is the log: *** [gromit] # apt-get install postgresql-8.1 Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: postgresql-client-8.1 postgresql-client-common postgresql-common Suggested packages: oidentd ident-server postgresql-doc-8.1 The following NEW packages will be installed postgresql-8.1 postgresql-client-8.1 postgresql-client-common postgresql-common 0 upgraded, 4 newly installed, 0 to remove and 5 not upgraded. Need to get 0B/5923kB of archives. After unpacking 17.9MB of additional disk space will be used. Do you want to continue [Y/n]? y Preconfiguring packages ... Selecting previously deselected package postgresql-client-common. (Reading database ... 63970 files and directories currently installed.) Unpacking postgresql-client-common (from .../postgresql-client-common_57_all.deb) ... Selecting previously deselected package postgresql-client-8.1. Unpacking postgresql-client-8.1 (from .../postgresql-client-8.1_8.1.4-2_amd64.deb) ... Selecting previously deselected package postgresql-common. Unpacking postgresql-common (from .../postgresql-common_57_all.deb) ... Selecting previously deselected package postgresql-8.1. Unpacking postgresql-8.1 (from .../postgresql-8.1_8.1.4-2_amd64.deb) ... Setting up postgresql-client-common (57) ... Setting up postgresql-client-8.1 (8.1.4-2) ... Setting up postgresql-common (57) ... The user `postgres' is already a member of `ssl-cert'. Setting up postgresql-8.1 (8.1.4-2) ... Creating new cluster (configuration: /etc/postgresql/8.1/main, data: /var/lib/postgresql/8.1/main)... Moving configuration file /var/lib/postgresql/8.1/main/pg_hba.conf to /etc/postgresql/8.1/main... Moving configuration file /var/lib/postgresql/8.1/main/pg_ident.conf to /etc/postgresql/8.1/main... Moving configuration file /var/lib/postgresql/8.1/main/postgresql.conf to /etc/postgresql/8.1/main... Configuring postgresql.conf to use port 5432... Starting PostgreSQL 8.1 database server: main* Error: Could not parse locale out of pg_controldata output failed! invoke-rc.d: initscript postgresql-8.1, action "start" failed. dpkg: error processing postgresql-8.1 (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: postgresql-8.1 E: Sub-process /usr/bin/dpkg returned an error code (1) [gromit] # *** I then tried moving the /etc/postgresql directories out of the way as you suggested to Sumit, then executing pg_createcluster 8.1 main --start. This succeeded, but I still cannot start postgresql afterwards. I think the reason for the problem (from my limited understanding of Perl) might be something to do with the get_cluster_locales function -- the 'open' seems to be failing and is therefore (undef, undef) which I think is causing the error message. However, if I hard code the locales in then I get a further error message afterwards: Starting PostgreSQL 8.1 database server: main* Use of uninitialized value in concatenation (.) or string at /usr/bin/pg_ctlcluster line 286. Error: could not exec /usr/lib/postgresql/8.1/bin/pg_ctl start -D /var/lib/postgresql/8.1/main -l /var/log/postgresql/postgresql-8.1-main.log -s -o -c unix_socket_directory="/var/run/postgresql" -c config_file="/etc/postgresql/8.1/main/postgresql.conf" -c hba_file="/etc/postgresql/8.1/main/pg_hba.conf" -c ident_file="/etc/postgresql/8.1/main/pg_ident.conf" -c external_pid_file="/var/run/postgresql/8.1-main.pid" : failed! HTH Gary H -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]