Public bug reported:

Will not run without netstat & net-tools package is neither a dep or installed 
on image by default.
Test case:
Install gufw
Try to open

What happens:
>From terminal will see this message
Traceback (most recent call last):
  File "/usr/share/gufw/gufw/gufw.py", line 30, in <module>
    gufw = Gufw(controler.get_frontend())
  File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 81, in __init__
    self.winadd = Add(self)
  File "/usr/share/gufw/gufw/gufw/view/add.py", line 43, in __init__
    self._set_initial_values()
  File "/usr/share/gufw/gufw/gufw/view/add.py", line 101, in _set_initial_values
    for ifaceName in self.gufw.fw.get_net_interfaces():
  File "/usr/share/gufw/gufw/gufw/model/frontend.py", line 126, in 
get_net_interfaces
    return self.firewall.get_net_interfaces(exclude_iface)
  File "/usr/share/gufw/gufw/gufw/model/firewall.py", line 251, in 
get_net_interfaces
    all_faces = self.backend.get_net_interfaces()
  File "/usr/share/gufw/gufw/gufw/model/ufw_backend.py", line 462, in 
get_net_interfaces
    cmd = self._run_cmd(cmd_ifaces)
  File "/usr/share/gufw/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 676, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'netstat'

Installing the net-tools package allows it to open & run

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: gufw 17.04.1-1
ProcVersionSignature: Ubuntu 4.10.0-19.21-generic 4.10.8
Uname: Linux 4.10.0-19-generic x86_64
ApportVersion: 2.20.4-0ubuntu3
Architecture: amd64
CurrentDesktop: GNOME
Date: Sun Apr  9 13:50:24 2017
InstallationDate: Installed on 2017-04-08 (1 days ago)
InstallationMedia: Ubuntu-GNOME 17.04 "Zesty Zapus" - Beta amd64 (20170407)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gui-ufw
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gui-ufw (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug zesty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1681250

Title:
  Requires netstat (net-tools) to run, but not a dependency

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gui-ufw/+bug/1681250/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to