Skip to content

Instantly share code, notes, and snippets.

@bluesku
Last active February 7, 2021 06:07
Show Gist options
  • Save bluesku/c41fc32d587ad565a66efb74b15241ee to your computer and use it in GitHub Desktop.
Save bluesku/c41fc32d587ad565a66efb74b15241ee to your computer and use it in GitHub Desktop.
VirtualBOX Installer Script
#!/bin/sh
echo 'https://scriptxone.blogspot.com/ written by Henrique Silva'
#OFFITIAL SCRIPT FROM VirtualBOX -- edited by myself - install Signature keys from offitial VirtualBox.org page
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
# update n intall
apt-get update && apt-get install virtualbox -y || printf "CHECK CODE FOR DEBUGING! eg. keys may be outdate. last verification 26/11/2020 / 21-01-2021:::"
## packges solutions
apt autoremove -y ; apt --fix-broken install
<<[-]'COMMENTS' Replace virtualbox-6.1 by virtualbox-6.0 or virtualbox-5.2 to install the latest VirtualBox 6.0 or 5.2 build.
What to do when experiencing The following signatures were invalid: BADSIG ... when refreshing the packages from the repository?
# sudo -s -H
# apt-get clean
# rm /var/lib/apt/lists/*
# rm /var/lib/apt/lists/partial/*
# apt-get clean
# apt-get update
COMMENTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment