Can't install nmap

Hi,

I can't isntall nmap on my debian 10 server.

When I type in apt install nmap -y I get an error message everytime:
E: "unable to locate package nmap"

3 Replies

When I type in apt install nmap -y I get an error message everytime:
E: "unable to locate package nmap"

I'm assuming you're doing this with sudo. If not, you need to do:

sudo apt install nmap -y

Otherwise, you need to check the files in /etc/apt/sources.d and make sure that the package is actually located at one of the URLs given in those files.

This link may be helpful:

https://packages.debian.org/buster/net/nmap

If all else fails, you can build it from source:

https://nmap.org/download.html

-- sw

You may want to run apt update prior to performing the install. Many packages cannot be found until the package database has been brought up to date.

I have verified that nmap is the correct name for Debian 10. It currently at package version: 7.70+dfsg1-6+deb10u2 as of 05 Feb 2022.

Thank you both, it works now

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct