Estou tentando instalar o nmap no meu sistema operacional Linux, que é o GNU / Linux, versão 4.4.0-83-genérica.
No começo eu instintivamente corri:
sudo apt-get install nmap
E esta é a saída desse comando:
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:
linux-image-extra-4.4.0-91-generic : Depends: linux-image-4.4.0-91-
generic but it is not going to be installed
linux-image-generic-lts-xenial : Depends: linux-image-4.4.0-91-generic
but it is not going to be installed
Recommends: thermald but it is not going to be
installed
nmap : Depends: liblinear1 (>= 1.6) but it is not going to be installed
Depends: liblua5.2-0 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
specify a solution).
eu corri
nmap --version
Mas ele disse que não foi instalado. Então eu corri:
sudo apt-get -f install
Mas isso me deixou com esse erro:
(Reading database ... 369661 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-91-generic_4.4.0-
91.114~14.04.1_amd64.deb ...
Done.
Unpacking linux-image-4.4.0-91-generic (4.4.0-91.114~14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-
91-generic_4.4.0-91.114~14.04.1_amd64.deb (--unpack):
cannot copy extracted data for './boot/abi-4.4.0-91-generic' to
'/boot/abi-4.4.0-91-generic.dpkg-new': failed to write (No space left on
device)
No apport report written because the error message indicates a disk full
error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-91-generic
/boot/vmlinuz-4.4.0-91-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-91-generic
/boot/vmlinuz-4.4.0-91-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.4.0-91-generic_4.4.0-
91.114~14.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Então, depois de algumas pesquisas, eu corri:
sudo apt-get autoremove
E isso removeu um monte de arquivos, incluindo /etc/apt/sources.list. Bom, depois disso eu corri:
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nmap
E agora estou recebendo esta mensagem:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nmap
Conseguiu localizar o nmap antes e agora não pode. Eu suspeito que tenha algo a ver com o /etc/apt/sources.list, mas eu não sei como consertar isso.