Bug 1444422 - /var/lib/snapd not removed when removing snapd
Summary: /var/lib/snapd not removed when removing snapd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: snapd
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-21 10:07 UTC by Jan Niklas Hasse
Modified: 2017-06-23 20:52 UTC (History)
3 users (show)

Fixed In Version: snapd-2.26.3-3.fc26 snapd-2.26.3-3.fc24 snapd-2.26.3-3.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-23 14:18:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1685626 0 None None None 2017-04-23 14:27:15 UTC

Description Jan Niklas Hasse 2017-04-21 10:07:56 UTC
Description of problem:
It isn't possible to remove the "core" package via "sudo snap remove core". In the bug report here https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1589210 it is suggested to purge the snapd package (with apt) itself in that case. When using "dnf remove snapd" the core package is left behind along with the /var/lib/snapd directory and files like /etc/systemd/system/var-lib-snapd-snap-core-1577.mount.

Version-Release number of selected component (if applicable):
2.24-1.fc26

Steps to Reproduce:
1. sudo dnf install snapd
2. sudo snap install hello-word
3. sudo dnf remove snapd
4. find / -iname '*snapd*' 2>/dev/null

Actual results:
Lots of files

Expected results:
No new files as before installing snapd (except for cache files and files in home directories).

Comment 1 Neal Gompa 2017-04-21 13:40:53 UTC
@Zygmunt: Is there a proper cleanup command that can be run to umount and delete all snaps that can be used in preun stage? If there is, we can use that do do proper cleanup on actual uninstall (as opposed to upgrades).

Comment 2 Zygmunt Krynicki 2017-04-24 07:18:56 UTC
I think there is one but it may need some improvements. The code is in `debian/postrm` file but it assumes /snap so we'd need a version for Fedora that's separate. Essentially a %postun section, right?

Comment 3 Simon Fels 2017-04-24 07:48:48 UTC
@Zygmund, Neal: I am wondering if we can't generalize that bit of code a bit more so that we have a common helper which gets used everywhere and can be maintained upstream. For a first fix just a copy is fine but mid term we should think about this and then make this a prerm job.

Comment 4 Fedora Update System 2017-05-02 11:01:58 UTC
snapd-2.25-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8

Comment 5 Fedora Update System 2017-05-02 11:02:33 UTC
snapd-2.25-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03

Comment 6 Fedora Update System 2017-05-02 11:03:09 UTC
snapd-2.25-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46

Comment 7 Fedora Update System 2017-05-03 01:02:14 UTC
snapd-2.25-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8

Comment 8 Fedora Update System 2017-05-04 15:18:58 UTC
snapd-2.25-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03

Comment 9 Fedora Update System 2017-05-04 15:21:08 UTC
snapd-2.25-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46

Comment 10 Fedora Update System 2017-05-05 21:00:45 UTC
snapd-2.25-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03

Comment 11 Fedora Update System 2017-05-05 22:37:00 UTC
snapd-2.25-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46

Comment 12 Fedora Update System 2017-05-18 13:53:58 UTC
snapd-2.26.3-1.fc26 snapd-glib-1.12-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46

Comment 13 Fedora Update System 2017-05-18 13:55:10 UTC
snapd-2.26.3-1.fc25 snapd-glib-1.12-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03

Comment 14 Fedora Update System 2017-05-18 13:56:20 UTC
snapd-2.26.3-1.fc24 snapd-glib-1.12-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8

Comment 15 Fedora Update System 2017-05-19 21:09:17 UTC
snapd-2.26.3-1.fc26, snapd-glib-1.12-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46

Comment 16 Fedora Update System 2017-05-20 01:05:24 UTC
snapd-2.26.3-1.fc25, snapd-glib-1.12-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03

Comment 17 Fedora Update System 2017-05-20 03:01:29 UTC
snapd-2.26.3-1.fc24, snapd-glib-1.12-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8

Comment 18 Fedora Update System 2017-05-21 17:13:50 UTC
snapd-2.26.3-2.fc26 snapd-glib-1.12-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46

Comment 19 Fedora Update System 2017-05-21 17:15:07 UTC
snapd-2.26.3-2.fc25 snapd-glib-1.12-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03

Comment 20 Fedora Update System 2017-05-21 17:16:04 UTC
snapd-2.26.3-2.fc24 snapd-glib-1.12-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8

Comment 21 Fedora Update System 2017-05-21 23:32:06 UTC
snapd-2.26.3-2.fc26, snapd-glib-1.12-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46

Comment 22 Fedora Update System 2017-05-22 09:25:22 UTC
snapd-2.26.3-2.fc24, snapd-glib-1.12-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8

Comment 23 Fedora Update System 2017-05-22 09:28:17 UTC
snapd-2.26.3-2.fc25, snapd-glib-1.12-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03

Comment 24 Fedora Update System 2017-05-25 13:20:51 UTC
snapd-2.26.3-3.fc26 snapd-glib-1.12-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46

Comment 25 Fedora Update System 2017-05-25 13:22:11 UTC
snapd-2.26.3-3.fc25 snapd-glib-1.12-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03

Comment 26 Fedora Update System 2017-05-25 13:23:25 UTC
snapd-2.26.3-3.fc24 snapd-glib-1.12-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8

Comment 27 Fedora Update System 2017-05-26 05:59:17 UTC
snapd-2.26.3-3.fc24, snapd-glib-1.12-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8

Comment 28 Fedora Update System 2017-05-26 06:01:34 UTC
snapd-2.26.3-3.fc25, snapd-glib-1.12-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03

Comment 29 Fedora Update System 2017-05-26 19:34:27 UTC
snapd-2.26.3-3.fc26, snapd-glib-1.12-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46

Comment 30 Fedora Update System 2017-06-23 14:18:52 UTC
snapd-2.26.3-3.fc26, snapd-glib-1.12-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 31 Fedora Update System 2017-06-23 19:50:46 UTC
snapd-2.26.3-3.fc24, snapd-glib-1.12-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 32 Fedora Update System 2017-06-23 20:52:10 UTC
snapd-2.26.3-3.fc25, snapd-glib-1.12-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.