I was trying to install let’s encrypt on my unprivileged containers using the snap package, but it fails installer snap “core” package:
● snap-core-10583.mount - Mount unit for core
Loaded: loaded (/etc/systemd/system/snap-core-10583.mount; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-01-13 08:42:15 CET; 1min 44s ago
Where: /snap/core/10583
What: /var/lib/snapd/snaps/core_10583.snap
Process: 6500 ExecMount=/bin/mount /var/lib/snapd/snaps/core_10583.snap /snap/core/10583 -t squashfs (code=exited, status=32)
Jan 13 08:42:15 instance systemd[1]: snap-core-10583.mount: Failed to reset devices.list: Operation not permitted
Jan 13 08:42:15 instance systemd[1]: snap-core-10583.mount: Failed to set invocation ID on control group /system.slice/snap-core-10583.mount, ignoring: Operation not permitted
Jan 13 08:42:15 instance systemd[1]: Mounting Mount unit for core...
Jan 13 08:42:15 instance systemd[1]: snap-core-10583.mount: Mount process exited, code=exited status=32
Jan 13 08:42:15 instance systemd[1]: Failed to mount Mount unit for core.
Jan 13 08:42:15 instance systemd[1]: snap-core-10583.mount: Unit entered failed state.
I read that I need to install squashfuse, but this package is not available since the containers are under Debian 9, and this package is only available since Buster release.
Does it exist an alternative way to make it working ?
certbot snap package, needs core package. So yes, it’s inside the container.
Installing separatly also fail with the same error:
~# snap install core
error: cannot perform the following tasks:
Mount snap “core” (10583) ([start snap-core-10583.mount] failed with exit status 1: Job for snap-core-10583.mount failed.
See “systemctl status snap-core-10583.mount” and “journalctl -xe” for details.
)