package postgresql-client-9.3 9.3.2-1ubuntu1 failed to upgrade: alternative pg_basebackup.1.gz can't be slave of psql.1.gz

Bug #1270597 reported by Filip Salda
116
This bug affects 27 people
Affects Status Importance Assigned to Milestone
postgresql-common (Ubuntu)
Fix Released
High
Martin Pitt
Trusty
Fix Released
High
Martin Pitt

Bug Description

crashed during upgrading from Ubuntu 12.04

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: postgresql-client-9.3 9.3.2-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-58.88-generic-pae 3.2.53
Uname: Linux 3.2.0-58-generic-pae i686
NonfreeKernelModules: wl
ApportVersion: 2.13.1-0ubuntu1
Architecture: i386
Date: Sun Jan 19 16:27:59 2014
DuplicateSignature: package:postgresql-client-9.3:9.3.2-1ubuntu1:ErrorMessage: subprocess installed post-installation script returned error exit status 2
EcryptfsInUse: Yes
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationDate: Installed on 2013-08-22 (150 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423.2)
SourcePackage: postgresql-9.3
Title: package postgresql-client-9.3 9.3.2-1ubuntu1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: Upgraded to trusty on 2014-01-19 (0 days ago)

Revision history for this message
Filip Salda (filip-salda) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in postgresql-9.3 (Ubuntu):
status: New → Confirmed
Changed in postgresql-9.3 (Ubuntu):
importance: Undecided → High
Revision history for this message
Martin Pitt (pitti) wrote :

Error message:

Setting up postgresql-client-9.3 (9.3.2-1ubuntu1) ...
update-alternatives: error: alternative pg_basebackup.1.gz can't be slave of psql.1.gz: it is a slave of postmaster.1.gz

This is also reproduced in the automatic upgrade tests:

  http://d-jenkins.ubuntu-ci:8080/view/Upgrade/job/upgrade-ubuntu-precise-trusty-server-tasks-amd64/25/artifact/results/apt-term.log

summary: - package postgresql-client-9.3 9.3.2-1ubuntu1 failed to install/upgrade:
- ErrorMessage: subprocess installed post-installation script returned
- error exit status 2
+ package postgresql-client-9.3 9.3.2-1ubuntu1 failed to upgrade:
+ alternative pg_basebackup.1.gz can't be slave of psql.1.gz
tags: added: precise2trusty qa-daily-testing upgrade
affects: postgresql-9.3 (Ubuntu) → postgresql-common (Ubuntu)
Changed in postgresql-common (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
status: Confirmed → In Progress
Changed in postgresql-common (Ubuntu Trusty):
milestone: none → ubuntu-14.04-beta-1
Martin Pitt (pitti)
Changed in postgresql-common (Ubuntu Trusty):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postgresql-common - 153bzr1

---------------
postgresql-common (153bzr1) trusty; urgency=medium

  Upload current Debian packaging git to fix upgrade failure from precise.

  * debian/postgresql-common.preinst: Drop obsolete upgrade migration.
  * debian/maintscripts-functions, _link_manpages(): The move of pg_basebackup
    from server to client still affects upgrades from -9.1 to -9.3. Place the
    upgrade fix here instead of postgresql-9.1.preinst (which does not exist
    any more now). (LP: #1270597)
 -- Martin Pitt <email address hidden> Wed, 12 Feb 2014 13:44:42 +0100

Changed in postgresql-common (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Martin (napfi) wrote :

It seems there is a regression in postgresql-common version 154. I currently experience exactly the same after a dist-upgrade to trusty. The dist-upgrade process already reported the failure. So I did:

- purge all postgresql packages (except postgresql-common)
- select postgresql and postgresql-client version 9.3+154 again

I still get the error reported above.

Revision history for this message
cracket (cracket) wrote :

3 years have passed and bug is still impacting upgrade. As I understand 14.04 is still supported and bug should be fixed once again - hope finally now.

Status should be still Not Fixed

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.