Ubuntu 20.04 卸载 snapd
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Ubuntu 20.04 卸载 snapd,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3435字,纯文字阅读大概需要5分钟。
内容图文
![Ubuntu 20.04 卸载 snapd](/upload/InfoBanner/zyjiaocheng/934/2cc3cec2f7b14e3e8cdfe06a4a6e2e9e.jpg)
参考文章:
- https://www.kevin-custer.com/blog/disabling-snaps-in-ubuntu-20-04/
- https://askubuntu.com/questions/1035915/how-to-remove-snap-store-from-ubuntu
本人用的老式笔记本,常年卡顿,使用 top
命令发现 snapd
的进程经常占用了 10% 左右的 CPU,听说是 Ubuntu 官方出的包商店,用它来安装软件还需要挂一层 * 代 * 理去访问,用处有限。从网上搜了资料来卸载掉它。
根据第 1 篇文章里的命令:
sudo snap remove snapd
提示错误:
error: snap "snapd" has "auto-refresh" change in progress
然后试了第 2 篇文章里的命令:
sudo apt autoremove --purge snapd
提示执行成功了:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gnome-software gnome-software-common
Suggested packages:
apt-config-icons-hidpi gnome-software-plugin-flatpak
Recommended packages:
gnome-software-plugin-snap
The following packages will be REMOVED:
gnome-software-plugin-snap* liblzo2-2* snapd* squashfs-tools*
The following packages will be upgraded:
gnome-software gnome-software-common
2 upgraded, 0 newly installed, 4 to remove and 193 not upgraded.
Need to get 6,452 kB of archives.
After this operation, 121 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates/main amd64 gnome-software amd64 3.36.1-0ubuntu0.20.04.0 [892 kB]
Get:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates/main amd64 gnome-software-common all 3.36.1-0ubuntu0.20.04.0 [5,559 kB]
Fetched 6,452 kB in 3s (2,176 kB/s)
(Reading database ... 211725 files and directories currently installed.)
Removing gnome-software-plugin-snap (3.36.0-0ubuntu3) ...
Removing snapd (2.45.1+20.04.2) ...
Removing squashfs-tools (1:4.4-1) ...
Removing liblzo2-2:amd64 (2.10-2) ...
(Reading database ... 211630 files and directories currently installed.)
Preparing to unpack .../gnome-software_3.36.1-0ubuntu0.20.04.0_amd64.deb ...
Unpacking gnome-software (3.36.1-0ubuntu0.20.04.0) over (3.36.0-0ubuntu3) ...
Preparing to unpack .../gnome-software-common_3.36.1-0ubuntu0.20.04.0_all.deb ...
Unpacking gnome-software-common (3.36.1-0ubuntu0.20.04.0) over (3.36.0-0ubuntu3) ...
Setting up gnome-software-common (3.36.1-0ubuntu0.20.04.0) ...
Setting up gnome-software (3.36.1-0ubuntu0.20.04.0) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.64.2-1~fakesync1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
(Reading database ... 211630 files and directories currently installed.)
Purging configuration files for snapd (2.45.1+20.04.2) ...
Stopping snap-snapd-8542.mount
Stopping unit snap-snapd-8542.mount
Waiting until unit snap-snapd-8542.mount is stopped [attempt 1]
snap-snapd-8542.mount is stopped.
Removing snap snapd and revision 8542
Removing snap-snapd-8542.mount
Stopping snap-snapd-9279.mount
Stopping unit snap-snapd-9279.mount
Waiting until unit snap-snapd-9279.mount is stopped [attempt 1]
snap-snapd-9279.mount is stopped.
Removing snap snapd and revision 9279
Removing snap-snapd-9279.mount
Final directory cleanup
Discarding preserved snap namespaces
Removing extra snap-confine apparmor rules
Removing snapd cache
Removing snapd state
内容总结
以上是互联网集市为您收集整理的Ubuntu 20.04 卸载 snapd全部内容,希望文章能够帮你解决Ubuntu 20.04 卸载 snapd所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。