Add the following line to your /etc/apt/sources.list:

deb http://download.virtualbox.org/virtualbox/debian vivid contrib

According to your distribution, replace 'vivid' by 'utopic', 'trusty', 'raring', 'quantal', 'precise', 'lucid', 'jessie', 'wheezy', or 'squeeze'.

(Up to version 3.2 the packages were located in the non-free section. Starting with version 4.0 they are located in the contrib section.)

The Oracle public key for apt-secure can be downloaded here. You can add this key with

sudo apt-key add oracle_vbox.asc

or combine downloading and registering:

wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

The key fingerprint is

7B0F AB3A 13B9 0743 5925  D9C9 5442 2A4B 98AB 5139
Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>

(As of VirtualBox 3.2, the signing key was changed. The old Sun public key for apt-secure can be downloaded here.)

To install VirtualBox, do

sudo apt-get update
sudo apt-get install virtualbox-5.0

Replace virtualbox-5.0 by

  • virtualbox-4.3 to install VirtualBox 4.3.30
  • virtualbox-4.2 to install VirtualBox 4.2.32

Note: Ubuntu/Debian users might want to install the dkms package to ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade. For Debian it is available in Lenny backports and in the normal repository for Squeeze and later. The dkms package can be installed through the Synaptic Package manager or through the following command:

sudo apt-get install dkms

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

最新文章

  1. 使用 PowerShell 自动化 CloudServices 发布
  2. Services (服务)
  3. swiper中提供的动画效果
  4. Linux 导入epel源
  5. 查看C语言的方法名
  6. 初始tornado框架
  7. BLOCKED和WAITING的区别
  8. [BZOJ 2127] happiness 【最小割】
  9. Asp.Net统一前后端提示信息方案
  10. TortoiseGit - pull request
  11. ConcurrentHashmap中的size()方法简单解释
  12. 一文为你详细讲解对象映射库【AutoMapper】所支持场景
  13. VxWorks启动过程详解(下)
  14. 在linux下如何使用yum查看安装了哪些软件包
  15. flume安装
  16. vmware虚拟机安装了linux(redhat)系统忘记登录密码怎么办
  17. String类的深入理解
  18. grafana安装
  19. Two Sum(II和IV)
  20. Javascript 面向对象编程(补充):封装

热门文章

  1. logback logback.xml常用配置详解 &lt;filter&gt;
  2. RabbitMQ操作
  3. .net core 源码解析-web app是如何启动并接收处理请求
  4. vue.js学习(第一课)
  5. 未在本地计算机上注册“Microsoft.Jet.OleDb.4.0”提供程序。解决办法
  6. 本地显示svg正常显示,在工程项目中无法正常显示
  7. 实用篇!Asp.Net数据传输压缩
  8. mongodb未授权访问漏洞
  9. HotSpot JVM常用参数设置
  10. 列表中checked全选按钮的实现