package snapd 2.22.2~14.04 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1664377 reported by Robert Anders
104
This bug affects 22 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Invalid
High
kajal alam

Bug Description

appeared during update to ubuntu 16.04.2

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: snapd 2.22.2~14.04
ProcVersionSignature: Ubuntu 4.4.0-62.83-generic 4.4.40
Uname: Linux 4.4.0-62-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Mon Feb 13 22:36:15 2017
DuplicateSignature:
 package:snapd:2.22.2~14.04
 Setting up snapd (2.22.2~14.04) ...
 Failed to execute operation: No such file or directory
 dpkg: error processing package snapd (--configure):
  subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2017-02-13 (0 days ago)
InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.19
SourcePackage: snapd
Title: package snapd 2.22.2~14.04 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to xenial on 2017-02-13 (0 days ago)

Revision history for this message
Robert Anders (robert-e) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report. You're saying it happened during an update to 14.04.2 but your system seems to be running 16.04. Could you please clarify the versions of the OS and how this bug occurred (upgrade from 14.04 to 16.04 ?)

Thanks

Changed in snapd (Ubuntu):
status: New → Incomplete
Revision history for this message
Michael Vogt (mvo) wrote :

Thnaks for your bugreport! Could you please attach /var/log/dist-upgrade/* and also /etc/apt/sources.list to this bugreport?

Robert Anders (robert-e)
description: updated
Revision history for this message
Robert Anders (robert-e) wrote :

Sorry, the bug naturally appeared while updating from 14.04 (which i still had as an installation medium) to 16.04.2.

Requested files are attached.

Revision history for this message
Robert Anders (robert-e) wrote :
Revision history for this message
Robert Anders (robert-e) wrote :
Revision history for this message
Robert Anders (robert-e) wrote :
Revision history for this message
Robert Anders (robert-e) wrote :
Revision history for this message
Robert Anders (robert-e) wrote :
Revision history for this message
Robert Anders (robert-e) wrote :
Revision history for this message
Robert Anders (robert-e) wrote :

temp.log in /var/log/dist-update is empty and therefore not included

Revision history for this message
Mark Shuttleworth (sabdfl) wrote :

Good catch, thank you!

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for the logs. Setting to confirmed and raising the importance due to the frequency on errors.u.c.

Changed in snapd (Ubuntu):
status: Incomplete → Confirmed
importance: Undecided → High
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

This problem is reproducible by installing snapd from 14.04 on Xenial or higher. This happened on your system because you have trusty-proposed enabled in sources.list on a Xenial system. When an SRU of snap is released to trusty-proposed, its version is higher than snapd in xenial-updates and it's pulled on next system update. It is not recommended to enable proposed by default and install all of it unless you really know that it is what you want.

You can fix this situation by removing proposed from /etc/apt/sources.list and installing snapd corresponding to your release. In this case xenial-updates.

I'm closing this report because it is not a supported configuration. Don't hesitate to submit any bug you may find.

Changed in snapd (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1664377] Re: package snapd 2.22.2~14.04 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Why would the trust package of snapd have a higher version than the
Xenial one? That's unexpected, to me, so I assume there is a rationale,
but it seems very odd. I would have expected that if I had both trusty
and xenial archives in place for some (crazy) reason, that xenial
packages would have higher versions.

Mark

kajal alam (kajal8698)
Changed in snapd (Ubuntu):
assignee: nobody → kajal alam (kajal8698)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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