Attach your Ubuntu Advantage subscription

Attach your Ubuntu Advantage subscription

Attaching the Ubuntu Advantage subscription to Ubuntu, brings the enterprise lifecycle, including Linux kernel livepatching, access to FIPS validated packages, and compliance with security profiles such as CIS. This is not required on Ubuntu Pro instances on AWS, Azure or GCP, as these are automatically attached from launch.

ΝΟΤΕ: It’s not only enterprises who can have a subscription. Anyone can get a personal subscription for free on up to 5 machines, or 50 if you are an official Ubuntu Community member.

The following instructions explain how to attach your subscription to your Ubuntu systems.

Step 1: Install the UA client

This step is necessary for Ubuntu Advantage customers or holders of personal subscriptions. If you are an Ubuntu Pro user, your subscription is already attached and you may skip these instructions.

We first need to make sure that we have the latest version of the UA client running:

sudo apt update
sudo apt install ubuntu-advantage-tools

This will ensure that you are running the latest version of the UA client.

Step 2: Attach your subscription

Once you have checked that you are running the latest version of the UA client, you need to attach the UA token to your UA client to gain access to the Ubuntu Advantage services.

First we need to retrieve our UA token from our Ubuntu Advantage dashboard. To access your dashboard, you need an Ubuntu One account. If you still need to create one, ensure that you use the email address used to create your subscription.

The Ubuntu One account functions as a single-sign-on, so once logged in we can go straight to the Ubuntu Advantage dashboard at Then click on the ‘Machines’ column in the Your Paid Subscriptions table to reveal your token.

Now we’re ready to attach our UA token to the UA client:

sudo ua attach <your_ua_token>

You will know that the token has been successfully attached when you see the list of services, descriptions and their enabled/disabled status in a table similar to this:

esm-apps         yes       enabled   Expanded Security Maintenance for Applications
esm-infra        yes       enabled   Expanded Security Maintenance for Infrastructure
livepatch        yes       enabled   Canonical Livepatch service
realtime-kernel  yes       disabled  Ubuntu kernel with PREEMPT_RT patches integrated

Note that Extended Security Maintenance (ESM) and Livepatch will auto-enable once your token has been attached to your machine.

After attaching the UA client with your token you can also use the UA client to activate most of the Ubuntu Advantage services, including Livepatch, FIPS, and the CIS Benchmark tool.


Thank you, I believe it worked!

Is it possible to remove a machine from “Active Machines”, I tried with

sudo pro detach

but didn’t work.

I want to reinstall Ubuntu and I 'm afraid after installing y machine will be detected as a new one because machine id will change of course… Also this information would be useful in case the machine is not used anymore to free up a machine in the dashboard.

Thanks for your time!


You can check if detaching pro was successful with

pro status

If it says: “This machine is not attached to an Ubuntu Pro subscription.” then you should be good to go. The “Active machines” value on the pro dashboard just shows how many machines have been active in the last 24 hours, so it won’t decrease immediately after detaching. A fresh install of Ubuntu will count as a new subscription, but can still be attached to pro with the previous install’s subscription freed.