Skip to content

Install Cubic

PJ Singh edited this page Sep 6, 2024 · 28 revisions

Cubic can be installed on distributions based on:

  • Ubuntu 18.04.5 Bionic Beaver and above
  • Debian 11 Bullseye and above

Security Alert: If you choose to install Cubic, please be aware that Cubic uses root privileges to perform certain tasks, such as mounting and unmounting ISO images, launching the Cubic Virtual Environment, or extracting and generating compressed Linux file systems. As a result, some components of Cubic may be exploited by unscrupulous actors to perform actions on your system without needing to provide a root password. If you are concerned about this issue, you may isolate your host system by installing and running Cubic inside a virtual environment such as Virtual Box. Approaches to mitigate this vulnerability are currently under consideration. Please see Issue #321 for further information.

Ubuntu and Derivatives

On some systems you may first need to manually add the repository key for Cubic. (Usually this is not necessary on Ubuntu).

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B7579F80E494ED3406A59DF9081525E2B4F1283B

Install Cubic using the following commands.

sudo apt-add-repository universe
sudo apt-add-repository ppa:cubic-wizard/release
sudo apt update
sudo apt install --no-install-recommends cubic

The --no-install-recommends option prevents superfluous packages from being installed.

Debian and Derivatives

For Debian Bookworm (and newer):

Install dpkg version 1.21.22 using the following commands.

sudo apt update
sudo apt install --no-install-recommends dpkg

Install Cubic using the following commands.

echo "deb https://ppa.launchpadcontent.net/cubic-wizard/release/ubuntu/ noble main" | sudo tee /etc/apt/sources.list.d/cubic-wizard-release.list
curl -S "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x081525e2b4f1283b" | sudo gpg --batch --yes --dearmor --output /etc/apt/trusted.gpg.d/cubic-wizard-ubuntu-release.gpg

sudo apt update
sudo apt install --no-install-recommends cubic

The --no-install-recommends option prevents superfluous packages from being installed.

For Debian Bullseye:

If you are running Debian bullseye, you can temporarily use the bookworm repositories to install a newer version of the dpkg package that is required to install Cubic. However, be careful with this hack, as this may break your system.

Install dpkg version 1.21.22 from the Debian bookworm repositories using the following commands (instead of version 1.20.13, available in the bullseye repositories).

cd /etc/apt
sudo cp sources.list sources.list.original
sudo sed -i "s|bullseye|bookworm|g" sources.list
sudo apt update

sudo apt install --no-install-recommends dpkg

sudo mv sources.list.original sources.list
sudo apt update

Install Cubic using the following commands.

echo "deb https://ppa.launchpadcontent.net/cubic-wizard/release/ubuntu/ noble main" | sudo tee /etc/apt/sources.list.d/cubic-wizard-release.list
curl -S "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x081525e2b4f1283b" | sudo gpg --batch --yes --dearmor --output /etc/apt/trusted.gpg.d/cubic-wizard-ubuntu-release.gpg

sudo apt update
sudo apt install --no-install-recommends cubic

The --no-install-recommends option prevents superfluous packages from being installed.