发行版:Ubuntu 21.04(多毛河马)
我多次删除了 snapd(显然删除了 snapd),然后在安装 snapd 后,所有快照都正常。这次我重新安装了 AppArmor 并安装了 snapd,启用并运行,但这次没有安装 snaps。
The following packages will be REMOVED:
apparmor* apparmor-easyprof* apparmor-notify* apparmor-profiles* apparmor-profiles-extra* apparmor-utils* snapd*
root@zika:/etc# systemctl status snapd
● snapd.service - Snap Daemon
Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-08-30 19:49:42 EDT; 50min ago
TriggeredBy: ● snapd.socket
Main PID: 1147 (snapd)
Tasks: 10 (limit: 4450)
Memory: 24.3M
CGroup: /system.slice/snapd.service
└─1147 /usr/lib/snapd/snapd
Aug 30 19:49:29 zika systemd[1]: Starting Snap Daemon...
Aug 30 19:49:39 zika snapd[1147]: AppArmor status: apparmor is enabled and all features are available
Aug 30 19:49:40 zika snapd[1147]: daemon.go:347: started snapd/2.49.2+21.04ubuntu1 (series 16; classic) ubuntu/21.04 (amd64) linux/5.11>
Aug 30 19:49:41 zika snapd[1147]: daemon.go:440: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)
Aug 30 19:49:42 zika systemd[1]: Started Snap Daemon.
lines 1-15/15 (END)
root@zika:/etc# systemctl status snapd.socket
● snapd.socket - Socket activation for snappy daemon
Loaded: loaded (/lib/systemd/system/snapd.socket; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-08-30 19:49:28 EDT; 47min ago
Triggers: ● snapd.service
Listen: /run/snapd.socket (Stream)
/run/snapd-snap.socket (Stream)
Tasks: 0 (limit: 4450)
Memory: 0B
CGroup: /system.slice/snapd.socket
Aug 30 19:49:28 zika systemd[1]: Starting Socket activation for snappy daemon.
Aug 30 19:49:28 zika systemd[1]: Listening on Socket activation for snappy daemon.
root@zika:/etc# systemctl --state=running|g snap
snapd.service loaded active running Snap Daemon
snapd.socket loaded active running Socket activation for snappy daemon
快照列表
未安装快照
和 lsblk:
root@zika:/etc# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 698.6G 0 disk
├─sda1 8:1 0 279.5G 0 part /
├─sda2 8:2 0 450M 0 part
├─sda3 8:3 0 100M 0 part
├─sda4 8:4 0 16M 0 part
├─sda5 8:5 0 98.4G 0 part
├─sda6 8:6 0 666M 0 part
├─sda7 8:7 0 217.8G 0 part /mnt/a38b81ea-8929-4863-a582-c5b65ed6738f
├─sda8 8:8 0 5.4G 0 part [SWAP]
├─sda9 8:9 0 243M 0 part
└─sda10 8:10 0 96.1G 0 part
sr0 11:0 1 1024M 0 rom
我还有一个 /home/user/snap 但 /var/lib/snapd/snaps 是空的。这是一种恢复快照的方法还是只是丢失了?/home/user/snap 有什么用?我假设再次安装丢失的快照将保留来自 /home/user/snap 的 conf。我真的迷失了,请有人解释一下。谢谢!