I've started seeing a livepatch warning in my system tray.

System tray icons.

Clicking it takes me the the livepatch client where I see this error message:

Canonical Livepatch has experienced an internal error. Please refer to https://wiki.ubuntu.com/Kernel/Livepatch#CommonIssues for further information.

Despite the URL, there isn't a #CommonIssues section on the page: https://wiki.ubuntu.com/Kernel/Livepatch#CommonIssues

When I run canonical-livepatch refresh in a terminal I see:

ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
2019/05/12 11:29:34 error executing refresh: Connection to the daemon failed: Post dial unix /var/snap/canonical-livepatch/77/livepatchd-priv.sock: connect: permission denied

Any ideas how I can fix this?

Ubuntu 18.04.2 LTS

  • 3
    Run sudo apt install gtk3-nocsd and then export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0. Also, canonical-livepatch refresh require sudo privileges – Kulfy May 12 at 12:04

Problem initially solved, thanks to Kulfy.

There were two issues:

  1. the warning about LD_PRELOAD went away after running suggested the export command

  2. the error when I ran canonical-livepatch refresh was because I hadn't used sudo

However, the "internal error" returned after every reboot.

This forum thread describes the issue and suggests the following solution:

  1. disable the livepatch service sudo canonical-livepatch disable

  2. get a new token from https://auth.livepatch.canonical.com/

  3. enable the service with your new token sudo canonical-livepatch enable <your token>


In terminal i just fire this command and it worked, try this

sudo canonical-livepatch refresh

In Detail you can read here

  1. Canonical Livepatch informs about internal error - what to do?
  2. https://ubuntuforums.org/showthread.php?t=2420465
  1. head to the Livepatch page and create an account. You can license up to 3 servers for free, so there is no cost unless you plan to mass deploy Livepatch. https://www.ubuntu.com/server/livepatch

  2. Once you've created an account it's as simple as running the following commands:

    sudo snap install canonical-livepatch  
    sudo canonical-livepatch enable $your_token  
  • Welcome to Ask Ubuntu! According to the question, OP had livepatch set up already but got a problem with it. Your answer is not even trying to solve this problem. – Melebius Jun 18 at 11:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.