I have been using netstat 1.42 without any problem but yesterday I installed a fresh VPS and when I try to set commands netstat does not show anything.
I use this command to see all active TCP connections:
netstat -tn 2>/dev/null | grep :80| awk '{print $5}' | cut -d: -f1 | sort | uniq | sort -nr | paste -sd, -
When I check the version I see the version 2.10-alpha. How do I change to the 1.42 version or what has changed on this new version?
I'm new in this
net-tools: Installed: (none) Candidate: 1.60+git20180626.aebd88e-1ubuntu2 Version table: 1.60+git20180626.aebd88e-1ubuntu2 500 500 http://nova.clouds.archive.ubuntu.com/ubuntu groovy/main amd64 Packagesbut i want this:net-tools: Installed: 1.60-26ubuntu1 Candidate: 1.60-26ubuntu1 Version table: *** 1.60-26ubuntu1 500 500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages 100 /var/lib/dpkg/statusor what i have to change in my command to get the same output? – Roberto Nervo Jul 08 '21 at 09:07deb http://us.archive.ubuntu.com/ubuntu focal mainin/etc/apt/sources.listwithhttp://nova.clouds.archive.ubuntu.com/ubuntu groovy/mainand runsudo apt updatefinally try again – Morteza Mohammadi Jul 08 '21 at 09:12deb http://us.archive.ubuntu.com/ubuntu focal mainand do stuff – Morteza Mohammadi Jul 08 '21 at 11:03