方法一: 通过官方地址下载deb安装包,登录 http://www.virtualbox.org/wiki/Linux_Downloads 下载所需版本,下载成功双击自动安装。 方法二: 1、添加VirtualBox的安装源:
sudo su - echo "deb http://download.virtualbox.org/virtualbox/debian lucid contrib" >> /etc/apt/sources.list
2、添加数字签名: wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | apt-key add - apt-get update apt-get install virtualbox-4.0 dkms
4、Ubuntu(Debian)各版本安装源如下: deb http://download.virtualbox.org/virtualbox/debian maverick contrib #Ubuntu 10.10 deb http://download.virtualbox.org/virtualbox/debian lucid contrib #Ubuntu 10.04 deb http://download.virtualbox.org/virtualbox/debian karmic contrib #Ubuntu 9.10 deb http://download.virtualbox.org/virtualbox/debian jaunty contrib #Ubuntu 9.04 deb http://download.virtualbox.org/virtualbox/debian intrepid contrib #Ubuntu 8.10 deb http://download.virtualbox.org/virtualbox/debian hardy contrib #Ubuntu 8.04 deb http://download.virtualbox.org/virtualbox/debian squeeze contrib #Debian 6.0 deb http://download.virtualbox.org/virtualbox/debian lenny contrib #Debian 5.0 deb http://download.virtualbox.org/virtualbox/debian etch contrib #Debian 4.0 |