Debian--9 安装 VirtualBox
2017-10-25 11:49
169 查看
~~~提醒:一定要看终端的输出日志
我的是 4.9.0-4-amd64
wget http://download.virtualbox.org/virtualbox/5.2.0/virtualbox-5.2_5.2.0-118431\~Debian\~stretch_amd64.deb
下面是官网下载地址
https://www.virtualbox.org/wiki/Linux_Downloads
笔者是使用 “新力得软件包管理工具” 安装的,如下:
sudo gdebi virtualbox-5.2_5.2.0-118431\~Debian\~stretch_amd64.deb
你也可以选择使用其他的方法
{
Reading package lists… Done
Building dependency tree
Reading state information… Done
Reading state information… Done
Oracle VM VirtualBox
VirtualBox is a powerful PC virtualization solution allowing you to run a
wide range of PC operating systems on your Linux system. This includes
Windows, Linux, FreeBSD, DOS, OpenBSD and others. VirtualBox comes with a broad
feature set and excellent performance, making it the premier virtualization
software solution on the market.
您是否想安装这个软件包?[y/N]:y
正在选中未选择的软件包 virtualbox-5.2。
(正在读取数据库 … 系统当前共安装有 256522 个文件和目录。)
正准备解包 virtualbox-5.2_5.2.0-118431~Debian~stretch_amd64.deb …
正在解包 virtualbox-5.2 (5.2.0-118431~Debian~stretch) …
正在设置 virtualbox-5.2 (5.2.0-118431~Debian~stretch) …
正在添加组”vboxusers” (GID 127)…
完成。
Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /lib/systemd/system/vboxweb-service.service.
This system is currently not set up to build kernel modules.
Please install the Linux kernel “header” files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-amd64 linux-headers-4.9.0-4-amd64
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
正在处理用于 systemd (232-25+deb9u1) 的触发器 …
正在处理用于 gnome-menus (3.13.3-9) 的触发器 …
正在处理用于 desktop-file-utils (0.23-1) 的触发器 …
正在处理用于 mime-support (3.60) 的触发器 …
正在处理用于 hicolor-icon-theme (0.15-1) 的触发器 …
正在处理用于 shared-mime-info (1.8-1) 的触发器 …
Unknown media type in type ‘all/all’
Unknown media type in type ‘all/allfiles’
}END
The distribution packages containing the headers are probably:
linux-headers-amd64 || linux-headers-4.9.0-4-amd64
There were problems setting up VirtualBox. To re-start the set-up process, run /sbin/vboxconfig as root.
headers文件缺失, 系统输出了两个建议 , 选择第二个, 然后复制搜索下载
,注意要对应哦
然后接下来就是安装 linux-headers-4.9.0-4-amd64 的deb包
接着在终端输入:
sudo /sbin/vboxconfig
大家的问题不尽相同, 核心的方法就是查看终端日志,具体有什么问题可以留言一起探讨哦!
ENNNNNNND 我是惜冰,祝安好!
进入正文:
1>查看内核版本
uname -a Linux ice 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux
我的是 4.9.0-4-amd64
2>下载VirtualBox
和我相同版本号的 直接使用如下语句就OK:wget http://download.virtualbox.org/virtualbox/5.2.0/virtualbox-5.2_5.2.0-118431\~Debian\~stretch_amd64.deb
下面是官网下载地址
https://www.virtualbox.org/wiki/Linux_Downloads
3>安装
cd到你的下载目录笔者是使用 “新力得软件包管理工具” 安装的,如下:
sudo gdebi virtualbox-5.2_5.2.0-118431\~Debian\~stretch_amd64.deb
你也可以选择使用其他的方法
4>查看日志
笔者的日志内容如下:{
Reading package lists… Done
Building dependency tree
Reading state information… Done
Reading state information… Done
Oracle VM VirtualBox
VirtualBox is a powerful PC virtualization solution allowing you to run a
wide range of PC operating systems on your Linux system. This includes
Windows, Linux, FreeBSD, DOS, OpenBSD and others. VirtualBox comes with a broad
feature set and excellent performance, making it the premier virtualization
software solution on the market.
您是否想安装这个软件包?[y/N]:y
正在选中未选择的软件包 virtualbox-5.2。
(正在读取数据库 … 系统当前共安装有 256522 个文件和目录。)
正准备解包 virtualbox-5.2_5.2.0-118431~Debian~stretch_amd64.deb …
正在解包 virtualbox-5.2 (5.2.0-118431~Debian~stretch) …
正在设置 virtualbox-5.2 (5.2.0-118431~Debian~stretch) …
正在添加组”vboxusers” (GID 127)…
完成。
Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /lib/systemd/system/vboxweb-service.service.
This system is currently not set up to build kernel modules.
Please install the Linux kernel “header” files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
linux-headers-amd64 linux-headers-4.9.0-4-amd64
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
正在处理用于 systemd (232-25+deb9u1) 的触发器 …
正在处理用于 gnome-menus (3.13.3-9) 的触发器 …
正在处理用于 desktop-file-utils (0.23-1) 的触发器 …
正在处理用于 mime-support (3.60) 的触发器 …
正在处理用于 hicolor-icon-theme (0.15-1) 的触发器 …
正在处理用于 shared-mime-info (1.8-1) 的触发器 …
Unknown media type in type ‘all/all’
Unknown media type in type ‘all/allfiles’
}END
5>完成安装
重点语句在这里:The distribution packages containing the headers are probably:
linux-headers-amd64 || linux-headers-4.9.0-4-amd64
There were problems setting up VirtualBox. To re-start the set-up process, run /sbin/vboxconfig as root.
headers文件缺失, 系统输出了两个建议 , 选择第二个, 然后复制搜索下载
,注意要对应哦
然后接下来就是安装 linux-headers-4.9.0-4-amd64 的deb包
接着在终端输入:
sudo /sbin/vboxconfig
大家的问题不尽相同, 核心的方法就是查看终端日志,具体有什么问题可以留言一起探讨哦!
ENNNNNNND 我是惜冰,祝安好!
相关文章推荐
- VirtualBox在Debian系统上安装增强功能(记录)
- Debian下安装virtualbox
- VirtualBox 断网最小安装Debian 7
- VirtualBox环境下Debian安装增强工具失败
- VirtualBox 虚拟机 Debian系统上安装Cassandra步骤及遇到的问题
- Debian 7 安装使用 Virtualbox及增强功能
- VirtualBox安装Debian
- debian6 安装VirtualBox的方法
- [9]Debian lenny下VirtualBox安装
- Debian安装VirtualBox
- Ubuntu(Debian)中安装VirtualBox
- debian中安装virtualbox提示virtualbox 尚未配置时的处理方法
- 在debian纯字符界面安装vmware tools或者VirtualBox的增强功能开启共享文件夹
- VirtualBox安装Debian发行版
- virtualbox 5.2.0 ,debian9 安装超详细过程,看一次就懂
- Debian 6.0.6 系统安装第八步: 安装VirtualBox
- debian安装virtualbox增强包guest-additions来支持剪贴板共享.
- Debian/Ubuntu下安装VirtualBox以及使用工行U盾
- VirtualBox下Debian安装增强功能
- 在 Debian 7 中安装 virtualbox guest additions