Snap programs (all) will not run. mkdir /tmp/snap.rootfs* permission denied. Can’t install snaps (tried snap-store, brave). snap refresh seems to work. Started happening right after the latest apt update && apt dist-upgrade.
lsb_release -rd Description: Ubuntu 22.04.4 LTS Release: 22.04
snap version snap 2.62+22.04 snapd 2.62+22.04 series 16 ubuntu 22.04 kernel 6.5.0-28-generic
systemctl status -a snapd|cat ● snapd.service - Snap Daemon Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2024-05-09 10:58:50 AST; 29min ago TriggeredBy: ● snapd.socket Main PID: 19047 (snapd) Tasks: 19 (limit: 37536) Memory: 16.0M CPU: 11.594s CGroup: /system.slice/snapd.service └─19047 /usr/lib/snapd/snapd
May 09 10:58:50 pswsl01 systemd[1]: Starting Snap Daemon… May 09 10:58:50 pswsl01 snapd[19047]: overlord.go:271: Acquiring state lock file May 09 10:58:50 pswsl01 snapd[19047]: overlord.go:276: Acquired state lock file May 09 10:58:50 pswsl01 snapd[19047]: daemon.go:247: started snapd/2.62+22.04 (series 16; classic) ubuntu/22.04 (amd64) linux/6.5.0-28-generic. May 09 10:58:50 pswsl01 snapd[19047]: daemon.go:340: adjusting startup timeout by 1m40s (pessimistic estimate of 30s plus 5s per snap) May 09 10:58:50 pswsl01 snapd[19047]: backends.go:58: AppArmor status: apparmor is enabled and all features are available May 09 10:58:50 pswsl01 systemd[1]: Started Snap Daemon. May 09 10:59:14 pswsl01 snapd[19047]: api_snaps.go:427: Installing snap “snap-store” revision unset May 09 10:59:21 pswsl01 snapd[19047]: taskrunner.go:299: [change 58 “Run configure hook of "snap-store" snap if present” task] failed: run hook “configure”: cannot create directory “/tmp/snap.rootfs_5IBlrX/var”: Permission denied
Partial debug: [pid 21525] write(2, “performing operation: (disabled)”…, 63performing operation: (disabled) use debug build to see details) = 63 [pid 21525] write(2, “\n”, 1 ) = 1 [pid 21525] mount(“/snap/core18/current/sbin”, “/tmp/snap.rootfs_hXFc7q/sbin”, NULL, MS_BIND|MS_REC, NULL) = 0 [pid 21525] mkdir(“/tmp/snap.rootfs_hXFc7q/snap”, 0755) = 0 [pid 21525] mkdir(“/tmp/snap.rootfs_hXFc7q/srv”, 0755) = 0 [pid 21525] write(2, “DEBUG: “, 7DEBUG: ) = 7 [pid 21525] write(2, “performing operation: (disabled)”…, 63performing operation: (disabled) use debug build to see details) = 63 [pid 21525] write(2, “\n”, 1 ) = 1 [pid 21525] mount(”/snap/core18/current/srv”, “/tmp/snap.rootfs_hXFc7q/srv”, NULL, MS_BIND|MS_REC, NULL) = 0 [pid 21525] openat(AT_FDCWD, “/tmp/snap.rootfs_hXFc7q/stdout”, O_RDONLY|O_CREAT|O_TRUNC, 0644) = 11 [pid 21525] close(11) = 0 [pid 21525] write(2, “DEBUG: “, 7DEBUG: ) = 7 [pid 21525] write(2, “performing operation: (disabled)”…, 63performing operation: (disabled) use debug build to see details) = 63 [pid 21525] write(2, “\n”, 1 ) = 1 [pid 21525] mount(”/snap/core18/current/stdout”, “/tmp/snap.rootfs_hXFc7q/stdout”, NULL, MS_BIND, NULL) = 0 [pid 21525] mkdir(“/tmp/snap.rootfs_hXFc7q/sys”, 0755) = 0 [pid 21525] mkdir(“/tmp/snap.rootfs_hXFc7q/tmp”, 0755) = 0 [pid 21525] mkdir(“/tmp/snap.rootfs_hXFc7q/usr”, 0755) = 0 [pid 21525] write(2, “DEBUG: “, 7DEBUG: ) = 7 [pid 21525] write(2, “performing operation: (disabled)”…, 63performing operation: (disabled) use debug build to see details) = 63 [pid 21525] write(2, “\n”, 1 ) = 1 [pid 21525] mount(”/snap/core18/current/usr”, “/tmp/snap.rootfs_hXFc7q/usr”, NULL, MS_BIND|MS_REC, NULL) = 0 [pid 21525] mkdir(“/tmp/snap.rootfs_hXFc7q/var”, 0755) = -1 EACCES (Permission denied) [pid 21525] write(2, “cannot create directory "/tmp/sn”…, 53cannot create directory “/tmp/snap.rootfs_hXFc7q/var”) = 53 [pid 21525] write(2, “: Permission denied\n”, 20: Permission denied ) = 20