


curl -fSsL | gpg -dearmor | sudo tee /usr/share/keyrings/virtualbox.gpg > /dev/null

It will be the same for both Ubuntu 22.04 and Ubuntu 20.04. Therefore, for that, run the below command. Import the GPG KeyĪfter adding the repository, the system needs the GPG key that has been used to sign the packages available to download through it. Therefore, we add manually the repository of Virtualbox provided by their team.įor Ubuntu 22.04 LTS echo deb jammy contrib | sudo tee /etc/apt//virtualbox.listįor Ubuntu 20.04 LTS echo deb focal contrib | sudo tee /etc/apt//virtualbox.listb 3. We already have the VirtualBox to install using the system repository of both Ubuntu 22.04 and 20.04, however, the version is old. sudo apt update & sudo apt upgrade -y & sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https curl 2. Apart from that, we will also install a few other tools. Let’s start with the update command to get the latest available versions of system packages. How to uninstall VirtualBox from Ubuntu 22.04 or 20.04 Steps to install VirtualBox 7.0 on Ubuntu 22.04 or 20.04 1.
