Erro de dependências não atendidas ao instalar o Kali 2016

-1

Eu tenho o Ubuntu 16.04 com o Ubuntu-Gnome3-Desktop / Shell. Eu imediatamente executei sudo apt-get upgrade após a instalação, sem problemas. Tudo funcionou lindamente até que eu tentei instalar os pacotes Kali-Linux-2016.1 usando o pacote de ferramentas Katoolin. Repositórios foram adicionados com sucesso, pacotes foram baixados com sucesso, mas quando eu tentei sudo apt-get upgrade eu tive alguns problemas como você verá abaixo no texto retirado diretamente do meu terminal

robert@X17:~$ sudo apt autoremove

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 gnupg2 : Depends: gnupg-agent (= 2.1.11-6ubuntu2)
E: Unmet dependencies. Try using -f.


robert@X17:~$ sudo apt-get install gnupg-agent

Reading package lists... Done
Building dependency tree       
Reading state information... Done
gnupg-agent is already the newest version (2.1.11-7).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 gnupg2 : Depends: gnupg-agent (= 2.1.11-6ubuntu2)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

robert@X17:~$ sudo apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal
  libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal linux-sound-base
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gnupg2
Suggested packages:
  gnupg-doc parcimonie xloadimage
The following packages will be upgraded:
  gnupg2
1 upgraded, 0 newly installed, 0 to remove and 969 not upgraded.
70 not fully installed or removed.
Need to get 0 B/1,389 kB of archives.
After this operation, 3,555 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg: dependency problems prevent processing triggers for gconf2:
 gconf2 depends on python3:any; however:
  Package python3 is not configured yet.

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
 gconf2 depends on python3:any; however:
  Package python3 is not configured yet.
#^^^ These dpkg errors repeat maybe 50 times, I have edited out most repeats for your sake
 gconf2
 gconf2
#(This repeats ~50 times)
 gconf2
 gconf2
 gconf2
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

robert@X17:~$ sudo apt autoremove

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 gnupg2 : Depends: gnupg-agent (= 2.1.11-6ubuntu2)
E: Unmet dependencies. Try using -f.

robert@X17:~$ sudo apt-get remove python3

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 apparmor : Depends: python3:any
 apport : Depends: python3 but it is not going to be installed
 apport-gtk : Depends: python3 but it is not going to be installed
 aptdaemon : Depends: python3 but it is not going to be installed
             Depends: python3:any (>= 3.2~)
 apturl : Depends: python3:any (>= 3.3.2-2~)
 apturl-common : Depends: python3:any (>= 3.3.2-2~)
#...... (many depend on python3)
 usb-creator-gtk : Depends: python3:any (>= 3.3.2-2~)
 xdiagnose : Depends: python3:any (>= 3.3.2-2~)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

robert@X17:~$ sudo apt-get autoremove

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 gnupg2 : Depends: gnupg-agent (= 2.1.11-6ubuntu2)
E: Unmet dependencies. Try using -f.

robert@X17:~$ sudo apt-get install python3

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3 is already the newest version (3.5.1-4).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 gnupg2 : Depends: gnupg-agent (= 2.1.11-6ubuntu2)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

robert@X17:~$ sudo apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal
  libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal linux-sound-base
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gnupg2
Suggested packages:
  gnupg-doc parcimonie xloadimage
The following packages will be upgraded:
  gnupg2
1 upgraded, 0 newly installed, 0 to remove and 969 not upgraded.
70 not fully installed or removed.
Need to get 0 B/1,389 kB of archives.
After this operation, 3,555 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg: dependency problems prevent processing triggers for gconf2:
 gconf2 depends on python3:any; however:
  Package python3 is not configured yet.

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
 gconf2 depends on python3:any; however:
  Package python3 is not configured yet.
#^^^ These dpkg errors repeat maybe 50 times, I have edited out most repeats #    for your sake
dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
No apport report written because MaxReports is reached already
                                                              dpkg: 

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent processing triggers for gconf2:
 gconf2 depends on python3:any; however:
  Package python3 is not configured yet.

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
No apport report written because MaxReports is reached already
                                                              dpkg: too many errors, stopping
Errors were encountered while processing:
 gconf2
 gconf2
#...
 gconf2
 gconf2
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

#Next I tried (with no success) the solution outlined here: https://sobrelinux.info/questions/244127/cannot-install-python3-after-dist-upgrade"fg" to return to nano.

[1]+  Stopped                 sudo nano /usr/lib/python3.5/sre_compile.py

robert@X17:~$ sudo nano /usr/lib/python3.5/sre_compile.py

robert@X17:~$ sudo apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal
  libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal linux-sound-base
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gnupg2
Suggested packages:
  gnupg-doc parcimonie xloadimage
The following packages will be upgraded:
  gnupg2
1 upgraded, 0 newly installed, 0 to remove and 969 not upgraded.
70 not fully installed or removed.
Need to get 0 B/1,389 kB of archives.
After this operation, 3,555 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg: dependency problems prevent processing triggers for gconf2:
 gconf2 depends on python3:any; however:
  Package python3 is not configured yet.

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
 gconf2 depends on python3:any; however:
  Package python3 is not configured yet.

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
 gconf2 depends on python3:any; however:
  Package python3 is not configured yet.

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for gconf2:
 gconf2 depends on python3:any; however:
  Package python3 is not configured yet.
#^^^ These dpkg errors repeat maybe 50 times, I have editted out most repeats #    for your sake

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving triggers unprocessed
No apport report written because MaxReports is reached already
                                                              dpkg: too many errors, stopping
Errors were encountered while processing:
 gconf2
#...
 gconf2

Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)


robert@X17:~(

Qual é o problema aqui e como corrigi-lo?

    
por Robert S 28.07.2016 / 22:51

1 resposta

1

Veja o que fiz e pareceu funcionar.

Reescreva sources.list de /etc/apt usando o arquivo sources.list padrão, conforme especificado na documentação do Ubuntu 16.04.

sudo apt-get update  
sudo apt-get -f install  
sudo apt-get upgrade 

Agora eu entendo que pode haver problemas ao misturar repositórios de diferentes distribuições Debian. Eu posso tentar instalar alguns pacotes padrão do Kali, um pacote por vez, seria mais difícil bagunçar tudo de uma só vez.

    
por Robert S 29.07.2016 / 01:52