我在 VPS 上运行 Ubuntu 20.04。我想安装 certbot,但在使用 squashfs 时遇到了问题——以下是我在尝试安装 certbot 时遇到的问题sudo systemctl status snapd
(显然,我在尝试安装 certbot 时遇到了此错误):
● snapd.service - Snap Daemon
Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Wed 2021-05-26 10:56:39 EDT; 16min ago
TriggeredBy: ● snapd.socket
Main PID: 166 (code=exited, status=42)
May 26 10:56:34 vps70508.inmotionhosting.com systemd[1]: Starting Snap Daemon...
May 26 10:56:34 vps70508.inmotionhosting.com snapd[166]: AppArmor status: apparmor not enabled
May 26 10:56:34 vps70508.inmotionhosting.com snapd[166]: daemon.go:347: started snapd/2.48.3+20.04 (series 16; classic; devmode) ubuntu/20.04 (amd64) linux/5.4.0.
May 26 10:56:34 vps70508.inmotionhosting.com snapd[166]: main.go:129: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount: /tmp/sanity-mountpoint-635561883: mount failed: Operation not permitted.
May 26 10:56:34 vps70508.inmotionhosting.com snapd[166]: daemon.go:440: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)
May 26 10:56:34 vps70508.inmotionhosting.com systemd[1]: Started Snap Daemon.
May 26 10:56:39 vps70508.inmotionhosting.com snapd[166]: daemon.go:589: gracefully waiting for running hooks
May 26 10:56:39 vps70508.inmotionhosting.com snapd[166]: daemon.go:591: done waiting for running hooks
May 26 10:56:39 vps70508.inmotionhosting.com snapd[166]: daemon stop requested to wait for socket activation
May 26 10:56:39 vps70508.inmotionhosting.com systemd[1]: snapd.service: Succeeded.
sudo apt install fuse squashfuse
对我来说没有帮助。
答案1
由于您使用的是 VPS,因此您的环境可能不支持 snap。我在 letencrypt 上找到了这篇帖子,有人说:
snap 依赖于某些 Linux 内核功能,这些功能在容器化服务器(例如在 openvz 下运行的服务器)下不可用。
希望这有帮助。