package snapd (not installed) failed to install/upgrade: »installiertes post-removal-Skript des Paketes snapd«-Unterprozess gab den Fehlerwert 1 zurück

Bug #1993135 reported by Martin Mayer
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Fix Committed
Medium
Alberto Mardegan

Bug Description

cannot apt purge snapd*

ProblemType: Package
DistroRelease: Ubuntu 22.10
Package: snapd (not installed)
ProcVersionSignature: Ubuntu 5.19.0-21.21-generic 5.19.7
Uname: Linux 5.19.0-21-generic x86_64
ApportVersion: 2.23.1-0ubuntu3
AptOrdering:
 firefox:amd64: Purge
 snapd:amd64: Purge
 NULL: ConfigurePending
 NULL: PurgePending
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: pass
Date: Mon Oct 17 10:22:54 2022
ErrorMessage: »installiertes post-removal-Skript des Paketes snapd«-Unterprozess gab den Fehlerwert 1 zurück
InstallationDate: Installed on 2022-10-12 (4 days ago)
InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Daily amd64 (20221012)
Python3Details: /usr/bin/python3.10, Python 3.10.7, python3-minimal, 3.10.6-1
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.9ubuntu1
 apt 2.5.3
SourcePackage: snapd
Title: package snapd (not installed) failed to install/upgrade: »installiertes post-removal-Skript des Paketes snapd«-Unterprozess gab den Fehlerwert 1 zurück
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Martin Mayer (martin-mayer) wrote :
Revision history for this message
Alberto Mardegan (mardy) wrote :

Thanks Martin, I can indeed see how this could happen. I'm preparing a fix for this.

Meanwhile, if you feel adventurous, you can try to fix the situation yourself like this: edit the file /var/lib/dpkg/info/snapd.postrm (as root) and change all occurrences of the calls

    rm -rf ...

to

    rm -rf --one-file-system ...

save it, and then try again.

Changed in snapd (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Alberto Mardegan (mardy)
Revision history for this message
Alberto Mardegan (mardy) wrote :
Alberto Mardegan (mardy)
Changed in snapd (Ubuntu):
status: In Progress → Fix Committed
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.