无法在 ubuntu 12.04 LTS x64 上安装虚拟盒

无法在 ubuntu 12.04 LTS x64 上安装虚拟盒

我从官方网站下载了 x64 版本的 VirtualBox,因为我使用的是 Ubuntu 12.04 LTS x64 版本。它的 .deb 文件有 64 MB。现在,当我尝试安装它时,它会导致错误。

Package operation failed
The installation or removal of a software package failed.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 145794 files and directories currently installed.)
Unpacking virtualbox-4.2 (from .../virtualbox-4.2_4.2.16-86992~Ubuntu~precise_amd64.deb) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
xz: (stdin): Compressed data is corrupt
dpkg-deb (subprocess): subprocess data returned error exit status 1
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg-deb (subprocess): failed in write on buffer copy for failed to write to pipe in copy: Broken pipe
dpkg: error processing /home/anujsharma/Desktop/virtualbox-4.2_4.2.16-86992~Ubuntu~precise_amd64.deb

(--install): 在 `./usr/share/doc/virtualbox-4.2/VirtualBox.chm' 处理 ureadahead 触发器期间对后端 dpkg-deb 的缓冲区复制进行简短读取……

每次发生这种情况都不知道为什么。请帮忙。

答案1

看来你的软件包确实损坏了,可能是下载时出了问题?请从以下网址重新下载这里. 然后看看这里。基本上,您将使用 md5sum 来检查文件是否正常。MD5sum 会生成哈希值,计算文件是否正常。例如,当您刻录希望用于安装/修复系统的 iso 映像时,使用它非常重要。

md5sum virtualbox-4.2_4.2.16-86992~Ubuntu~precise_amd64.deb

检查输出是否与包含的数字相同 这里

答案2

为什么不从 Ubuntu 软件中心安装它?那里有。

在此处输入图片描述

或者直接点击虚拟盒 安装 comixcursors-lefthanded

相关内容