1. Overview

The Ubuntu Livepatch Service applies critical kernel security patches without rebooting. This is especially useful on production environments and services where any downtime could be disruptive.

Livepatch is free for up to 3 machines. It is also included in every Ubuntu Advantage subscription.

This tutorial will show you how to enable this service on your Ubuntu system.

What you’ll need

  • A computer running Ubuntu LTS with an Internet connection
  • An Ubuntu Advantage subscription or a Free account
  • Some basic command-line knowledge

Originally authored by Konrad Krawiec.


2. Getting the Ubuntu Advantage token

In order to use this service, you have to get your Ubuntu Advantage subscription token.

To get it, simply visit the UA portal.

You’ll have to log in with your Ubuntu Advantage or Free account if you haven’t done so already.

The portal will return your subscription credentials and instructions to apply them on the system. Follow the instructions and attach the system to your Ubuntu Advantage or Free subscription. It is as simple as

$ sudo ua attach [TOKEN]

3. Enabling Livepatch

Livepatch is enabled by default when attaching a subscription. You can verify your subscription status with the ua status command.

If livepatch is disabled, you can enable it with the following command:

$ sudo ua enable livepatch

You can ensure that the Livepatch service is working properly by running:

$ canonical-livepatch status --verbose

4. Conclusion