Can't enable livepatch on 16.04.3

Colin Watson cjwatson at ubuntu.com
Sun Jan 7 18:50:32 UTC 2018


On Thu, Jan 04, 2018 at 01:03:51PM +0100, Jonathan Sélea wrote:
> I am having trouble enabling canonical-livepatch service on my ubuntu
> server:
> 
> 
> root at list:~# canonical-livepatch enable TOKENHERE 2018/01/04 12:02:19 Error
> executing enable?auth-token=TOKENHERE. Bad server status code: 400. URL:
> https://livepatch.canonical.com/api/machine-tokens {"error": "Invalid
> payload", "details": {"Machine-Id": "Required"}}

It appears that you don't have /etc/machine-id on this system.  I'm not
sure exactly why that would be, but you can run
"systemd-machine-id-setup" to create one.  (If you aren't running
systemd, see
http://manpages.ubuntu.com/manpages/xenial/en/man1/systemd-machine-id-setup.1.html
for what it does.)

-- 
Colin Watson                                       [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list