guizaob
(usa Kali)
Enviado em 17/11/2018 - 19:56h
Bom pessoal acabei de fazer dual boot entre um w10 e kali linux, deu tudo certo.
Mas estou com um problema, eu ja adicionei os repositórios ja fiz tudo certinho, mas na hora de dar o
apt-get upgrade
e o
apt-get dist-upgrade
ele dá uns erros, ja tentei apagar o diretorio do erro mas ele da outro erro depois me obriga a atualizar e quando atualizo ele baixa o mesmo erro.Vou mostrar:
root@kali:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
python-anyjson python-backports.ssl-match-hostname python-couchdbkit
python-http-parser python-restkit python-socketpool
Use 'apt autoremove' to remove them.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
root@kali:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
python-anyjson python-backports.ssl-match-hostname python-couchdbkit
python-http-parser python-restkit python-socketpool
Use 'apt autoremove' to remove them.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
Bom ai eu tento remover esse lock desse diretório
rm /var/cache/apt/archives/lock
Ai eu do o comando denovo
apt-get upgrade
root@kali:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
python-anyjson python-backports.ssl-match-hostname python-couchdbkit
python-http-parser python-restkit python-socketpool
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
18 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
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up postgresql-common (194) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package postgresql-common (--configure):
installed postgresql-common package post-installation script subprocess returned error exit status 1
Setting up unattended-upgrades (1.7) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package unattended-upgrades (--configure):
installed unattended-upgrades package post-installation script subprocess returned error exit status 1
Setting up man-db (2.8.4-3) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package man-db (--configure):
installed man-db package post-installation script subprocess returned error exit status 1
Setting up exim4-daemon-light (4.91-8+b1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package exim4-daemon-light (--configure):
installed exim4-daemon-light package post-installation script subprocess returned error exit status 1
Setting up mariadb-server-10.1 (1:10.1.37-1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package mariadb-server-10.1 (--configure):
installed mariadb-server-10.1 package post-installation script subprocess returned error exit status 1
Setting up irqbalance (1.5.0-0.1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package irqbalance (--configure):
installed irqbalance package post-installation script subprocess returned error exit status 1
Setting up locales (2.27-8) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package locales (--configure):
installed locales package post-installation script subprocess returned error exit status 1
Setting up xserver-xorg-legacy (2:1.20.3-1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package xserver-xorg-legacy (--configure):
installed xserver-xorg-legacy package post-installation script subprocess returned error exit status 1
Setting up tasksel (3.48) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package tasksel (--configure):
installed tasksel package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-11:
postgresql-11 depends on locales; however:
Package locales is not configured yet.
postgresql-11 depends on postgresql-common (>= 194~); however:
Package postgresql-common is not configured yet.
dpkg: error processing package postgresql-11 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mailutils:
mailutils depends on default-mta | mail-transport-agent; however:
Package default-mta is not installed.
Package exim4-daemon-light which provides default-mta is not configured yet.
Package mail-transport-agent is not installed.
Package exim4-daemon-light which provides mail-transport-agent is not configured yet.
dpkg: error processing package mailutils (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql:
postgresql depends on postgresql-11; however:
Package postgresql-11 is not configured yet.
dpkg: error processing package postgresql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kali-desktop-common:
kali-desktop-common depends on xserver-xorg-legacy; however:
Package xserver-xorg-legacy is not configured yet.
dpkg: error processing package kali-desktop-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of metasploit-framework:
metasploit-framework depends on postgresql; however:
Package postgresql is not configured yet.
dpkg: error processing package metasploit-framework (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kali-linux:
kali-linux depends on kali-desktop-common; however:
Package kali-desktop-common is not configured yet.
dpkg: error processing package kali-linux (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-faraday:
python-faraday depends on postgresql; however:
Package postgresql is not configured yet.
dpkg: error processing package python-faraday (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of king-phisher:
king-phisher depends on postgresql; however:
Package postgresql is not configured yet.
dpkg: error processing package king-phisher (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kali-linux-full:
kali-linux-full depends on kali-linux; however:
Package kali-linux is not configured yet.
kali-linux-full depends on king-phisher; however:
Package king-phisher is not configured yet.
kali-linux-full depends on metasploit-framework; however:
Package metasploit-framework is not configured yet.
kali-linux-full depends on python-faraday; however:
Package python-faraday is not configured yet.
dpkg: error processing package kali-linux-full (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
postgresql-common
unattended-upgrades
man-db
exim4-daemon-light
mariadb-server-10.1
irqbalance
locales
xserver-xorg-legacy
tasksel
postgresql-11
mailutils
postgresql
kali-desktop-common
metasploit-framework
kali-linux
python-faraday
king-phisher
kali-linux-full
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@kali:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
python-anyjson python-backports.ssl-match-hostname python-couchdbkit
python-http-parser python-restkit python-socketpool
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
18 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
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up postgresql-common (194) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package postgresql-common (--configure):
installed postgresql-common package post-installation script subprocess returned error exit status 1
Setting up unattended-upgrades (1.7) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package unattended-upgrades (--configure):
installed unattended-upgrades package post-installation script subprocess returned error exit status 1
Setting up man-db (2.8.4-3) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package man-db (--configure):
installed man-db package post-installation script subprocess returned error exit status 1
Setting up exim4-daemon-light (4.91-8+b1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package exim4-daemon-light (--configure):
installed exim4-daemon-light package post-installation script subprocess returned error exit status 1
Setting up mariadb-server-10.1 (1:10.1.37-1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package mariadb-server-10.1 (--configure):
installed mariadb-server-10.1 package post-installation script subprocess returned error exit status 1
Setting up irqbalance (1.5.0-0.1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package irqbalance (--configure):
installed irqbalance package post-installation script subprocess returned error exit status 1
Setting up locales (2.27-8) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package locales (--configure):
installed locales package post-installation script subprocess returned error exit status 1
Setting up xserver-xorg-legacy (2:1.20.3-1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package xserver-xorg-legacy (--configure):
installed xserver-xorg-legacy package post-installation script subprocess returned error exit status 1
Setting up tasksel (3.48) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package tasksel (--configure):
installed tasksel package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-11:
postgresql-11 depends on locales; however:
Package locales is not configured yet.
postgresql-11 depends on postgresql-common (>= 194~); however:
Package postgresql-common is not configured yet.
dpkg: error processing package postgresql-11 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mailutils:
mailutils depends on default-mta | mail-transport-agent; however:
Package default-mta is not installed.
Package exim4-daemon-light which provides default-mta is not configured yet.
Package mail-transport-agent is not installed.
Package exim4-daemon-light which provides mail-transport-agent is not configured yet.
dpkg: error processing package mailutils (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql:
postgresql depends on postgresql-11; however:
Package postgresql-11 is not configured yet.
dpkg: error processing package postgresql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kali-desktop-common:
kali-desktop-common depends on xserver-xorg-legacy; however:
Package xserver-xorg-legacy is not configured yet.
dpkg: error processing package kali-desktop-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of metasploit-framework:
metasploit-framework depends on postgresql; however:
Package postgresql is not configured yet.
dpkg: error processing package metasploit-framework (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kali-linux:
kali-linux depends on kali-desktop-common; however:
Package kali-desktop-common is not configured yet.
dpkg: error processing package kali-linux (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-faraday:
python-faraday depends on postgresql; however:
Package postgresql is not configured yet.
dpkg: error processing package python-faraday (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of king-phisher:
king-phisher depends on postgresql; however:
Package postgresql is not configured yet.
dpkg: error processing package king-phisher (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kali-linux-full:
kali-linux-full depends on kali-linux; however:
Package kali-linux is not configured yet.
kali-linux-full depends on king-phisher; however:
Package king-phisher is not configured yet.
kali-linux-full depends on metasploit-framework; however:
Package metasploit-framework is not configured yet.
kali-linux-full depends on python-faraday; however:
Package python-faraday is not configured yet.
dpkg: error processing package kali-linux-full (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
postgresql-common
unattended-upgrades
man-db
exim4-daemon-light
mariadb-server-10.1
irqbalance
locales
xserver-xorg-legacy
tasksel
postgresql-11
mailutils
postgresql
kali-desktop-common
metasploit-framework
kali-linux
python-faraday
king-phisher
kali-linux-full
E: Sub-process /usr/bin/dpkg returned an error code (1)
Por favor me ajudem, já tentei vários métodos em sites gringos e nenhum resolveu, não qria ser aquele tipo de cara que quer tudo na mão e tal mas realmente eu tentei tudo e não consigo.