← Back to team overview

desktop-packages team mailing list archive

[Bug 1428738] [NEW] update of postgresql-common fails, causes all dep packages to also fail update

 

Public bug reported:

Did a simple apt-get update and apt-get dist-upgrade this morning.
postgresql-common failed to update and this caused other related
packages to not be configured.  Here is the console output: (NOTE: this
is the second attempt after the first try failed).

bladernr@klaatu:~$ sudo apt-get dist-upgrade
[sudo] password for bladernr: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libtcl8.5 linux-image-3.11.0-18-generic linux-image-3.13.0-24-generic
  linux-image-3.13.0-26-generic linux-image-3.13.0-29-generic
  linux-image-3.13.0-32-generic linux-image-3.13.0-36-generic
  linux-image-3.13.0-38-generic linux-image-extra-3.11.0-18-generic
  linux-image-extra-3.13.0-24-generic linux-image-extra-3.13.0-26-generic
  linux-image-extra-3.13.0-29-generic linux-image-extra-3.13.0-32-generic
  linux-image-extra-3.13.0-36-generic linux-image-extra-3.13.0-38-generic
  mgetty tcl8.5
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up postgresql-common (154ubuntu1) ...
 * Starting PostgreSQL 9.3 database server                                       * Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
The PostgreSQL server failed to start. Please check the log output.
                                                                         [fail]
invoke-rc.d: initscript postgresql, action "start" failed.
dpkg: error processing package postgresql-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-9.3:
 postgresql-9.3 depends on postgresql-common (>= 142~); however:
  Package postgresql-common is not configured yet.

dpkg: error processing package postgresql-9.3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql:
 postgresql depends on postgresql-9.3; however:
  Package postgresql-9.3 is not configured yet.

dpkg: error processing package postgresql (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                    Errors were encountered while processing:
 postgresql-common
 postgresql-9.3
 postgresql
E: Sub-process /usr/bin/dpkg returned an error code (1)


Here are the last few bits from /var/log/apt/history.log:

postgresql-client-common:amd64 (154, 154ubuntu1), ntpdate:amd64 (4.2.6.p5+dfsg-3ubuntu2.14.04.1, 4.2.6.p5+dfsg-3ubuntu2.14.04.2), linux-generic:amd64 (3.13.0.45.52, 3.13.0.46.53), postgresql:amd64 (9.3+154, 9.3+154ubuntu1)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2015-03-05  00:15:12

Start-Date: 2015-03-05  11:37:38
Commandline: apt-get dist-upgrade
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2015-03-05  11:38:13


and this is the contents of /var/log/postgresql:

bladernr@klaatu:~$ sudo ls -l /var/log/postgresql 
total 8
-rw-r----- 1 postgres adm   0 Jan 20 07:39 postgresql-9.3-main.log
-rw-r----- 1 postgres adm 291 Jan 20 07:39 postgresql-9.3-main.log.1
-rw-r----- 1 postgres adm 224 Jan  2 01:29 postgresql-9.3-main.log.2.gz

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: postgresql-common 154ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-45.74-generic 3.13.11-ckt13
Uname: Linux 3.13.0-45-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.7
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Mar  5 11:39:19 2015
PackageArchitecture: all
SourcePackage: postgresql-common
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: postgresql-common (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug package-from-proposed trusty

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to postgresql-common in Ubuntu.
https://bugs.launchpad.net/bugs/1428738

Title:
  update of postgresql-common fails, causes all dep packages to also
  fail update

Status in postgresql-common package in Ubuntu:
  New

Bug description:
  Did a simple apt-get update and apt-get dist-upgrade this morning.
  postgresql-common failed to update and this caused other related
  packages to not be configured.  Here is the console output: (NOTE:
  this is the second attempt after the first try failed).

  bladernr@klaatu:~$ sudo apt-get dist-upgrade
  [sudo] password for bladernr: 
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Calculating upgrade... Done
  The following packages were automatically installed and are no longer required:
    libtcl8.5 linux-image-3.11.0-18-generic linux-image-3.13.0-24-generic
    linux-image-3.13.0-26-generic linux-image-3.13.0-29-generic
    linux-image-3.13.0-32-generic linux-image-3.13.0-36-generic
    linux-image-3.13.0-38-generic linux-image-extra-3.11.0-18-generic
    linux-image-extra-3.13.0-24-generic linux-image-extra-3.13.0-26-generic
    linux-image-extra-3.13.0-29-generic linux-image-extra-3.13.0-32-generic
    linux-image-extra-3.13.0-36-generic linux-image-extra-3.13.0-38-generic
    mgetty tcl8.5
  Use 'apt-get autoremove' to remove them.
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  3 not fully installed or removed.
  After this operation, 0 B of additional disk space will be used.
  Do you want to continue? [Y/n] y
  Setting up postgresql-common (154ubuntu1) ...
   * Starting PostgreSQL 9.3 database server                                       * Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  Use of uninitialized value $logsize in numeric gt (>) at /usr/bin/pg_ctlcluster line 224.
  The PostgreSQL server failed to start. Please check the log output.
                                                                           [fail]
  invoke-rc.d: initscript postgresql, action "start" failed.
  dpkg: error processing package postgresql-common (--configure):
   subprocess installed post-installation script returned error exit status 1
  dpkg: dependency problems prevent configuration of postgresql-9.3:
   postgresql-9.3 depends on postgresql-common (>= 142~); however:
    Package postgresql-common is not configured yet.

  dpkg: error processing package postgresql-9.3 (--configure):
   dependency problems - leaving unconfigured
  dpkg: dependency problems prevent configuration of postgresql:
   postgresql depends on postgresql-9.3; however:
    Package postgresql-9.3 is not configured yet.

  dpkg: error processing package postgresql (--configure):
   dependency problems - leaving unconfigured
  No apport report written because the error message indicates its a followup error from a previous failure.
                            No apport report written because the error message indicates its a followup error from a previous failure.
                                                      Errors were encountered while processing:
   postgresql-common
   postgresql-9.3
   postgresql
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  
  Here are the last few bits from /var/log/apt/history.log:

  postgresql-client-common:amd64 (154, 154ubuntu1), ntpdate:amd64 (4.2.6.p5+dfsg-3ubuntu2.14.04.1, 4.2.6.p5+dfsg-3ubuntu2.14.04.2), linux-generic:amd64 (3.13.0.45.52, 3.13.0.46.53), postgresql:amd64 (9.3+154, 9.3+154ubuntu1)
  Error: Sub-process /usr/bin/dpkg returned an error code (1)
  End-Date: 2015-03-05  00:15:12

  Start-Date: 2015-03-05  11:37:38
  Commandline: apt-get dist-upgrade
  Error: Sub-process /usr/bin/dpkg returned an error code (1)
  End-Date: 2015-03-05  11:38:13

  
  and this is the contents of /var/log/postgresql:

  bladernr@klaatu:~$ sudo ls -l /var/log/postgresql 
  total 8
  -rw-r----- 1 postgres adm   0 Jan 20 07:39 postgresql-9.3-main.log
  -rw-r----- 1 postgres adm 291 Jan 20 07:39 postgresql-9.3-main.log.1
  -rw-r----- 1 postgres adm 224 Jan  2 01:29 postgresql-9.3-main.log.2.gz

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: postgresql-common 154ubuntu1
  ProcVersionSignature: Ubuntu 3.13.0-45.74-generic 3.13.11-ckt13
  Uname: Linux 3.13.0-45-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.14.1-0ubuntu3.7
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu Mar  5 11:39:19 2015
  PackageArchitecture: all
  SourcePackage: postgresql-common
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/1428738/+subscriptions


Follow ups

References