How to Install Incus Container in Ubuntu Linux
Incus is a free system container and virtual machine manager. It is a community fork of the LXD project. It runs containers with LXC and virtual machines with QEMU, so you can run both on the same computer and keep each workload isolated from the others.
You can run Incus on a single desktop or scale it across a cluster of servers. On Ubuntu, setup takes a few terminal commands. You need a user with sudo rights and an internet connection.
Install Incus by first adding its repository to your system. Run `sudo apt update` and `sudo apt install incus` to install the software. Verify the installation with `incus version`.
Install Incus container on Ubuntu Linux
To install Incus on Ubuntu, you add the Incus package repository and download its signing key, so Ubuntu trusts the packages it downloads from that repository. After that, Incus installs and updates with the normal package manager, like any other package.
Run all the commands in a terminal. Open it with Ctrl+Alt+T on most Ubuntu desktops. Commands that change the system need administrator rights, so you may be asked for your password. Nothing shows on screen as you type it, which is normal.
Start by installing the prerequisite packages.
- Copy the command below and paste it into the terminal.
- Press Enter and enter your password if asked.
- Confirm any prompt. When the prompt returns, the prerequisites are installed. If they were already installed, apt tells you so and changes nothing.
Next, download the Incus repository GPG key. The key is a cryptographic signature. Ubuntu uses it to check that packages come from the Incus project and were not altered on the way to you.
- Run the command below.
- Wait for it to finish without errors. If it fails, check your internet connection and any proxy settings, then run it again.
sudo curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
Then create the repository file. This file tells apt where to find the Incus packages.
- Run the command below. It opens a new, empty file in a text editor.
sudo nano /etc/apt/sources.list.d/zabbly-incus-stable.sources
Now add the repository details to that file.
- Copy the content provided below.
- Paste it into the open file.
- Before you save, edit the highlighted placeholder, as explained after the screenshot.
Enabled: yes Types: deb URIs: https://pkgs.zabbly.com/incus/stable Suites: jammy Components: main Signed-By: /etc/apt/keyrings/zabbly.asc
Replace the highlighted placeholder with your Ubuntu version's codename. The codename is the release name, such as jammy for Ubuntu 22.04 or noble for Ubuntu 24.04. You can find it in the /etc/os-release file.
- Open the
/etc/os-releasefile in a second terminal window, or read it before you edit the repository file. - Find the line that holds your release codename.
- Type that codename in place of the placeholder.
- Save the repository file and close the editor.
A wrong codename is the usual cause of a "repository does not have a Release file" error in the next step. If you see it, reopen the file and correct the name.
Finally, update your package list and install Incus.
- Run the command below.
- Watch the output. The package list should refresh with no errors from the new repository, and Incus should then download and install.
- Wait for the prompt to return. No restart is needed.
sudo apt update sudo apt install incus
Once the install finishes, check that Incus is available on your system.
- Run the command below.
- Check the output. If it prints version information, Incus is installed. If the terminal says the command is not found, the install did not complete, so go back and check the earlier steps for errors.
incus version incus --help
If you no longer need Incus, you can remove it with one command.
- Back up or export anything you want to keep from your containers and virtual machines first. Removing the software can make the instances hard to reach.
- Run the command below.
- Confirm the prompt if apt asks.
To undo the removal, install Incus again with the install command from earlier. Removing the package does not necessarily delete the repository file you created, so remove it by hand if you want it gone.
sudo apt remove --autoremove incus sudo rm /etc/apt/sources.list.d/zabbly-incus-stable.sources sudo rm /etc/apt/keyrings/zabbly.asc
That completes the installation. Incus is now ready for you to set up and use.
Before you create your first instance, Incus needs some initial configuration, such as storage and networking. The official guide linked below walks through it.
For more information and help creating instances, follow the link below.
Incus gives you a lightweight, open-source way to manage containers and virtual machines on Ubuntu Linux. The key points are below.
- The Incus Container provides a lightweight, open-source solution for managing containers and virtual machines in Ubuntu Linux.
- Its cloud-like experience lets you scale from a developer's laptop to a cluster of up to 50 servers.
- By following the steps above, you can install Incus and start using it to manage your applications. Add the signing key and repository first, then install the package, and verify it before you go further.
- For additional guidance on creating instances and further information, visit the Incus Containers page.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!