You are not logged in.
Pages: 1
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
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
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
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
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
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
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
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
Finally got gufw working it is an unlisted dependency, you need to install net-tools package.
Offline
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
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
Pages: 1