Source: snapd
Version: 2.30-4
Followup-For: Bug #827848
Dear Maintainer,
Purging snapd does not remove /snap/ directory due to leftover README
file. This file is provided by snapd package and I strongly believe it
should be removed by that package as well.
See terminal output below.
#v+
root@pingwin:~# aptitude install snapd
The following NEW packages will be installed:
apparmor{a} snapd squashfs-tools{a}
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/9503 kB of archives. After unpacking 45.4 MB will be used.
Do you want to continue? [Y/n/?] y
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Preconfiguring packages ...
(Reading database ... 286944 files and directories currently installed.)
Preparing to unpack .../apparmor_2.12-2_amd64.deb ...
Unpacking apparmor (2.12-2) ...
Selecting previously unselected package squashfs-tools.
Preparing to unpack .../squashfs-tools_1%3a4.3-4_amd64.deb ...
Unpacking squashfs-tools (1:4.3-4) ...
Selecting previously unselected package snapd.
Preparing to unpack .../snapd_2.30-4_amd64.deb ...
Unpacking snapd (2.30-4) ...
Setting up apparmor (2.12-2) ...
Setting up squashfs-tools (1:4.3-4) ...
Processing triggers for systemd (236-3) ...
Processing triggers for man-db (2.7.6.1-4) ...
Setting up snapd (2.30-4) ...
Created symlink
/etc/systemd/system/multi-user.target.wants/snapd.autoimport.service →
/lib/systemd/system/snapd.autoimport.service.
Created symlink
/etc/systemd/system/multi-user.target.wants/snapd.core-fixup.service →
/lib/systemd/system/snapd.core-fixup.service.
Created symlink /etc/systemd/system/timers.target.wants/snapd.refresh.timer →
/lib/systemd/system/snapd.refresh.timer.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service →
/lib/systemd/system/snapd.service.
Created symlink /etc/systemd/system/timers.target.wants/snapd.snap-repair.timer
→ /lib/systemd/system/snapd.snap-repair.timer.
Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket →
/lib/systemd/system/snapd.socket.
Created symlink
/etc/systemd/system/final.target.wants/snapd.system-shutdown.service →
/lib/systemd/system/snapd.system-shutdown.service.
snapd.refresh.service is a disabled or a static unit, not starting it.
snapd.snap-repair.service is a disabled or a static unit, not starting it.
root@pingwin:~# ls /snap/
README
root@pingwin:~# aptitude purge snapd
The following packages will be REMOVED:
apparmor{u} snapd{p} squashfs-tools{u}
0 packages upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 45.4 MB will be freed.
Do you want to continue? [Y/n/?] y
(Reading database ... 287062 files and directories currently installed.)
Removing snapd (2.30-4) ...
Removing apparmor (2.12-2) ...
Removing squashfs-tools (1:4.3-4) ...
Processing triggers for man-db (2.7.6.1-4) ...
(Reading database ... 286949 files and directories currently installed.)
Purging configuration files for snapd (2.30-4) ...
Final directory cleanup
Discarding preserved snap namespaces
umount: /run/snapd/ns/*.mnt: no mount point specified.
umount: /run/snapd/ns/: no mount point specified.
Removing extra snap-confine apparmor rules
Removing snapd cache
Removing snapd state
dpkg: warning: while removing snapd, directory '/snap' not empty so not removed
root@pingwin:~# ls /snap/
README
root@pingwin:~#
#v-
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-debug'), (400, 'unstable'),
(102, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to pl_PL.UTF-8), LANGUAGE= (charmap=UTF-8) (ignored: LC_ALL set to
pl_PL.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)