Hi folks, I’m attempting to install snapd and I’m getting an error in the install process. I’m using an ubuntu 22.04 container on a proxmox v8 host. When I do
apt upate
apt install snapd
it rolls happily through the install until it gets to this:
Created symlink /etc/systemd/user/sockets.target.wants/dirmngr.socket → /usr/lib/systemd/user/dirmngr.socket. Setting up gpg-wks-server (2.2.19-3ubuntu2.2) … Setting up snapd (2.66.1+20.04) … apparmor_parser: Unable to replace “mount-namespace-capture-helper”. Permission denied; attempted to load a profile while confined? apparmor_parser: Unable to replace “/usr/lib/snapd/snap-confine”. Permission denied; attempted to load a profile while confined? Created symlink /etc/systemd/system/multi-user.target.wants/snapd.apparmor.service → /lib/systemd/system/snapd.apparmor.service. Created symlink /etc/systemd/system/multi-user.target.wants/snapd.autoimport.service → /lib/systemd/system/snapd.autoimport.service. Created symlink /etc/systemd/system/multi-user.target.wants/snapd.core-fixup.service → /lib/systemd/system/snapd.core-fixup.service. Created symlink /etc/systemd/system/multi-user.target.wants/snapd.recovery-chooser-trigger.service → /lib/systemd/system/snapd.recovery-chooser-trigger.service. Created symlink /etc/systemd/system/multi-user.target.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service. Created symlink /etc/systemd/system/cloud-final.service.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service. Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service → /lib/systemd/system/snapd.service. Created symlink /etc/systemd/system/timers.target.wants/snapd.snap-repair.timer → /lib/systemd/system/snapd.snap-repair.timer. Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /lib/systemd/system/snapd.socket. Created symlink /etc/systemd/system/final.target.wants/snapd.system-shutdown.service → /lib/systemd/system/snapd.system-shutdown.service. Job for snapd.service failed because the control process exited with error code. See “systemctl status snapd.service” and “journalctl -xe” for details. snapd.failure.service is a disabled or a static unit, not starting it. snapd.mounts.target is a disabled or a static unit, not starting it. snapd.snap-repair.service is a disabled or a static unit, not starting it. Job for snapd.seeded.service failed because the control process exited with error code. See “systemctl status snapd.seeded.service” and “journalctl -xe” for details.
I went ahead and rebooted and tried
systemctl status snapd
which said
snapd.service - Snap Daemon Loaded: loaded (/lib/systemd/system/snapd.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2025-01-28 17:18:11 PST; 22s ago TriggeredBy: ● snapd.socket Process: 535 ExecStart=/usr/lib/snapd/snapd (code=exited, status=1/FAILURE) Main PID: 535 (code=exited, status=1/FAILURE) Jan 28 17:18:11 mrbeaver systemd[1]: snapd.service: Scheduled restart job, restart counter is at 5. Jan 28 17:18:11 mrbeaver systemd[1]: Stopped Snap Daemon. Jan 28 17:18:11 mrbeaver systemd[1]: snapd.service: Start request repeated too quickly. Jan 28 17:18:11 mrbeaver systemd[1]: snapd.service: Failed with result ‘exit-code’. Jan 28 17:18:11 mrbeaver systemd[1]: Failed to start Snap Daemon. Jan 28 17:18:11 mrbeaver systemd[1]: snapd.service: Triggering OnFailure= dependencies.
What am I missing to get this installed properly? thanks - Dean Guenther