Problem with installing canonical livepatch service on 14.04

Hello, I recently installed snapd in order to get live patch management for my server and get a strange error message I cannot find anywhere. After I installed snapd and the livepatch package, when trying to enable it with the token I received I get this error:
cannot perform readlinkat() on the mount namespace file descriptor of the init process: Permission denied

Would appreciate any help, thanks.

1 Like

Hello, I’ll try to help you.

Can you start by providing the output of snap version? What is your environment? Is this a physical machine or a cloud virtual machine?

I’m having the same problem on a virtual server. I’m using Ubuntu 14.04.5. Snap version outputs:

# snap --version
snap    2.26.9
snapd   2.26.9
series  16
ubuntu  14.04
kernel  3.13.0-121-generic

On Ubuntu 14.04 you need to reboot after installing snapd as you are still on the 3.x kernel and snapd pulls in a newer kernel as a dependency.