Debian 8 VirtualBox / DKMS 安装问题

Debian 8 VirtualBox / DKMS 安装问题

我正在尝试使用安装虚拟盒wiki.debian.org 上的方法我遇到了问题。当我执行时

# apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox

我得到以下信息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  binutils cpp-4.8 dkms fakeroot gcc gcc-4.8 gcc-4.9 libasan0 libasan1
  libatomic1 libc-dev-bin libc6-dev libcilkrts5 libcurl3 libfakeroot
  libgcc-4.8-dev libgcc-4.9-dev libgsoap5 libitm1 liblsan0 libqt4-network
  libqt4-opengl libtsan0 libubsan0 libvncserver0 linux-compiler-    gcc-4.8-x86
  linux-headers-3.16.0-4-amd64 linux-headers-3.16.0-4-common linux-    kbuild-3.16
  linux-libc-dev make manpages-dev menu virtualbox-dkms virtualbox-qt
Suggested packages:
  binutils-doc gcc-4.8-locales gcc-multilib autoconf automake libtool flex
  bison gdb gcc-doc gcc-4.8-multilib gcc-4.8-doc libgcc1-dbg libgomp1-dbg
  libitm1-dbg libatomic1-dbg libasan0-dbg libtsan0-dbg libquadmath0-dbg
  gcc-4.9-multilib gcc-4.9-doc gcc-4.9-locales libasan1-dbg liblsan0-dbg
  libubsan0-dbg libcilkrts5-dbg glibc-doc make-doc menu-l10n gksu kde-runtime
  ktsuss vde2 virtualbox-guest-additions-iso
Recommended packages:
  linux-image
The following NEW packages will be installed:
  binutils cpp-4.8 dkms fakeroot gcc gcc-4.8 gcc-4.9 libasan0 libasan1
  libatomic1 libc-dev-bin libc6-dev libcilkrts5 libcurl3 libfakeroot
  libgcc-4.8-dev libgcc-4.9-dev libgsoap5 libitm1 liblsan0 libqt4-network
  libqt4-opengl libtsan0 libubsan0 libvncserver0 linux-compiler-gcc-4.8-x86
  linux-headers-3.16.0-4-amd64 linux-headers-3.16.0-4-common
  linux-headers-amd64 linux-kbuild-3.16 linux-libc-dev make manpages-dev menu
  virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 37 newly installed, 0 to remove and 0 not upgraded.
Need to get 22.7 MB/56.9 MB of archives.
After this operation, 227 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
WARNING: The following packages cannot be authenticated!
  libasan1 libcilkrts5 libcurl3 libgsoap5 liblsan0 libqt4-network
  libqt4-opengl libubsan0 libvncserver0 virtualbox libgcc-4.9-dev gcc-4.9 gcc
  make dkms virtualbox-dkms virtualbox-qt libfakeroot fakeroot linux-libc-dev
  linux-compiler-gcc-4.8-x86 linux-headers-3.16.0-4-common
  linux-headers-3.16.0-4-amd64 manpages-dev menu
Install these packages without verification? [y/N] Y
Get:1 http://security.debian.org/ jessie/updates/main libcurl3 amd64     7.38.0-4+deb8u2 [259 kB]
Media change: please insert the disc     labeled                                   
 'Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 xfce-CD Binary-1     20150906-11:10'
in the drive '/media/cdrom/' and press enter

Get:2 http://http.debian.net/debian/ jessie/contrib virtualbox amd64     4.3.18-dfsg-3+deb8u3 [15.9 MB]
Get:3 http://http.debian.net/debian/ jessie/main libqt4-opengl amd64 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 [343 kB]
Get:4 http://http.debian.net/debian/ jessie/main libqt4-network amd64 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 [605 kB]
Get:5 http://http.debian.net/debian/ jessie/main libgsoap5 amd64 2.8.17-1 [202 kB]
Media change: please insert the disc     labeled                                   
 'Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 xfce-CD Binary-1     20150906-11:10'
in the drive '/media/cdrom/' and press enter

Get:6 http://http.debian.net/debian/ jessie/main libvncserver0 amd64     0.9.9+dfsg2-6.1+deb8u1 [191 kB]
Get:7 http://http.debian.net/debian/ jessie/contrib virtualbox-qt amd64     4.3.18-dfsg-3+deb8u3 [4,656 kB]
Media change: please insert the disc     labeled                                   
 'Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 xfce-CD Binary-1     20150906-11:10'
in the drive '/media/cdrom/' and press enter

Media change: please insert the disc     labeled                                 
 'Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 xfce-CD Binary-1     20150906-11:10'
in the drive '/media/cdrom/' and press enter

我只是不明白。我以为我被告知要把安装 Debian 的光盘放入驱动器中,我照做了,按了无数次 Enter 键,但没有发生什么。

我注意到我能够安装 virtualbox 并运行它并导入设备。然后,当我尝试使用该设备时出现错误,这可能是因为我无法正确安装 virtualbox 需要正确处理内核的 dkms。我无法找到要下载并刻录到名为“Debian GNU/Linux 8.2.0”的光盘的文件杰西- 官方 amd64 xfce-CD Binary-1 20150906-11:10”。

我缺少什么?我确信这是非常简单的事情,但它已经困扰我好几天了。

答案1

是的,它要求您提供安装 Debian 的光盘(或者同一张光盘的另一个副本)。由于某种原因,它没有找到它......

/etc/apt/sources.list由于您似乎可以访问网络,因此最简单的解决方法可能是从然后运行中删除/注释掉光盘apt-get update。那么你apt-get install应该成功。

PS:您确实不应该收到(或忽略!)这些包无法进行身份验证的错误。确保apt-get update运行没有任何错误。

答案2

打开并修改文件/etc/apt/sources.list vi /etc/apt/sources.list

在前面使用 # 进行注释(两行)

“Debian GNU/Linux 8.2.0 Jessie - 官方 amd64 xfce-CD Binary-1 20150906-11:10”

相关内容