This is Debian Bug #541172 [1]. There's a patch available there at message #15 [2], but it didn't make into the package. It fixes the problem.
Unfortunately it seems there's some issue contacting the package maintainers, given that bug's age. I tried to help there. [1] https://bugs.debian.org/541172 [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=15;filename=netstat.c.patch;att=1;bug=541172 ** Bug watch added: Debian Bug tracker #541172 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=541172 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to net-tools in Ubuntu. https://bugs.launchpad.net/bugs/1251563 Title: netstat command returns nozero even if successively executing To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/net-tools/+bug/1251563/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs