Fix Please Install The gcc make perl Packages From your Distribution VirtualBox

Table of Contents

VirtualBox Guest Additions

In some cases, you got this error “This system is currently not set up to build kernel modules” when trying to install VirtualBox Guest Additions.

Addition information: Please install the gcc make perl packages from your distribution.

Fix Please Install The gcc make perl Packages From your Distribution VirtualBox

Install VirtualBox Guest Additions Manually

To fix it, we need to install VirtualBox Guest Additions manually in the Ubuntu VM.

1️⃣ Open Terminal app the switch to root account using sudo -s command.

sudo -s

2️⃣ Install VirtualBox Guest Additions iso following the command:

apt install virtualbox-guest-additions-iso -y

3️⃣ Create a mount point directory.

mkdir -p /mnt/cdrom

4️⃣ Mount the VirtualBox Guest Additions iso image to /mnt/cdrom. Then go to the mounted iso location.

mount /usr/share/virtualbox/VBoxGuestAdditions.iso /mnt/cdrom
cd /mnt/cdrom

5️⃣ Install the VirtualBox Guest Additions using the command then restart your virtual machine.

./VBoxLinuxAdditions.run

Leave a Comment

Required fields are marked *