首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >virtualbox-来宾-dkms出错

virtualbox-来宾-dkms出错
EN

Ask Ubuntu用户
提问于 2021-01-07 18:32:24
回答 5查看 17.8K关注 0票数 2

我刚刚在VirtualBox 6.1.16上安装了ubuntu。我开始尝试配置,在运行以下命令之后:$ sudo apt install virtualbox-guest-dkms,我收到以下错误:

代码语言:javascript
运行
复制
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会得到以下结果:

代码语言:javascript
运行
复制
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)

这可能是什么,我应该怎么做(如果有的话)?

EN

回答 5

Ask Ubuntu用户

回答已采纳

发布于 2021-01-07 18:52:27

如果安装了VirtualBox 6.1.16,就不应该从Ubuntu安装virtualbox-guest-dkms

您需要从机器菜单(设备)中挂载客户添加,并安装相应的6.1.16客户添加。

票数 3
EN

Ask Ubuntu用户

发布于 2021-11-05 08:32:40

最简单的,这解决了我的问题。这只是因为您安装了一个已锁定的虚拟客户的早期版本。你需要清除它才能更新它。

sudo apt-获取删除--清除virtualbox-来宾-dkms

票数 1
EN

Ask Ubuntu用户

发布于 2021-01-08 22:20:21

您需要使用最新的可工作的5.4内核进行引导。

那就成功了。

希望5.8错误很快就能修复。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1305898

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档