Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you install lsof on Debian/kFreeBSD Testing (Wheezy/Sid)?

$ apt-get install lsof
Package lsof is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'lsof' has no installation candidate

Edit: /etc/apt/sources.list:

deb testing main contrib non-free
deb-src testing main contrib non-free

deb testing/updates main contrib non-free
deb-src testing/updates main contrib non-free
share|improve this question
All debian boxes that I've used had it installed by default (Ubuntu, primarily. The true debian boxes that I use are down at the moment, so I can't confirm with them, but I didn't have to tell them to install lsof). – Darth Android Oct 4 '12 at 14:25
Maybe lsof only works on Linux and not kFreeBSD? – grawity Oct 4 '12 at 14:35
up vote 4 down vote accepted

The package lsof is not part of the kFreeBSD variant of Debian as can be confirmed here: Debian software search

Maybe sockstat can be helpful in this context. Sockstat gives you information about the opened sockets like which process/command is using it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.