參考文章:
本人用的老式筆記本,常年卡頓,使用top
命令發現snapd
的程序經常占用了 10% 左右的 cpu,聽說是 ubuntu 官方出的包商店,用它來安裝軟體還需要掛一層 * 代 * 理去訪問,用處有限。從網上搜了資料來解除安裝掉它。
sudo snap remove snapd
提示錯誤:
error: snap "snapd" has "auto-refresh" change in progress
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 focal-updates/main amd64 gnome-software amd64 3.36.1-0ubuntu0.20.04.0 [892 kb]
get:2 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 snapd cache
removing snapd state
Ubuntu20 04 安裝總結
這是安裝過程中的網路設定的。gateway 閘道器 對應實驗室的0.0.0.0 nameserver 可以在之前機器上檢視,然後將其填寫進去,也是特定的,10.21.238.12 裝完後只可以訪問區域網內的ip還不能訪問外網,例如baidu.com。與nameserver是對應的 我所安裝的有這兩個...
ubuntu 20 04 主題美化
sudo apt get install gnome tweak toolsudo apt get install gnome shell extensionssudo apt get install chrome gnome shell這第三個是為了能在瀏覽器中一鍵安裝外掛程式,名字中有chrom...
Ubuntu 20 04更換阿里源
1 開啟終端,輸入下面命令進行備份 sudo cp etc apt sources.list etc apt sources.list.bak2 編輯sources.list檔案 在終端執行下面命令,開啟sources.list檔案進行編輯 sudo gedit etc apt sources.li...