设为首页 收藏本站
查看: 1114|回复: 0

[经验分享] Debian 按装virtualbox的方式

[复制链接]

尚未签到

发表于 2015-10-13 02:28:02 | 显示全部楼层 |阅读模式


用apt-get install virtualbox-?的方式没有出现要求输入/etc/init.d/vboxdrv setup的错误,因为apt-get自动把dkms和virtualbox整合了?所以,以后安装软件不要dpkg -i ?.deb,要apt-get install ?



Download VirtualBox for Linux Hosts



VirtualBox 4.1.2
for Linux

  Note: The package architecture has to match the Linux kernel architecture, that is, if you are running a 64-bit kernel, install the appropriate AMD64 package (it does not matter if you have an Intel or an AMD CPU). Mixed installations (e.g.
Debian/Lenny ships an AMD64 kernel with 32-bit packages) are not supported. To install VirtualBox anyway you need to setup a 64-bit chroot environment.
  Please choose the appropriate package for your Linux distribution:


  • Ubuntu 11.04 ("Natty Narwhal") i386 | AMD64
  • Ubuntu 10.10 ("Maverick Meerkat") i386 | AMD64
  • Ubuntu 10.04 LTS ("Lucid Lynx") i386 | AMD64
  • Ubuntu 8.04 LTS ("Hardy Heron") i386 | AMD64
  • Debian 6.0 ("Squeeze") i386 | AMD64
  • Debian 5.0 ("Lenny") i386 | AMD64
  • openSUSE 11.4 i386 | AMD64
  • openSUSE 11.3 i386 | AMD64
  • SUSE Linux Enterprise Server 11 (SLES11) i386 | AMD64
  • SUSE Linux Enterprise Server 10 (SLES10) i386 | AMD64
  • Fedora 15 ("Lovelock") i386 | AMD64
  • Fedora 14 ("Laughlin") i386 | AMD64
  • Mandriva 2010.0 / 2010.1 i386 | AMD64
  • Mandriva 2009.1 i386 | AMD64
  • Red Hat Enterprise Linux 6 ("RHEL6") / Oracle Linux 6 ("OL6") i386 | AMD64
  • Red Hat Enterprise Linux 5 ("RHEL5") / Oracle Linux 5 ("OL5") / CentOS 5 i386 | AMD64
  • Red Hat Enterprise Linux 4 ("RHEL4") / Oracle Linux 4 ("OL4") / CentOS 4 i386
  • All distributions i386 | AMD64
  You might want to compare the


  • SHA256 checksum
    or the
  • MD5 checksum
  to verify the integrity of downloaded packages.


Debian-based Linux distributions

  Note: VirtualBox has been moved from non-free to contrib with 4.0, so please adjust your repository settings.
  Add one of the following lines according to your distribution to your /etc/apt/sources.list:

deb http://download.virtualbox.org/virtualbox/debian natty contrib
deb http://download.virtualbox.org/virtualbox/debian maverick contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian karmic contrib non-free
deb http://download.virtualbox.org/virtualbox/debian hardy contrib non-free
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lenny contrib non-free

  (Up to version 3.2 the packages were located in the non-free section, starting with version 4.0 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 http://download.virtualbox.org/virtualbox/debian/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-4.1

  Replace virtualbox-4.1 by


  • virtualbox-4.0 to install VirtualBox 4.0.12
  • virtualbox-3.2 to install VirtualBox 3.2.12
  • virtualbox-3.1 to install VirtualBox 3.1.8
  • virtualbox-3.0 to install VirtualBox 3.0.14
  • virtualbox-2.2 to install VirtualBox 2.2.4
  • virtualbox-2.1 to install VirtualBox 2.1.4
  • virtualbox-2.0 to install VirtualBox 2.0.12
  • virtualbox to install VirtualBox 1.6.6
  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


RPM-based Linux distributions

  Starting with VirtualBox 3.0.12 we provide a yum-style repository for Fedora/RHEL/openSUSE. Note that 3.0.x .rpm packages are named VirtualBox-3.0.x while3.1.x .rpm packages are named VirtualBox-3.1-3.1.x.
This naming scheme allows to use the older 3.0.x packages without changing the repository.
  Furthemore, all .rpm packages are signed. The Oracle public key for rpm can be downloaded here.
You can add this key (not necessary for yum users, see below!) with

sudo rpm --import oracle_vbox.asc

  or combine downloading and registering:

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | rpm --import -

  The key fingerprint is

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

  After importing the public key, the package signature can be checked with

rpm --checksig PACKAGE_NAME

  Note that importing the key is not necessary for yum users (Fedora/RHEL/CentOS) when using one of the virtualbox.repo files from below as yum downloads and imports the public key automatically!
  The package signature is checked by yum/zypper as well:


  • Users of Fedora can add the
    Fedora repo file to /etc/yum.repos.d/.
  • Users of RHEL can add the
    RHEL repo file to /etc/yum.repos.d/.
  • Users of openSUSE can add the proper repo file for 10.3 (VirtualBox
    3.0.x only), 11.0 (VirtualBox
    3.2.x only), 11.1, 11.2,11.3 or 11.4 to/etc/zypp/repos.d/.
  Note: Users of Fedora/Mandriva might want to install the dkms package (not available on openSUSE) to ensure that the VirtualBox host kernel modules (vboxdrv,vboxnetflt and vboxnetadp)
are properly updated if the linux kernel version changes during the next kernel update.

版权声明:本文为博主原创文章,未经博主允许不得转载。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-125983-1-1.html 上篇帖子: VMware镜像文件转到VirtualBox中运行 下篇帖子: VirtualBox安装扩展包失败解决办法
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表