3

A few hours ago my Canonical Livepatch stopped working. I searched for the solution and than decided to reinstall Canonical Livepatch. Now I am getting the following error:

Failed to enable Livepatch: cannot enable machine: cannot send request: 
  Post https://livepatch.canonical.com/api/machine-tokens: EOF

I could not find anything online about this problem so I'm posting. Thanks for your time.

Zanna
  • 72,312

1 Answers1

2

After a while i was able to find a solution, so to speak. Well, sorta. Nevertheless, it works like a charm in my particular situation.

1) sudo canonical-livepatch disable
2) sudo snap remove canonical-livepatch
3) sudo cp /etc/machine-id /etc/machine-id.original
4) sudo cp /var/lib/dbus/machine-id /var/lib/dbus/machine-id.original
5) gedit /etc/machine-id 
(remove everything and save empty machine-id)
6) sudo systemd-machine-id-setup

reboot

7) sudo snap install canonical-livepatch

Now proceed to (https://auth.livepatch.canonical.com/) and obtain the token, then

8) sudo canonical-livepatch enable [your token]

Your livepatch should work from this point pretty stable and apply necessary updates.

Source: Canonical livepatch failed when I tried to enable token