![安装 virtualbox-guest-dkms 时出现问题](https://linux22.com/image/945210/%E5%AE%89%E8%A3%85%20virtualbox-guest-dkms%20%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98.png)
我在将 virtualbox-guest-dkms 安装到已安装到 VitualBox(6.1.32) VM 的 Ubuntu 9.04 中时遇到问题。(Guest Additions 和 Extension Pack 也已安装。)我按照网页上的说明进行操作VirtualBox - 如何增加视频内存?为了增加虚拟机使用的图形 RAM 量。
一切都很顺利,直到我尝试按照用户 Johan Vijfhuizen 给出的说明,在虚拟 Ubuntu 的终端内发出以下指令。
sudo apt-get install dkms & sudo apt-get install virtualbox-guest-dkms
这产生了以下结果。
ubuntu@ubuntu-desktop:~$ sudo apt-get install dkms && sudo apt-get install virtualbox-guest-dkms
[sudo] password for ubuntu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
fakeroot patch
Suggested packages:
diff-doc
The following NEW packages will be installed
dkms fakeroot patch
0 upgraded, 3 newly installed, 0 to remove and 316 not upgraded.
Need to get 275kB of archives.
After this operation, 1053kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get: 1 http://old-releases.ubuntu.com jaunty/main dkms 2.0.21.1-0ubuntu3 [57.6kB]
Get: 2 http://old-releases.ubuntu.com jaunty/main fakeroot 1.12.1ubuntu1 [117kB]
Get: 3 http://old-releases.ubuntu.com jaunty/main patch 2.5.9-5 [101kB]
Fetched 275kB in 1s (141kB/s)
Selecting previously deselected package dkms.
(Reading database ... 101349 files and directories currently installed.)
Unpacking dkms (from .../dkms_2.0.21.1-0ubuntu3_all.deb) ...
Selecting previously deselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.12.1ubuntu1_amd64.deb) ...
Selecting previously deselected package patch.
Unpacking patch (from .../patch_2.5.9-5_amd64.deb) ...
Processing triggers for man-db ...
Setting up dkms (2.0.21.1-0ubuntu3) ...
* Running DKMS auto installation service for kernel 2.6.28-11-generic [ OK ]
Setting up fakeroot (1.12.1ubuntu1) ...
Setting up patch (2.5.9-5) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package virtualbox-guest-dkms
ubuntu@ubuntu-desktop:~$
可以看出,DKMS 已安装在虚拟 Ubuntu 中,但找不到包 virtualbox-guest-dkms。
在虚拟 Ubuntu 中,我编辑了 /etc/apt/sources.list,以便可以找到软件包。软件包 DKMS 已安装到虚拟 Ubuntu 中,这表明列表文件已正确编辑。
我现在如何将 virtualbox-guest-dkms 包安装到虚拟 Ubuntu 中?
[对于那些可能感到疑惑的人,我之所以使用这么老版本的 Ubuntu,是因为这是当年对旧的 2012 OU Sense 微控制器板进行测试的 Ubuntu 版本,而我正试图复制其 IDE 运行的环境。]
斯图尔特