Tuesday 28 July 2020

Uninstall WPS Office yang dari Snap

Sekarang saya mau uninstall wps office versi snap di UbuntuDDE. Sebagian masih beranggapan snap memperlambat booting. Benarkah? Entahlah. WPS Office versi snap saya hapus karena sudah mendownload wps Office dengan package file deb di https://linux.wps.com/. WPS Office snap adalah versi 10, sedangkan WPS Office versi deb sudah versi 11. Jadi secara aplikasi versi deb lebih terbaru daripada versi snap; harapan fiturnya lebih baik, akan tetapi semoga tidak lemot. haha

wps office


$ snap list
Name        Version      Rev   Tracking       Publisher   Notes
core        16-2.45.2    9665  latest/stable  canonical✓  core
wps-office  10.1.0.6757  1     latest/stable  liuyang8    -

:~$ sudo snap remove wps-office
[sudo] password for user:
wps-office removed

:~$ sudo snap remove core
error: cannot remove "core": snap "core" is not removable: snap is used by the model

:~$ snap list
Name  Version    Rev   Tracking       Publisher   Notes
core  16-2.45.2  9665  latest/stable  canonical✓  core

:~$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
udev             1910036       0   1910036   0% /dev
tmpfs             391156    3116    388040   1% /run
/dev/sda4       32744216 9591216  21466628  31% /
tmpfs            1955768   33328   1922440   2% /dev/shm
tmpfs               5120       4      5116   1% /run/lock
tmpfs            1955768       0   1955768   0% /sys/fs/cgroup
/dev/loop1         99328   99328         0 100% /snap/core/9665
/dev/sda9       70030560 1419152  65011024   3% /home
/dev/sda1          98304   67632     30672  69% /boot/efi
tmpfs             391152      16    391136   1% /run/user/1000

:~$ sudo umount /snap/core/9665
umount: /snap/core/9665: target is busy.

:~$ sudo umount /snap/core/9665
umount: /snap/core/9665: target is busy.

:~$ sudo apt purge snapd
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  gnome-software-plugin-snap* snapd*
0 upgraded, 0 newly installed, 2 to remove and 9 not upgraded.
After this operation, 120 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 303234 files and directories currently installed.)
Removing gnome-software-plugin-snap (3.36.1-0ubuntu0.20.04.0) ...
Removing snapd (2.45.1+20.04.2) ...
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 bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu2) ...
Rebuilding /usr/share/applications/bamf-2.index...
(Reading database ... 303156 files and directories currently installed.)
Purging configuration files for snapd (2.45.1+20.04.2) ...
Stopping snap-core-9665.mount
Stopping unit snap-core-9665.mount
Waiting until unit snap-core-9665.mount is stopped [attempt 1]
snap-core-9665.mount is stopped.
Removing snap core and revision 9665
Removing snap-core-9665.mount
Final directory cleanup
Discarding preserved snap namespaces
Removing extra snap-confine apparmor rules
Removing snapd cache
Removing snapd state

:~$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
udev             1910036       0   1910036   0% /dev
tmpfs             391156    3136    388020   1% /run
/dev/sda4       32744216 9125976  21931868  30% /
tmpfs            1955768   32132   1923636   2% /dev/shm
tmpfs               5120       4      5116   1% /run/lock
tmpfs            1955768       0   1955768   0% /sys/fs/cgroup
/dev/sda9       70030560 1419396  65010780   3% /home
/dev/sda1          98304   67632     30672  69% /boot/efi
tmpfs             391152      16    391136   1% /run/user/1000

:~$ rm -rf ~/snap
:~$ sudo rm -rf /snap
:~$ sudo rm -rf /var/snap
:~$ sudo rm -rf /var/lib/snapd
:~$ snap list

bash: /usr/bin/snap: No such file or directory

Share:

0 comments:

Post a Comment