package postgresql-9.1 9.1.14-0ubuntu0.12.04 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1357064 reported by Rasool on 2014-08-14
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ssl-cert (Ubuntu)
Undecided
Unassigned

Bug Description

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libossp-uuid16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  postgresql-common
Suggested packages:
  oidentd ident-server locales-all
The following NEW packages will be installed:
  postgresql-9.1 postgresql-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,419 kB of archives.
After this operation, 11.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously unselected package postgresql-common.
(Reading database ... 260208 files and directories currently installed.)
Unpacking postgresql-common (from .../postgresql-common_129ubuntu1_all.deb) ...
Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common'
Selecting previously unselected package postgresql-9.1.
Unpacking postgresql-9.1 (from .../postgresql-9.1_9.1.14-0ubuntu0.12.04_i386.deb) ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up postgresql-common (129ubuntu1) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
  en_us
 * Starting PostgreSQL 9.1 database server [ OK ]
Setting up postgresql-9.1 (9.1.14-0ubuntu0.12.04) ...
Creating new cluster (configuration: /etc/postgresql/9.1/main, data: /var/lib/postgresql/9.1/main)...
Moving configuration file /var/lib/postgresql/9.1/main/postgresql.conf to /etc/postgresql/9.1/main...
Moving configuration file /var/lib/postgresql/9.1/main/pg_hba.conf to /etc/postgresql/9.1/main...
Moving configuration file /var/lib/postgresql/9.1/main/pg_ident.conf to /etc/postgresql/9.1/main...
Configuring postgresql.conf to use port 5432...
update-alternatives: using /usr/share/postgresql/9.1/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode.
 * Starting PostgreSQL 9.1 database server * The PostgreSQL server failed to start. Please check the log output.
                                                                         [fail]
invoke-rc.d: initscript postgresql, action "start" failed.
dpkg: error processing postgresql-9.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 postgresql-9.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: postgresql-9.1 9.1.14-0ubuntu0.12.04
ProcVersionSignature: Ubuntu 3.2.0-67.101-generic-pae 3.2.60
Uname: Linux 3.2.0-67-generic-pae i686
ApportVersion: 2.0.1-0ubuntu17.6
AptOrdering: postgresql-9.1: Configure
Architecture: i386
Date: Fri Aug 15 01:48:54 2014
DuplicateSignature: package:postgresql-9.1:9.1.14-0ubuntu0.12.04:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
MarkForUpload: True
SourcePackage: postgresql-9.1
Title: package postgresql-9.1 9.1.14-0ubuntu0.12.04 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Rasool (rasool-sb) wrote :
tags: removed: need-duplicate-check
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in postgresql-9.1 (Ubuntu):
status: New → Confirmed
Knimmet (temmink) wrote :

I have exactly the same problem after upgrading my ubuntu version (12.04 LTS).
I'm in a solution urgent.

Martin Pitt (pitti) wrote :

The log says it all:

  private key file "server.key" has group or world access

Something has messed up the permissions of /etc/ssl/private/ssl-cert-snakeoil.key (which the server.key symlink points to). Please fix it back to 640 root:ssl-cert

affects: postgresql-9.1 (Ubuntu) → ssl-cert (Ubuntu)
Changed in ssl-cert (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers