我刚刚在VirtualBox 6.1.16上安装了ubuntu。我开始尝试配置,在运行以下命令之后:$ sudo apt install virtualbox-guest-dkms
,我收到以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
virtualbox-guest-dkms is already the newest version (6.1.10-dfsg-1~ubuntu1.20.04.1).
The following packages were automatically installed and are no longer required:
libfprint-2-tod1 libllvm10
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up virtualbox-guest-dkms (6.1.10-dfsg-1~ubuntu1.20.04.1) ...
Removing old virtualbox-guest-6.1.10 DKMS files...
------------------------------
Deleting module version: 6.1.10
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-guest-6.1.10 DKMS files...
Building for 5.8.0-34-generic
Building initial module for 5.8.0-34-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-guest-dkms.0.crash'rogress: [ 33%] [#######################.................................................]
Error! Bad return status for module build on kernel: 5.8.0-34-generic (x86_64)
Consult /var/lib/dkms/virtualbox-guest/6.1.10/build/make.log for more information.
dpkg: error processing package virtualbox-guest-dkms (--configure):
installed virtualbox-guest-dkms package post-installation script subprocess returned error ex
it status 10
Errors were encountered while processing:
virtualbox-guest-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
此外,在尝试按照网站中的步骤设置崇高文本时,输入sudo apt-get install apt-transport-https
会得到以下结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (2.0.2ubuntu0.2).
The following packages were automatically installed and are no longer required:
libfprint-2-tod1 libllvm10
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up virtualbox-guest-dkms (6.1.10-dfsg-1~ubuntu1.20.04.1) ...
Removing old virtualbox-guest-6.1.10 DKMS files...
------------------------------
Deleting module version: 6.1.10
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-guest-6.1.10 DKMS files...
Building for 5.8.0-34-generic
Building initial module for 5.8.0-34-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-guest-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-34-generic (x86_64)
Consult /var/lib/dkms/virtualbox-guest/6.1.10/build/make.log for more information.
dpkg: error processing package virtualbox-guest-dkms (--configure):
installed virtualbox-guest-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
virtualbox-guest-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
这可能是什么,我应该怎么做(如果有的话)?
发布于 2021-01-07 18:52:27
如果安装了VirtualBox 6.1.16,就不应该从Ubuntu安装virtualbox-guest-dkms
。
您需要从机器菜单(设备)中挂载客户添加,并安装相应的6.1.16客户添加。
发布于 2021-11-05 08:32:40
最简单的,这解决了我的问题。这只是因为您安装了一个已锁定的虚拟客户的早期版本。你需要清除它才能更新它。
sudo apt-获取删除--清除virtualbox-来宾-dkms
发布于 2021-01-08 22:20:21
您需要使用最新的可工作的5.4内核进行引导。
那就成功了。
希望5.8错误很快就能修复。
https://askubuntu.com/questions/1305898
复制相似问题