Virtualbox 6.1.10,在内核5.8.0上构建的Ubuntu 20.04错误的返回状态,程序包virtualbox-dkms错误 [英] Virtualbox 6.1.10, Ubuntu 20.04 bad return status build on kernel 5.8.0, package virtualbox-dkms error

查看:411
本文介绍了Virtualbox 6.1.10,在内核5.8.0上构建的Ubuntu 20.04错误的返回状态,程序包virtualbox-dkms错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不仅仅是一个文档问题.

Not so much as a question as a documentation.

这与与virtualbox 6.1.10,Ubuntu 20.04和virtualbox-dkms软件包有关的apt-get installupdate失败有关.

This is regarding a failing apt-get install or update related to virtualbox 6.1.10, Ubuntu 20.04, and virtualbox-dkms package failing to build.

我最近在Ubuntu 20.04和Virtual Box 6.1.10中遇到了一个问题,该问题与已记录的问题类似此处.

I had an issue recently with Ubuntu 20.04 and Virtual Box 6.1.10 that's similar to what has been documented here and here.

问题是,从ubuntu软件中心安装虚拟盒安装了v6.1.10,该版本与当前的ubuntu内核版本v 5.8.xx不兼容.

The issue was that installing virtual box from the ubuntu software center installed v6.1.10 which is incompatible with the current ubuntu kernel version, v 5.8.xx.

这些都是已知问题,但是当我错误地尝试从软件包存储区重新安装vbox时出现了我的问题.以前,virtualbox-dkms已被编译并重新安装,从而删除了正常运行的程序包,该程序包因错误(status 10)而失败.所以我最终遇到了这样的错误:

These are all known issues, however my problem arose when I erroneously tried reinstalling vbox from the package store. Previously, virtualbox-dkms, had been compiled and reinstalling removes the functioning package and which fails with an error (status 10). So I ended up with an error like this:

Loading new virtualbox-6.1.10 DKMS files...
Building for 5.8.0-36-generic
Building initial module for 5.8.0-36-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-36-generic (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.10/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
 installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 virtualbox-dkms

可以在以下位置看到此错误:

This error can be seen either at:

cat /var/log/apt/history.log

---或---

/var/log/apt/term.log

为了解决此问题,我按照在此处找到的说明,直接从其网站重新安装了virtualbox v.6.1.16 .

In order to fix this I reinstalled virtualbox v.6.1.16 directly from their website following the instructions found here.

但是,在以后的更新中,即使不再使用该进程,我仍然收到有关virtualbox-dkms的相同错误.因此,为了解决此问题,请访问网站.

However on subsequent updates I was still receiving the same error regarding virtualbox-dkms, even though the process was no longer used. So, in order to fix this, following this site.

我复制了导致失败的安装后脚本:

I copied the post install script that was causing failure:

sudo mv /var/lib/dpkg/info/virtualbox-dkms.postinst ./virtualbox-dkms.postinst.bac

然后清除剩余的dkms文件以进行旧的virtualbox安装并进行更新:\

then purged the remaining dkms files for the old virtualbox installation and did an update:\

sudo apt-get purge virtualbox-dkms
sudo apt-get update && sudo apt-get upgrade

到目前为止,没有问题!希望这对其他人有帮助!

So far no issues! Hope this helps someone else!

TLDR:试图从ubuntu软件管理器重新安装以修复virtualbox v6.10. v6.10在ubuntu 20.04内核v5.8中存在问题.要修复损坏的软件包virtualbox-dkms,请删除安装后脚本并清除旧的virtualbox v6.1.10文件,然后直接从其网站安装virtualbox以获得virtualbox ^ v6.1.16.

TLDR: Tried to reinstall to fix virtualbox v6.10 from ubuntu software manager. v6.10 has issue with ubuntu 20.04 kernel v5.8. To fix broken package, virtualbox-dkms, remove post-install script and purge old virtualbox v6.1.10 files and install virtualbox directly from their website to get virtualbox ^v6.1.16.

推荐答案

我也遇到了同样的问题,并且能够通过以下步骤解决: 首先,使用

I have the same problem too and were able to solve with this steps: First, update and upgrade your ubuntu 20.04 with

sudo apt-get update
sudo apt-get upgrade

然后,删除现有的dkms tree程序包

then, delete the existing dkms tree package

sudo apt-get remove virtualbox-dkms

继续删除虚拟箱

sudo apt-get remove virtualbox
sudo apt-get autoremove

Virtualbox下载页面

wget https://download.virtualbox.org/virtualbox/6.1.16/virtualbox-6.1_6.1.16-140961~Ubuntu~eoan_amd64.deb

使其可执行

sudo chmod +x virtualbox-6.1_6.1.16-140961~Ubuntu~eoan_amd64.deb

安装软件包

sudo dpkg -i virtualbox-6.1_6.1.16-140961_Ubuntu_eoan_amd64.deb

由于某些依赖关系,安装可能会失败,请尝试运行sudo apt-get install -f,然后重新安装软件包.

The installation may failed because of some dependency, try running sudo apt-get install -f and then install the package again.

这篇关于Virtualbox 6.1.10,在内核5.8.0上构建的Ubuntu 20.04错误的返回状态,程序包virtualbox-dkms错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆