Public bug reported:

Postgresql-9.1 installation failed on a precise lxc container.

Here's the relevant info:
LSB release:

fcorrea@test:~: sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.3 LTS
Release:        12.04
Codename:       precise


Package version:

fcorrea@test:~: sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.3 LTS
Release:        12.04
Codename:       precise


Command line:

fcorrea@test:~: sudo apt-get install postgresql-9.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libasn1-8-heimdal libgcrypt11 libgnutls26 libgpg-error0 libgssapi3-heimdal 
libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal 
libhx509-5-heimdal libkrb5-26-heimdal libldap-2.4-2 libp11-kit0 libpq5
  libroken18-heimdal libsasl2-2 libsasl2-modules libtasn1-3 libwind0-heimdal 
libxml2 openssl postgresql-client-9.1 postgresql-client-common 
postgresql-common sgml-base ssl-cert xml-core
Suggested packages:
  rng-tools gnutls-bin libsasl2-modules-otp libsasl2-modules-ldap 
libsasl2-modules-sql libsasl2-modules-gssapi-mit 
libsasl2-modules-gssapi-heimdal ca-certificates oidentd ident-server locales-all
  postgresql-doc-9.1 sgml-base-doc openssl-blacklist debhelper
The following NEW packages will be installed:
  libasn1-8-heimdal libgcrypt11 libgnutls26 libgpg-error0 libgssapi3-heimdal 
libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal 
libhx509-5-heimdal libkrb5-26-heimdal libldap-2.4-2 libp11-kit0 libpq5
  libroken18-heimdal libsasl2-2 libsasl2-modules libtasn1-3 libwind0-heimdal 
libxml2 openssl postgresql-9.1 postgresql-client-9.1 postgresql-client-common 
postgresql-common sgml-base ssl-cert xml-core
0 upgraded, 27 newly installed, 0 to remove and 49 not upgraded.
Need to get 7.058 kB/8.834 kB of archives.
After this operation, 23,7 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main libtasn1-3 amd64 
2.10-1ubuntu1.2 [43,7 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main libgnutls26 amd64 
2.12.14-5ubuntu3.8 [459 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main libxml2 amd64 
2.7.8.dfsg-5.1ubuntu4.9 [673 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main openssl amd64 
1.0.1-4ubuntu5.17 [523 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main libpq5 amd64 
9.1.14-0ubuntu0.12.04 [90,1 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ precise-updates/main 
postgresql-client-9.1 amd64 9.1.14-0ubuntu0.12.04 [959 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ precise-updates/main postgresql-9.1 
amd64 9.1.14-0ubuntu0.12.04 [4.310 kB]
Fetched 7.058 kB in 11s (634 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libroken18-heimdal.
(Reading database ... 12173 files and directories currently installed.)
Unpacking libroken18-heimdal (from 
.../libroken18-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ...
Selecting previously unselected package libasn1-8-heimdal.
Unpacking libasn1-8-heimdal (from 
.../libasn1-8-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ...
Selecting previously unselected package libgpg-error0.
Unpacking libgpg-error0 (from .../libgpg-error0_1.10-2ubuntu1_amd64.deb) ...
Selecting previously unselected package libgcrypt11.
Unpacking libgcrypt11 (from .../libgcrypt11_1.5.0-3ubuntu0.2_amd64.deb) ...
Selecting previously unselected package libp11-kit0.
Unpacking libp11-kit0 (from .../libp11-kit0_0.12-2ubuntu1_amd64.deb) ...
Selecting previously unselected package libtasn1-3.
Unpacking libtasn1-3 (from .../libtasn1-3_2.10-1ubuntu1.2_amd64.deb) ...
Selecting previously unselected package libgnutls26.
Unpacking libgnutls26 (from .../libgnutls26_2.12.14-5ubuntu3.8_amd64.deb) ...
Selecting previously unselected package libhcrypto4-heimdal.
Unpacking libhcrypto4-heimdal (from 
.../libhcrypto4-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ...
Selecting previously unselected package libheimbase1-heimdal.
Unpacking libheimbase1-heimdal (from 
.../libheimbase1-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ...
Selecting previously unselected package libwind0-heimdal.
Unpacking libwind0-heimdal (from 
.../libwind0-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ...
Selecting previously unselected package libhx509-5-heimdal.
Unpacking libhx509-5-heimdal (from 
.../libhx509-5-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ...
Selecting previously unselected package libkrb5-26-heimdal.
Unpacking libkrb5-26-heimdal (from 
.../libkrb5-26-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ...
Selecting previously unselected package libheimntlm0-heimdal.
Unpacking libheimntlm0-heimdal (from 
.../libheimntlm0-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ...
Selecting previously unselected package libgssapi3-heimdal.
Unpacking libgssapi3-heimdal (from 
.../libgssapi3-heimdal_1.6~git20120311.dfsg.1-2ubuntu0.1_amd64.deb) ...
Selecting previously unselected package libsasl2-2.
Unpacking libsasl2-2 (from .../libsasl2-2_2.1.25.dfsg1-3ubuntu0.1_amd64.deb) ...
Selecting previously unselected package libldap-2.4-2.
Unpacking libldap-2.4-2 (from .../libldap-2.4-2_2.4.28-1.1ubuntu4.4_amd64.deb) 
...
Selecting previously unselected package libxml2.
Unpacking libxml2 (from .../libxml2_2.7.8.dfsg-5.1ubuntu4.9_amd64.deb) ...
Selecting previously unselected package libsasl2-modules.
Unpacking libsasl2-modules (from 
.../libsasl2-modules_2.1.25.dfsg1-3ubuntu0.1_amd64.deb) ...
Selecting previously unselected package openssl.
Unpacking openssl (from .../openssl_1.0.1-4ubuntu5.17_amd64.deb) ...
Selecting previously unselected package sgml-base.
Unpacking sgml-base (from .../sgml-base_1.26+nmu1ubuntu1_all.deb) ...
Selecting previously unselected package xml-core.
Unpacking xml-core (from .../archives/xml-core_0.13_all.deb) ...
Selecting previously unselected package libpq5.
Unpacking libpq5 (from .../libpq5_9.1.14-0ubuntu0.12.04_amd64.deb) ...
Selecting previously unselected package postgresql-client-common.
Unpacking postgresql-client-common (from 
.../postgresql-client-common_129ubuntu1_all.deb) ...
Selecting previously unselected package postgresql-client-9.1.
Unpacking postgresql-client-9.1 (from 
.../postgresql-client-9.1_9.1.14-0ubuntu0.12.04_amd64.deb) ...
Selecting previously unselected package ssl-cert.
Unpacking ssl-cert (from .../ssl-cert_1.0.28ubuntu0.1_all.deb) ...
Selecting previously unselected package postgresql-common.
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'
dpkg: unrecoverable fatal error, aborting:
 failed to fstat previous diversions file: No such file or directory
E: Sub-process /usr/bin/dpkg returned an error code (2)


Installation proceeds normally when 'sudo dpkg --configure -a' is issued.

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362306

Title:
  failed to fstat previous diversions file: No such file or directory

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to