I'm trying to install nmap on my linux OS which is version 4.4.0-83-generic GNU/Linux.
At first I instinctively ran:
sudo apt-get install nmap
And this is the output from that command:
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).
But it said it wasn't installed. So I ran:
sudo apt-get -f install
But that left me with this error:
(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)
So after some researching, I ran:
sudo apt-get autoremove
And that removed a bunch of files, including /etc/apt/sources.list. Well, after that I ran:
sudo apt-get clean sudo apt-get update sudo apt-get upgrade sudo apt-get install nmap
And now I'm receiving this message:
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package nmap
It was able to locate nmap before, and now it can't. I suspect it has something to do with /etc/apt/sources.list, but I don't know how to fix this.