16

Canonical offers livepatching for its kernel, where every home user can get three licenses.

However, I'd like to know how I can de-register a machine from my license. If I get rid of a computer, I'd rather not lose one of my three licenses.

Is there a formalized procedure to deactivate a machine's license and transfer it to a new machine?

Kaz Wolfe
  • 33,802
  • 20
  • 111
  • 168

3 Answers3

11

Yes, just run

sudo snap run canonical-livepatch disable
NerdOfLinux
  • 3,728
  • 7
  • 29
  • 55
  • 3
    And this actually frees up one of the livepatch licenses again? I've dealt with software where disabling things doesn't give you the license back, so I want to verify with Ubuntu. – Kaz Wolfe Nov 22 '17 at 16:40
  • 1
    I’ve done this on more than three machines(the limit) and it worked fine. – NerdOfLinux Nov 22 '17 at 16:40
  • 5
    Do I have to run this on the old machine? What if it was a cloud instance and it's deleted. How do I reset all registered machines? Thanks – Houman May 06 '19 at 11:24
  • @Houman did you ever find the answer to your follow-up question about cloud instances? – DGinzberg Jun 14 '21 at 20:04
  • 1
    @DGinzberg I'm no longer using Ubuntu. But I remember that only the last three activated devices were kept. Hence older devices simply fall off the cliff and get removed. – Houman Jun 14 '21 at 21:09
1

Alternatively go to Software and Updates >> Livepatch and turn the slider to off.

Kundan Kumar
  • 111
  • 2
0

Another possibility is to do the following:

  • Check out man ua to see what the Ubuntu Advanced services are;
  • ua status to see how your settings are configured;
  • sudo ua disable livepatch and then ua status for control.
XavierStuvw
  • 1,391
  • 3
  • 14
  • 44