Thanks David!
(feel free to ignore the following: I'm just writing some notes here for
my colleagues, as a starting point to fix the issue)
Indeed, out post-remove script (located in debian/snapd.postrm in the
source tree) does
echo "Final directory cleanup"
for d in "/snap/bin" "/snap" "/var/snap"; do
# Force remove due to directories for old revisions could still exist
rm -rf "$d"
if [ -d "$d" ]; then
echo "Cannot remove directory $d"
fi
done
which leaves open the possibility of a failed "rm" causing the whole
script to fail. The dpkg terminal log provided by David clearly show
that this was the case:
```
Final directory cleanup
rm: cannot remove '/var/snap': Device or resource busy
dpkg: error processing package snapd (--purge):
installed snapd package post-removal script subprocess returned error exit
status 1
```
Since the error is logged anyway, I think we should not fail here and
instead proceed no matter what.
** Changed in: snapd (Ubuntu)
Importance: Undecided => Low
** Changed in: snapd (Ubuntu)
Assignee: (unassigned) => Alberto Mardegan (mardy)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1950634
Title:
package snapd (not installed) failed to install/upgrade: installed
snapd package post-removal script subprocess returned error exit
status 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1950634/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs