virtualbox command not found

In this troubleshooting guide we learn how to fix virtualbox command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

virtualbox: command not found

or when using sudo you get the following error message

sudo: virtualbox: command not found

Solutions to virtualbox: command not found

How To Fix virtualbox: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu virtualbox is provided by virtualbox-qt package.

virtualbox-qt is:

VirtualBox is a free x86 virtualization solution allowing a wide range of x86 operating systems such as Windows, DOS, BSD or Linux to run on a Linux system.

This package provides the Qt based graphical user interface for VirtualBox.

To fix this problem, we can install more using the command below.

sudo apt-get -y install virtualbox-qt

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install virtualbox-qt.

sudo apt -y install virtualbox-qt

Or if you have aptitude installed you can use the following command.

sudo aptitude install virtualbox-qt

Summary

In this tutorial we learn how to fix virtualbox command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.