首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu20.04.1LTS VirtualBox E:子进程/usr/bin/dpkg返回一个错误代码(1)

Ubuntu20.04.1LTS VirtualBox E:子进程/usr/bin/dpkg返回一个错误代码(1)
EN

Ask Ubuntu用户
提问于 2021-01-11 10:33:22
回答 1查看 1.4K关注 0票数 0

在ubuntu更新了我的virtualbox无法加载我的windows 10 VM之后,每次我尝试打开它时,它都会显示以下错误:vbox误差

我跟读了很多教程,没能让它运行起来。最后重新安装了ubuntu,但是在安装vbox之后,我仍然有同样的问题。

我担心的是,有很多关于如何在网上解决问题的教程,而且我选错了一些,因为我还没有试过它们。有什么想法吗?

安装vbox之后,如果我尝试安装另一个应用程序,比如“git”,它就成功了,但是给出了以下错误:

代码语言:javascript
复制
soldy@soldy:~$ sudo apt-get install git
[sudo] password for soldy: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfprint-2-tod1 libllvm10
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 5464 kB of archives.
After this operation, 38,4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://gr.archive.ubuntu.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26,5 kB]
Get:2 http://gr.archive.ubuntu.com/ubuntu focal/main amd64 git-man all 1:2.25.1-1ubuntu3 [884 kB]
Get:3 http://gr.archive.ubuntu.com/ubuntu focal/main amd64 git amd64 1:2.25.1-1ubuntu3 [4554 kB]
Fetched 5464 kB in 2s (2634 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 177558 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17029-1_all.deb ...
Unpacking liberror-perl (0.17029-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.25.1-1ubuntu3_all.deb ...
Unpacking git-man (1:2.25.1-1ubuntu3) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.25.1-1ubuntu3_amd64.deb ...
Unpacking git (1:2.25.1-1ubuntu3) ...
Setting up liberror-perl (0.17029-1) ...
Setting up git-man (1:2.25.1-1ubuntu3) ...
Setting up virtualbox-dkms (6.1.10-dfsg-1~ubuntu1.20.04.1) ...
Removing old virtualbox-6.1.10 DKMS files...

------------------------------
Deleting module version: 6.1.10
completely from the DKMS tree.
------------------------------
Done.
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
Setting up git (1:2.25.1-1ubuntu3) ...
dpkg: dependency problems prevent configuration of virtualbox:
 virtualbox depends on virtualbox-dkms (>= 6.1.10-dfsg-1~ubuntu1.20.04.1) | virtualbox-source (>= 6.1.10-dfsg-1~ubuntu1.20.04.1) | virtualbox-modules; however:
  Package virtualbox-dkms is not configured yet.
  Package virtualbox-source is not installed.
  Package virtualbox-modules is not installed.
  Package virtualbox-dkms which provides virtualbox-modules is not configured yet.

dpkg: error processing package virtualbox (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of virtualbox-qt:
 virtualbox-qt depends on virtualbox (= 6.1.10-dfsg-1~ubuntu1.20.04.1); however:
  Package virtualbox is not configured yet.

No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                     dpkg: error processing package virtualbox-qt (--configure):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 virtualbox-dkms
 virtualbox
 virtualbox-qt
E: Sub-process /usr/bin/dpkg returned an error code (1)

有什么想法吗?

EN

回答 1

Ask Ubuntu用户

发布于 2021-01-11 10:48:09

您应该删除6.1.10并安装6.1.16。看看这个链接,下载最新版本的https://www.virtualbox.org/wiki/Linux_下载次数。您可能正在体验这种错误https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1891916

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

https://askubuntu.com/questions/1306994

复制
相关文章

相似问题

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