virtualbox-ext-pack E: 子进程 /usr/bin/dpkg 返回错误代码 (1)

virtualbox-ext-pack E: 子进程 /usr/bin/dpkg 返回错误代码 (1)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reinstallation of dpkg is not possible, it cannot be downloaded.
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-45 linux-headers-4.4.0-45-generic linux-headers-4.4.0-47
  linux-headers-4.4.0-47-generic linux-image-4.4.0-45-generic
  linux-image-4.4.0-47-generic linux-image-extra-4.4.0-45-generic
  linux-image-extra-4.4.0-47-generic linux-signed-image-4.4.0-45-generic
  linux-signed-image-4.4.0-47-generic linux-tools-4.4.0-45
  linux-tools-4.4.0-45-generic linux-tools-4.4.0-47
  linux-tools-4.4.0-47-generic ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
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-ext-pack (5.0.18-1) ...
virtualbox-ext-pack: downloading: http://download.virtualbox.org/virtualbox/5.0.18/Oracle_VM_VirtualBox_Extension_Pack-5.0.18.vbox-extpack
The file will be downloaded into /usr/share/virtualbox-ext-pack
Hash mismatch Oracle_VM_VirtualBox_Extension_Pack-5.0.18.vbox-extpack
dpkg: error processing package virtualbox-ext-pack (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 virtualbox-ext-pack
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

可能您必须先卸载或删除与这个新脚本冲突的virtualbox-ext-pack 的后安装脚本,然后尝试安装它。

尝试一下也许能解决你的问题:

sudo apt-get 清除 virtualbox

sudo apt-get 更新

sudo apt-get 安装 virtualbox

相关内容