Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netstats does not work #3458

Closed
gao4263 opened this issue Aug 11, 2018 · 3 comments
Closed

netstats does not work #3458

gao4263 opened this issue Aug 11, 2018 · 3 comments

Comments

@gao4263
Copy link

gao4263 commented Aug 11, 2018

i run sudo netstat -anp, but get no information, just below content:

(No info could be read for "-p": geteuid()=1000 but you should be root.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node PID/Program name Path

@MVoz
Copy link

MVoz commented Aug 11, 2018

cat /etc/network/interfaces ?

https://wiki.debian.org/NetworkConfiguration

@gao4263
Copy link
Author

gao4263 commented Aug 11, 2018

ifupdown has been replaced by netplan(5) on this system. See

/etc/netplan for current configuration.

To re-enable ifupdown on this system, you can run:

sudo apt install ifupdown

i install ifupdown , work as before , can you run netstats correctly?

@therealkenc
Copy link
Collaborator

therealkenc commented Aug 11, 2018

#2249 (message). On a quick look, the No info could be read for "-p" error is a side effect of there being no entries at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants