postgres 8.3 install crashed

Bug #365464 reported by Ladislav Prskavec
2
Affects Status Importance Assigned to Milestone
postgresql-8.3 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 9.04

Binary package hint: postgresql-8.3

apt-get install postgresql
Reading package lists... Done
Building dependency tree
Reading state information... Done
postgresql is already the newest version.
The following packages were automatically installed and are no longer required:
  resolvconf
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up postgresql-8.3 (8.3.7-1) ...
 * Starting PostgreSQL 8.3 database server * The PostgreSQL server failed to start. Please check the log output:
2009-04-23 11:53:42 CEST LOG: could not load root certificate file "root.crt": no SSL error reported
2009-04-23 11:53:42 CEST DETAIL: Will not verify client certificates.
2009-04-23 11:53:52 CEST LOG: could not translate host name "localhost", service "5432" to address: Name or service not known
2009-04-23 11:53:52 CEST WARNING: could not create listen socket for "localhost"
2009-04-23 11:53:52 CEST FATAL: could not create any TCP/IP sockets
                                                                         [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 1
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)

description: updated
Revision history for this message
Leonel Nunez (leonelnunez) wrote :

Seems like you don't have a localhost entry on your /etc/hosts

Please check you have a

127.0.0.1 yourmachine localhost.localdomain localhost

If I remove my localhost entry from /etc/hosts Comes the same error you describe

Revision history for this message
Ladislav Prskavec (abtris) wrote : Re: [Bug 365464] Re: postgres 8.3 install crashed

Leonel Nunez wrote:
> Seems like you don't have a localhost entry on your /etc/hosts
>
> Please check you have a
>
> 127.0.0.1 yourmachine localhost.localdomain localhost
>
> If I remove my localhost entry from /etc/hosts Comes the same error you
> describe
>
>
I have in /etc/hosts this

127.0.0.1 prskavecl-laptop localhost www

--
Ing. Ladislav Prskavec
E-mail: <email address hidden>
Tel. / Phone: +420 604 419 262
Blog: http://blog.prskavec.net
LinkedIn: http://www.linkedin.com/in/ladislavprskavec

Revision history for this message
Leonel Nunez (leonelnunez) wrote :

Can you remove the www at the end and add a new line

127.0.0.1 www
so there will be 2 entrys 127.0.0.1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.