How to Install and Uninstall bubblewrap Ubuntu 22.04

Updated: September 2, 2022

bubblewrap uses Linux namespaces to launch unprivileged containers. These containers can be used to sandbox semi-trusted applications such as Flatpak apps, image/video thumbnailers and web browser components, or to run programs in a different library stack such as a Flatpak runtime or a different Debian release. I will show you how to install bubblewrap on Ubuntu 22.04 in this tutorial.

Software Requirement

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Check that you can run sudo commands.

Prerequisites to install bubblewrap on Ubuntu 22.04

Install bubblewrap Ubuntu 22.04

bubblewrap is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install bubblewrap using APT

This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get bubblewrap on your Ubuntu 22.04.

Step 1: Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing this Linux command:

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install bubblewrap Ubuntu by executing this command in the terminal.

sudo apt-get -y install bubblewrap

Install bubblewrap using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get -y install aptitude

After installing aptitude, you can now install bubblewrap, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install bubblewrap Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install bubblewrap

Uninstall bubblewrap on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

If you installed bubblewrap using APT or Aptitude, you could uninstall bubblewrap on Ubuntu by following this step:

sudo apt remove --auto-remove bubblewrap

If you want to uninstall bubblewrap and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge bubblewrap


In this guide, I showed you ways to install bubblewrap on Ubuntu 22.04 and some ways to uninstall bubblewrap too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.