Love to have nmap on my #raspberrypi, but:
root@qwers:/home/pi# apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 https://deb.nodesource.com/node_9.x stretch InRelease
Reading package lists... Done
root@qwers:/home/pi# apt-get install nmap
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nmap
apt-cache search nmap
has no result:- and
/etc/apt/sources.list: No such file or directory
Went trough these steps without any result: apt - "E: Unable to locate package update" when I try to update my system, why? - Ask Ubuntu
Ended up here to: Apt "could not find a distribution template" error - Ask Ubuntu with the result of:
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/stretch
/etc/apt/sources.list
file was missing/corrupt/compelte garbage ... changing that file to be the node source list is not really a solution - because now you have no way to update raspbian ... also,/etc/apt/sources.list.d/nodesource.list
is not part of the standard raspbian distro. Clearly when you configured your system to access node repositories, you messed things up badly! – Jaromanda X Jun 12 '18 at 00:06