如何继续安装软件包?

如何继续安装软件包?

所以我尝试在 Ubuntu 14.04LTS 上安装apktoolkatoolin当安装即将完成时,我不小心关闭了终端。我已经尝试过

sudo dpkg --configure -a

然后弹出这个

dpkg: dependency problems prevent configuration of gconf2:
 gconf2 depends on gconf-service (= 3.2.6-3); however:
  Version of gconf-service on system is 3.2.6-0ubuntu2.
dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 gconf2

% apt-cache policy gconf-service gconf2
gconf-service:
    Installed: 3.2.6-0ubuntu2
    Candidate: 3.2.6-3 
    Version table:
   3.2.6-3 0 
        500 http.kali.org/kali sana/main amd64 Packages
   *** 3.2.6-0ubuntu2 0 
        500 ph.archive.ubuntu.com/ubuntu trusty/main amd64 Packages 
        100 /var/lib/dpkg/status
gconf2:
    Installed: 3.2.6-3 
    Candidate: 3.2.6-3
    Version table:
   *** 3.2.6-3 0 
        500 http.kali.org/kali sana/main amd64 Packages 
        100 /var/lib/dpkg/status 3.2.6-0ubuntu2 0 
        500 ph.archive.ubuntu.com/ubuntu trusty/main amd64 Packages

答案1

你可以做的第一件事是修复损坏的依赖关系

sudo apt-get install -f

的输出表明,所需的apt-cache policy gconf-service gconf2版本是有效的安装候选版本。如果上一个命令没有解决问题,请运行3.2.6-3gconf-service

sudo apt-get install gconf-service=3.2.6-3

但我的建议是,从您的系统中删除 Kali 存储库,并且不要在不知道自己在做什么的情况下使用 Kali:

find /etc/apt -type f -name '*.list' -exec sed -i '/sana/d' {} \;
sudo apt-get update
sudo apt-get install -f

相关内容