pritesh@pritesh-laptop:/etc/postgresql/8.3/main$ sudo apt-get install postgresql sudo: cannot get working directory Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: gcj-4.3-base libgcj9-0 postgis libwxgtk2.8-0 proj libgeos-3.0.0 libossp-uuid15 libgcj-common libwxbase2.8-0 libgeos-c1 libgcj9-jar libruby1.8 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: postgresql-8.3 postgresql-client-8.3 postgresql-client-common postgresql-common Suggested packages: oidentd ident-server postgresql-doc-8.3 The following NEW packages will be installed: postgresql postgresql-8.3 postgresql-client-8.3 postgresql-client-common postgresql-common 0 upgraded, 5 newly installed, 0 to remove and 350 not upgraded. Need to get 0B/4778kB of archives. After this operation, 20.0MB of additional disk space will be used. Do you want to continue [Y/n]? y Preconfiguring packages ... shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Selecting previously deselected package postgresql-client-common. (Reading database ... 123663 files and directories currently installed.) Unpacking postgresql-client-common (from .../postgresql-client-common_90_all.deb) ... Selecting previously deselected package postgresql-client-8.3. Unpacking postgresql-client-8.3 (from .../postgresql-client-8.3_8.3.9-0ubuntu8.10_i386.deb) ... Selecting previously deselected package postgresql-common. Unpacking postgresql-common (from .../postgresql-common_90_all.deb) ... Selecting previously deselected package postgresql-8.3. Unpacking postgresql-8.3 (from .../postgresql-8.3_8.3.9-0ubuntu8.10_i386.deb) ... Selecting previously deselected package postgresql. Unpacking postgresql (from .../postgresql_8.3.9-0ubuntu8.10_all.deb) ... Processing triggers for man-db ... Setting up postgresql-client-common (90) ... Setting up postgresql-client-8.3 (8.3.9-0ubuntu8.10) ... Setting up postgresql-common (90) ... supported_versions: WARNING: Unknown Ubuntu release: 8.10 Setting up postgresql-8.3 (8.3.9-0ubuntu8.10) ... Creating new cluster (configuration: /etc/postgresql/8.3/main, data: /var/lib/postgresql/8.3/main)... Moving configuration file /var/lib/postgresql/8.3/main/postgresql.conf to /etc/postgresql/8.3/main... Moving configuration file /var/lib/postgresql/8.3/main/pg_hba.conf to /etc/postgresql/8.3/main... Moving configuration file /var/lib/postgresql/8.3/main/pg_ident.conf to /etc/postgresql/8.3/main... Configuring postgresql.conf to use port 5432... * Starting PostgreSQL 8.3 database server * Insecure directory in $ENV{PATH} while running with -T switch at /usr/share/postgresql-common/PgCommon.pm line 654. [fail] invoke-rc.d: initscript postgresql-8.3, action "start" failed. dpkg: error processing postgresql-8.3 (--configure): subprocess post-installation script returned error exit status 255 dpkg: dependency problems prevent configuration of postgresql: postgresql depends on postgresql-8.3; however: Package postgresql-8.3 is not configured yet. dpkg: error processing postgresql (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: postgresql-8.3 postgresql E: Sub-process /usr/bin/dpkg returned an error code (1)