package snapd 2.35.4~14.04 failed to install/upgrade: new snapd package pre-removal script subprocess returned error exit status 5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Won't Fix
|
High
|
Unassigned | ||
snapd (Ubuntu) |
Won't Fix
|
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
ProcVersionSign
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
RelatedPackageV
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)
tags: | removed: need-duplicate-check |
There are no apparmor denials in dmesg.
Looking at dpkg terminal log:
Preparing to unpack .../15- snapd_2. 35.5~14. 04_amd64. deb ... t.service: Unit snapd.autoimpor t.service not loaded. t.service: Unit snapd.autoimpor t.service not loaded. dpkg-install- MqUKcp/ 15-snapd_ 2.35.5~ 14.04_amd64. deb (--unpack):
Failed to stop snapd.autoimpor
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.autoimpor
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-
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.