Problam与apt-get安装

时间:2018-10-28 13:47:02

标签: ubuntu-16.04 apt-get

我使用的是ubuntu 16.04,上周我尝试在计算机上安装一些虚拟机,但没有成功。 现在,当我尝试从apt-get install安装任何程序时,我得到了以下文本:

sudo apt-get install build-essential git libssl-dev
[sudo] password for eliya: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
git is already the newest version (1:2.7.4-0ubuntu1.5).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.13).
The following packages were automatically installed and are no longer required:
  libavdevice-ffmpeg56 linux-headers-4.4.0-134 linux-headers-4.4.0-134-generic
  linux-image-4.4.0-134-generic linux-image-extra-4.4.0-134-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 103 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.38-0ubuntu1.16.04.1) ...
removing old virtualbox extension packs
virtualbox-ext-pack: downloading: http://download.virtualbox.org/virtualbox/5.1.38/Oracle_VM_VirtualBox_Extension_Pack-5.1.38.vbox-extpack
The file will be downloaded into /usr/share/virtualbox-ext-pack
License accepted.
0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to install "/usr/share/virtualbox-ext-pack/Oracle_VM_VirtualBox_Extension_Pack-5.1.38.vbox-extpack"
VBoxManage: error: The installer failed with exit code 1: VBoxExtPackHelperApp: error: World writable: '/usr'
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg*)" at line 1201 of file VBoxManageMisc.cpp
Hash mismatch Oracle_VM_VirtualBox_Extension_Pack-5.1.38.vbox-extpack: expected e93d87b0f5de50369baca0a48082236b947df5b922ffd0233c0fa92c1206defd, or wrong accept-license key, removing the file.
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 个答案:

答案 0 :(得分:1)

1。重新配置软件包数据库

SELECT c1.*, s1.*
FROM 
concerts AS c1 
JOIN performances AS p1 ON p1.concert_id = c1.concert_id 
JOIN 
(
  SELECT
    s.singer_id, 
    COUNT(c.concert_id) AS num_concerts 
  FROM 
    singers AS s 
  JOIN performances AS p ON p.singer_id = s.singer_id 
  JOIN concerts AS c ON c.concert.id = p.concert_id AND 
                        c.schedule >= '2018-01-01' AND 
                        c.schedule < '2019-01-01'
  GROUP BY s.singer_id 
  HAVING num_concerts > 5
) AS dt ON dt.singer_id = p1.singer_id 
JOIN singers AS s1 ON s1.id = dt.singer_id 
WHERE c1.schedule >= '2018-01-01' 
  AND c1.schedule < '2019-01-01'

2.force install

sudo dpkg --configure -a

然后再次尝试安装virtualbox