---
title: Install canonical-livepatch-server on Kubuntu using the Snap Store | Snapcraft
description: Get the latest version of canonical-livepatch-server for on Kubuntu -
  Canonical Livepatch Server
url: https://snapcraft.io/install/canonical-livepatch-server/kubuntu
---

[Canonical Snapcraft](https://snapcraft.io/)

# Install canonical-livepatch-server on **Kubuntu**

# canonical-livepatch-server

[Canonical](https://snapcraft.io/publisher/canonical "View all snaps from Canonical")

* [Canonical](https://snapcraft.io/publisher/canonical "View all snaps from Canonical")
* [Security](https://snapcraft.io/search?categories=security)
* [Server and Cloud](https://snapcraft.io/search?categories=server-and-cloud)

[Install](https://snapcraft.io/install/canonical-livepatch-server/kubuntu#install)

#### Canonical Livepatch Server

Canonical Livepatch Server enables the delivery of Livepatch's to Livepatch clients, allowing reboots of critical infrastructure to be scheduled at a convenient time.

Requirements:

* PostgreSQL 12

Quick Start:

* Install the snap

  ```
  sudo snap install canonical-livepatch-server
  ```
* Now we require a Postgres database, for simplicity let's launch Postgres via docker:

  ```
  docker run \
  --name postgresql \
  -e POSTGRES_USER=livepatch \
  -e POSTGRES_PASSWORD=testing \
  -p 5432:5432 \
  -d postgres:12.11
  ```
* Migrate the database, run:

  ```
  canonical-livepatch-server.schema-tool \
  postgresql://livepatch:testing@localhost:5432/livepatch
  ```
* Update Livepatch with the DSN of our local Postgres, run:

  ```
  sudo snap \
  set canonical-livepatch-server \
  lp.database.connection-string=postgresql://livepatch:testing@localhost:5432/livepatch
  ```
* We can check the server is running via the logs:

  ```
  sudo snap logs \
  canonical-livepatch-server.livepatch -n 100
  ```

  If you're a customer of Ubuntu Pro and have access to Livepatch on-premise, you can enable on-premise within the snap the same as you would for the charm.

You can obtain your token from: <https://ubuntu.com/pro/dashboard>

Here is a quick how-to:

* Set your token via running:

  ```
  sudo snap set canonical-livepatch-server token=<Ubuntu Pro token>
  ```
* Install the server admin tool:

  ```
  sudo snap install canonical-livepatch-server-admin
  ```
* Set an environment variable for the admin tool to discover your snap server:

  ```
  export LIVEPATCH_URL=http://localhost:8080
  ```
* Set a basic user on the server, for example sake here is one with the username admin and password admin123, note, dollar signs must be escaped and the password but be bcrypt hashed:

  ```
  sudo snap set canonical-livepatch-server \
  lp.auth.basic.users=\
  admin:\$2y\$10\$c25NVkdeIMqWdbgR4883YuE/s2CT1mCmGPm5Ma1XbUqGqM26ClTGe
  ```

  If you'd like to generate your own,

  ```
  sudo apt-get install apache2-utils
  htpasswd -bnBC 10 <username> <password>
  ```
* Enable basic authentication:

  ```
  sudo snap set canonical-livepatch-server lp.auth.basic.enabled=true
  ```
* Login with your admin tool:

  ```
  canonical-livepatch-server-admin.livepatch-admin login -a admin:admin123
  ```
* Synchronise hosted patches into your snap server:

  ```
  canonical-livepatch-server-admin.livepatch-admin sync trigger
  ```

  To set the server to automatically sync patches from Canonical's servers every 12 hours, you can run the following commands,

  ```
  sudo snap set canonical-livepatch-server lp.patch-sync.enabled=true
  sudo snap set canonical-livepatch-server lp.patch-sync.interval=12h
  ```

  You are now ready to connect clients to your snap Livepatch instance! Currently the server is set (by default) to use file storage for the patches, you can actually see the patches here:

  ```
  ls /var/snap/canonical-livepatch-server/common/patches/
  ```

### Package name

* canonical-livepatch-server

---

### License

* Proprietary

---

### Last updated

* 4 September 2026 - latest/stable
* 2 September 2026 - latest/candidate

---

### Websites

* [www.ubuntu.com](http://www.ubuntu.com/livepatch "http://www.ubuntu.com/livepatch")

---

### Contact

* [snaps@canonical.com](mailto:snaps@canonical.com "mailto:snaps@canonical.com")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/install/canonical-livepatch-server/kubuntu#report-snap-modal)

---

## Enable snaps on Kubuntu and install canonical-livepatch-server

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the [Snap Store](https://snapcraft.io/store), an app store with an audience of millions.

### Enable snapd

If you’re running [Kubuntu 16.04 LTS (Xenial Xerus)](https://kubuntu.org/) or later, including [Kubuntu 18.04 LTS (Bionic Beaver)](https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes/Kubuntu) and [Kubuntu 18.10 (Cosmic Cuttlefish)](https://wiki.ubuntu.com/CosmicCuttlefish/ReleaseNotes/Kubuntu), you don’t need to do anything. Snap is already installed and ready to go.

Versions of Kubuntu between [14.04 LTS (Trusty Tahr)](https://kubuntu.org/news/kubuntu-14-04-lts) and [15.10 (Wily Werewolf)](https://kubuntu.org/news/kubuntu-15-10) don’t include *snap* by default, but *snap* can be installed from the command line as follows:

```
sudo apt update
sudo apt install snapd
```

### Install canonical-livepatch-server

To install canonical-livepatch-server, simply use the following command:

```
sudo snap install canonical-livepatch-server
```

### Other popular snaps…

[See more...](https://snapcraft.io/search?categories=featured)

[See more in Featured](https://snapcraft.io/search?categories=featured)

### More things to do…

#### [Get the snap store](https://snapcraft.io/snap-store)

Browse and find snaps from the convenience of your desktop using the snap store snap.

#### [Learn more about snaps](https://snapcraft.io/docs)

Interested to find out more about snaps? Want to publish your own application? Visit [snapcraft.io](https://snapcraft.io/) now.

[Back to top](https://snapcraft.io/install/canonical-livepatch-server/kubuntu)

© 2026 Canonical Ltd.
Ubuntu and Canonical are registered trademarks of Canonical Ltd.

Powered by [Charmed Kubernetes](https://www.ubuntu.com/kubernetes)

[Join the forum](https://forum.snapcraft.io/), contribute to or report problems with,
[snapd](https://bugs.launchpad.net/snapd),
[Snapcraft](https://bugs.launchpad.net/snapcraft),
or [this site](https://github.com/canonical/snapcraft.io/issues/new).

* [Share on Twitter](https://twitter.com/snapcraftio)
* [Share on Facebook](https://www.facebook.com/snapcraftio)
* [Share on YouTube](https://www.youtube.com/snapcraftio)

* [Terms of Service](https://ubuntu.com/legal/terms-and-policies/snap-store-terms)
* [Data privacy](https://www.ubuntu.com/legal/data-privacy)
* [Manage your tracker settings](https://snapcraft.io/install/canonical-livepatch-server/kubuntu)
* [Service status](https://status.snapcraft.io/)
* [Other functions](https://dashboard.snapcraft.io/)
* [Contact us](https://snapcraft.io/about/contact-us)
