vbox-img command not found

In this troubleshooting guide we learn how to fix vbox-img command not found error message

Introduction

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

vbox-img: command not found

or when using sudo you get the following error message

sudo: vbox-img: command not found

Solutions to vbox-img: command not found

How To Fix vbox-img: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu vbox-img is provided by virtualbox package.

virtualbox 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 binaries for VirtualBox. Either the virtualbox-dkms or the virtualbox-source package is also required in order to compile the kernel modules needed for virtualbox. A graphical user interface for VirtualBox is provided by the package virtualbox-qt.

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

sudo apt-get -y install virtualbox

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

You can also use apt command to install virtualbox.

sudo apt -y install virtualbox

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

sudo aptitude install virtualbox

Summary

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