Install Virtualbox 4.2 on Deepin Linux 12.04 using repository

This tutorial will show you how to Install Virtualbox 4.2 on Deepin Linux 12.04 using repository. Its a smart way to install Virtualbox on Deepin Linux using repository. We can get future update for Virtualbox anytime its available. 
This tutorial will show you how to:
  • Add virtualbox repository to Deepin Linux 12.06
  • Install Virtualbox 4.2 on Deepin Linux 12.06
First, open Terminal on Deepin Linux 12.06 and paste the following command to it.
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
This will add the repository key to Deepin. All command above should be typed in single line. 
Next, copy and paste this command to add the repository to Deepin's /etc/apt/sources.list file
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian precise contrib" >> /etc/apt/sources.list'
Now update your system
sudo apt-get update
Install Virtualbox 4.2 using command
sudo apt-get install virtualbox-4.2
That's it. Virtualbox 4.2 now should be installed on Deepin Linux 12.06