Skip to content

Instantly share code, notes, and snippets.

@PaulNeumann
Last active March 1, 2020 01:33
Show Gist options
  • Save PaulNeumann/3ac3df0ceaa519a8caae2813da9bebaf to your computer and use it in GitHub Desktop.
Save PaulNeumann/3ac3df0ceaa519a8caae2813da9bebaf to your computer and use it in GitHub Desktop.
How to remove preinstalled VirtualBox Guest Additions from Ubuntu

Removing Preinstalled VirtualBox Guest Additions from Ubuntu

Ubuntu 18.04 (and 19.03) has an older version of the VirtualBox Guest Additions preinstalled. The "normal" method of using the VirtualBox Guest Additions image (VBoxGuestAdditions.iso) to upgrade doesn't work unless the preinstalled Guest Additions are removed first.

Removing the preinstalled Guest Additions

  1. Run the following commands:

    sudo apt remove virtualbox-guest-utils
    sudo apt purge virtualbox-guest-utils
  2. Reboot the VM

Installing the current Guest Additions

Before installing the current Guest Additions, run the following command to install the packages needed to build kernel modules:

sudo apt install gcc make perl

The .iso image can then be used to install the current version of the Guest Additions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment