Tuesday, 8 December 2020

Menghapus snap dari Ubuntu 20

 $ snap list

Name               Version             Rev    Tracking         Publisher   Notes

core18             20200929            1932   latest/stable    canonical✓  base

gnome-3-34-1804    0+git.3556cb3       60     latest/stable/…  canonical✓  -

gtk-common-themes  0.1-50-gf7627e4     1514   latest/stable/…  canonical✓  -

snap-store         3.38.0-55-geb45541  498    latest/stable/…  canonical✓  -

snapd              2.48.1              10492  latest/stable    canonical✓  snapd

dhwan@dhwan-Aspire-A514:~$ sudo snap remove snap-store

[sudo] password for dhwan: 

Sorry, try again.

[sudo] password for dhwan: 

Sorry, try again.

[sudo] password for dhwan: 

snap-store removed

dhwan@dhwan-Aspire-A514:~$ sudo snap remove gtk-common-themes

gtk-common-themes removed

dhwan@dhwan-Aspire-A514:~$ sudo snap remove gnome-3-34-1804

gnome-3-34-1804 removed

dhwan@dhwan-Aspire-A514:~$ sudo snap remove core18

core18 removed

dhwan@dhwan-Aspire-A514:~$ sudo snap snapd

error: unknown command "snapd", see 'snap help'.

dhwan@dhwan-Aspire-A514:~$ sudo snap remove snapd

snapd removed

$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             3988676        0   3988676   0% /dev
tmpfs             803416     1812    801604   1% /run
/dev/sdb2      148866816 12887668 128347484  10% /
tmpfs            4017076   176172   3840904   5% /dev/shm
tmpfs               5120        4      5116   1% /run/lock
tmpfs            4017076        0   4017076   0% /sys/fs/cgroup
/dev/sdb1          94759     7956     86804   9% /boot/efi
/dev/sdb4       95596964 33899056  56798736  38% /home
tmpfs             803412       24    803388   1% /run/user/1000
dhwan@dhwan-Aspire-A514:~$ sudo umount /var/snap
umount: /var/snap: not mounted.
dhwan@dhwan-Aspire-A514:~$ sudo apt purge snapd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-42 linux-headers-5.4.0-42-generic
  linux-image-5.4.0-42-generic linux-modules-5.4.0-42-generic
  linux-modules-extra-5.4.0-42-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  snapd*
0 upgraded, 0 newly installed, 1 to remove and 17 not upgraded.
After this operation, 126 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 265909 files and directories currently installed.)
Removing snapd (2.47.1+20.04) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu2) ...
Rebuilding /usr/share/applications/bamf-2.index...
(Reading database ... 265826 files and directories currently installed.)
Purging configuration files for snapd (2.47.1+20.04) ...
Final directory cleanup
Discarding preserved snap namespaces
Removing extra snap-confine apparmor rules
Removing snapd cache
Removing snapd state
dhwan@dhwan-Aspire-A514:~$ rm -rf ~/snap
dhwan@dhwan-Aspire-A514:~$ sudo rm -rf /snap
dhwan@dhwan-Aspire-A514:~$ sudo rm -rf /var/snap
dhwan@dhwan-Aspire-A514:~$ sudo rm -rf /var/lib/snapd


Share:

Related Posts:

0 comments:

Post a Comment