Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 http://http.debian.net/debian/ testing main contrib non-free
deb-src http://http.debian.net/debian/ testing main contrib non-free

deb http://security.debian.org testing/updates main contrib non-free
deb-src http://security.debian.org 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

1 Answer 1

up vote 3 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

 
discard

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.