package snapd 2.35.4~14.04 failed to install/upgrade: new snapd package pre-removal script subprocess returned error exit status 5

Bug #1804938 reported by Jean DEVIERS on 2018-11-24
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
High
Unassigned
snapd (Ubuntu)
Undecided
Unassigned

Bug Description

can't uninstall or update any snap package

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: snapd 2.35.4~14.04
ProcVersionSignature: Ubuntu 4.15.0-39.42-generic 4.15.18
Uname: Linux 4.15.0-39-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
Date: Sat Nov 24 13:30:35 2018
ErrorMessage: new snapd package pre-removal script subprocess returned error exit status 5
InstallationDate: Installed on 2018-07-21 (125 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
Python3Details: /usr/bin/python3.6, Python 3.6.7, python3-minimal, 3.6.7-1~18.04
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2.1
 apt 1.6.6
SourcePackage: snapd
Title: package snapd 2.35.4~14.04 failed to install/upgrade: new snapd package pre-removal script subprocess returned error exit status 5
UpgradeStatus: No upgrade log present (probably fresh install)

Jean DEVIERS (jeandeviers) wrote :
tags: removed: need-duplicate-check
Zygmunt Krynicki (zyga) wrote :

There are no apparmor denials in dmesg.

Looking at dpkg terminal log:

Preparing to unpack .../15-snapd_2.35.5~14.04_amd64.deb ...
Failed to stop snapd.autoimport.service: Unit snapd.autoimport.service not loaded.
Failed to stop snapd.socket: Unit snapd.socket not loaded.
Failed to stop snapd.service: Unit snapd.service not loaded.
dpkg: warning: old snapd package pre-removal script subprocess returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop snapd.autoimport.service: Unit snapd.autoimport.service not loaded.
Failed to stop snapd.socket: Unit snapd.socket not loaded.
Failed to stop snapd.service: Unit snapd.service not loaded.
dpkg: error processing archive /tmp/apt-dpkg-install-MqUKcp/15-snapd_2.35.5~14.04_amd64.deb (--unpack):
 new snapd package pre-removal script subprocess returned error exit status 5

It seems that snapd.prerm script doesn't cope with services being not loaded and barfs.

Changed in snapd:
status: New → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers