Erro ao instalar a caixa virtual

1

erro:

  E: Sub-process /usr/bin/dpkg returned an error code (1)

Estou usando o ubuntu 16.10. Estou tentando instalar a caixa virtual, mas ela não está sendo instalada. mostra

 sudo apt-get install virtualbox
 Reading package lists... Done
 Building dependency tree       
Reading state information... Done
virtualbox is already the newest version (5.1.6-dfsg-2).
The following packages were automatically installed and are no longer     required:
  libudev1:i386 linux-image-4.4.0-53-generic
 linux-image-extra-4.4.0-53-generic
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.1.6-2) ...
virtualbox-ext-pack: downloading:        http://download.virtualbox.org/virtualbox/5.1.6/Oracle_VM_VirtualBox_Exten    sion_Pack-5.1.6.vbox-extpack
The file will be downloaded into /usr/share/virtualbox-ext-pack
Hash mismatch Oracle_VM_VirtualBox_Extension_Pack-5.1.6.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)

Eu também tentei

sudo sudo dpkg --configure -a  
sudo rm /etc/apt/sources.list
sudo software-properties-gtk

mas não está funcionando

    
por Yogesh Gaikwad 21.12.2016 / 11:06

1 resposta

1

Tente executar os comandos abaixo:

sudo apt-get purge virtualbox
sudo apt-get update
sudo apt-get install virtualbox

Espero que isso resolva seu problema.

    
por Rakesh C 21.12.2016 / 11:22