ubuntu 下安装virtualbox虚拟机

#ubuntuvirtualboxinstall

sudo apt-get install libsdl1.2debian
sudo apt-get install libsdl-ttf2.0-0
sudo apt-get install dkms

以下方法选择一个

===【方法1】===========================

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" >> /etc/apt/sources.list.d/virtualbox.list'

或者

sudo vi /etc/apt/sources.list.d/virtualbox.list

写入:

debhttp://download.virtualbox.org/virtualbox/debiantrustycontrib

保存

sudo wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- |sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox

===【方法2】===========================

下载deb安装包

sudo dpkg -i virtualbox-4.3_4.3.18-96516~Ubuntu~raring_amd64.deb

相关推荐