How to completely remove VirtualBox in Ubuntu 16.04?
💻 coding

How to completely remove VirtualBox in Ubuntu 16.04?

1 min read 125 words
1 min read
ShareWhatsAppPost on X
  • 1To completely remove VirtualBox from Ubuntu, use 'sudo apt-get remove --purge virtualbox' to uninstall it.
  • 2Delete all related folders and settings in your home directory using 'sudo rm ~/'VirtualBox VMs' -Rf' and 'sudo rm ~/.config/VirtualBox/ -Rf'.
  • 3After ensuring all files are deleted, reinstall VirtualBox with 'sudo apt-get install virtualbox' for a fresh setup.

AI-generated summary · May not capture all nuances

Key Insight
AskGif

"To completely remove VirtualBox from Ubuntu, use 'sudo apt-get remove --purge virtualbox' to uninstall it."

How to completely remove VirtualBox in Ubuntu 16.04?

Question:

I had installed VirtualBox but it started giving me problems. So I uninstalled it using:-

sudo apt-get remove virtualbox-\*

sudo apt-get purge virtualbox-\*

But when I reinstalled VirtualBox it again resumed to previous settings and started giving same problems. How can i completely remove VirtualBox from my laptop and then reinstall it such that it wont give same problem again?

Solution:

Your problem: Virtual Box keeps its folder and settings in your home folder. Delete everything inside the folder.

Uninstall VirtualBox first.

sudo apt-get remove --purge virtualbox 

Run these commands to delete all virtual machines and settings and Virtual Hard Drives:

sudo rm ~/"VirtualBox VMs" -Rf

sudo rm ~/.config/VirtualBox/ -Rf

If you want to install it again. Run this command:

sudo apt-get install virtualbox

Enjoyed this article?

Share it with someone who'd find it useful.

ShareWhatsAppPost on X

AskGif

Published on 27 November 2018 · 1 min read · 125 words

Part of AskGif Blog · coding

You might also like