You are not logged in.

#1 2016-10-26 20:17:00

Robert42
Member
Registered: 2016-04-21
Posts: 12

Unable to get gufw to run

Running Arch 64 bit with Cinnamon DE.

I have installed ufw as per the Wiki and modified the examples for my network. ufw status shows it is enabled and the rules are set.

I cannot get the front end gufw to run. It attempts to open by requesting authorisation and making the open sound. I have checked that all dependencies have been installed. Run from the command line here is the errors.

[root@Dragon]: /home/robert># gufw
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/gufw/gufw.py", line 30, in <module>
    gufw = Gufw(controler.get_frontend())
  File "/usr/lib/python3.5/site-packages/gufw/gufw/view/gufw.py", line 81, in __init__
    self.winadd = Add(self)
  File "/usr/lib/python3.5/site-packages/gufw/gufw/view/add.py", line 43, in __init__
    self._set_initial_values()
  File "/usr/lib/python3.5/site-packages/gufw/gufw/view/add.py", line 101, in _set_initial_values
    for ifaceName in self.gufw.fw.get_net_interfaces():
  File "/usr/lib/python3.5/site-packages/gufw/gufw/model/frontend.py", line 126, in get_net_interfaces
    return self.firewall.get_net_interfaces(exclude_iface)
  File "/usr/lib/python3.5/site-packages/gufw/gufw/model/firewall.py", line 251, in get_net_interfaces
    all_faces = self.backend.get_net_interfaces()
  File "/usr/lib/python3.5/site-packages/gufw/gufw/model/ufw_backend.py", line 462, in get_net_interfaces
    cmd = self._run_cmd(cmd_ifaces)
  File "/usr/lib/python3.5/site-packages/gufw/gufw/model/ufw_backend.py", line 37, in _run_cmd
    proc = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'netstat'

Offline

#2 2016-10-26 20:28:45

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Unable to get gufw to run

What command did you use to install it?  Are you 100% sure this is an up-to-date system?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2016-10-26 20:40:54

Robert42
Member
Registered: 2016-04-21
Posts: 12

Re: Unable to get gufw to run

loafer wrote:

What command did you use to install it?  Are you 100% sure this is an up-to-date system?

sudo pacman -Sy gufw

No errors during installation. I have just had a look in the AUR package  page and it was last updated today.

Offline

#4 2016-10-26 20:50:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Unable to get gufw to run

Robert42 wrote:

sudo pacman -Sy gufw

Don't do that...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-10-26 21:17:40

Robert42
Member
Registered: 2016-04-21
Posts: 12

Re: Unable to get gufw to run

jasonwryan wrote:
Robert42 wrote:

sudo pacman -Sy gufw

Don't do that...

I read the link then to pacman wiki to double check. I uninstalled

sudo pacman -R gufw

and reinstalled

sudo pacman -Syu gufw

Still not behaving any better.

Offline

#6 2016-10-27 00:07:38

atomicbeef
Member
Registered: 2015-09-30
Posts: 98

Re: Unable to get gufw to run

Did you read the article? Partial upgrades are unsupported. Try running

pacman -Syu

to bring your system to a consistent state. After that, don't install packages using the -y flag and always update by running the above command.

Offline

#7 2016-10-27 21:28:32

nallekarhu
Member
Registered: 2016-07-21
Posts: 5

Re: Unable to get gufw to run

I have the same problem with identical error message on two different computers. Both systems are 100% up-to-date. Ufw status is active.

Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/gufw/gufw.py", line 30, in <module>
    gufw = Gufw(controler.get_frontend())
  File "/usr/lib/python3.5/site-packages/gufw/gufw/view/gufw.py", line 81, in __init__
    self.winadd = Add(self)
  File "/usr/lib/python3.5/site-packages/gufw/gufw/view/add.py", line 43, in __init__
    self._set_initial_values()
  File "/usr/lib/python3.5/site-packages/gufw/gufw/view/add.py", line 101, in _set_initial_values
    for ifaceName in self.gufw.fw.get_net_interfaces():
  File "/usr/lib/python3.5/site-packages/gufw/gufw/model/frontend.py", line 126, in get_net_interfaces
    return self.firewall.get_net_interfaces(exclude_iface)
  File "/usr/lib/python3.5/site-packages/gufw/gufw/model/firewall.py", line 251, in get_net_interfaces
    all_faces = self.backend.get_net_interfaces()
  File "/usr/lib/python3.5/site-packages/gufw/gufw/model/ufw_backend.py", line 462, in get_net_interfaces
    cmd = self._run_cmd(cmd_ifaces)
  File "/usr/lib/python3.5/site-packages/gufw/gufw/model/ufw_backend.py", line 37, in _run_cmd
    proc = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'netstat'

Offline

#8 2016-10-27 21:35:36

atomicbeef
Member
Registered: 2015-09-30
Posts: 98

Re: Unable to get gufw to run

Do you have the net-tools package installed? It is not installed by default and contains the netstat program. The error indicates that gufw can't find netstat, so that's probably your fix. I would also file a bug report about the missing dependency if this turns out to be the problem.

Last edited by atomicbeef (2016-10-27 21:35:46)

Offline

#9 2016-10-27 22:45:27

loqs
Member
Registered: 2014-03-06
Posts: 17,410

Re: Unable to get gufw to run

The conversion to use netstat appears to be this change http://bazaar.launchpad.net/~costales/g … revision/5
This change may be more of an issue http://bazaar.launchpad.net/~costales/g … revision/6 as there is no '--all-ip-addresses' option to the hostname command as supplied by arch.

Offline

#10 2016-10-28 09:43:56

Robert42
Member
Registered: 2016-04-21
Posts: 12

Re: Unable to get gufw to run

Finally got gufw working it is an unlisted dependency, you need to install net-tools package.

Offline

#11 2016-10-28 11:12:14

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Unable to get gufw to run

Robert42 wrote:

Finally got gufw working it is an unlisted dependency, you need to install net-tools package.

Did you raise the bug report?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#12 2016-10-28 11:59:09

Robert42
Member
Registered: 2016-04-21
Posts: 12

Re: Unable to get gufw to run

loafer wrote:
Robert42 wrote:

Finally got gufw working it is an unlisted dependency, you need to install net-tools package.

Did you raise the bug report?

I might be dumb but I spent over an hour tryng to get that page to work for me. Yes and I did read the wiki. Gave up in the end as I am sure someone else will do it.

Offline

Board footer

Powered by FluxBB