Following update of my Kubuntu, I’m not able to monitor my network consumption using
sudo nethogs enp1s0 creating socket failed while establishing local IP - are you root?
$ uname -a Linux xyz 4.2.0-27-generic #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 15.10 Release: 15.10 Codename: wily
$ nethogs -V version 0.8.0
Here is Solutions:
This is solved by version
As it’s not available in repo nor PPA you need to build it (it is really easy and quickly done).
Fetch and extract the most recent version (as of August 2016, v0.8.5)
wget -c https://github.com/raboof/nethogs/archive/v0.8.5.tar.gz tar xf v0.8.5.tar.gz cd ./nethogs-0.8.5/
Install dependencies and build
sudo apt-get install libncurses5-dev libpcap-dev make && sudo make install
Check and run
nethogs -V sudo nethogs
You can also build from latest source code in the git repository. You still need to install the dependency packages first. After building you can run
nethogs from your current directory:
sudo apt-get install libncurses5-dev libpcap-dev git clone --depth 1 https://github.com/raboof/nethogs.git cd nethogs make sudo ./src/nethogs
You can also find the instructions on the Nethogs project page.
Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂