GUFW not opening on ubuntu 20.04

Bug #1886240 reported by amit dhiman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gufw
Invalid
Undecided
Unassigned

Bug Description

ls: cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file or directory
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 80, in __init__
    self._set_initial_values()
  File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 283, in _set_initial_values
    self.listening = ListeningReport(self)
  File "/usr/share/gufw/gufw/gufw/view/listening.py", line 35, in __init__
    self._show_report()
  File "/usr/share/gufw/gufw/gufw/view/listening.py", line 48, in _show_report
    self._view_report(report, self.previous_report)
  File "/usr/share/gufw/gufw/gufw/view/listening.py", line 83, in _view_report
    self.gufw.listening_model.set_value(iter_row, 1, int(line_split[1].strip())) # port
ValueError: invalid literal for int() with base 10: 'WARN:'

$ apt info gufw
Package: gufw
Version: 20.04.1-1
Priority: optional
Section: universe/admin
Source: gui-ufw
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Python Applications Packaging Team <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3,538 kB
Depends: gir1.2-gtk-3.0, gir1.2-webkit2-4.0, policykit-1, python3-gi, ufw (>= 0.34~rc), python3:any
Homepage: https://costales.github.io/projects/gufw/
Task: ubuntu-mate-desktop
Download-Size: 860 kB
APT-Manual-Installed: yes
APT-Sources: http://in.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
Description: graphical user interface for ufw
 gufw is an easy and intuitive way to manage your Linux firewall. It supports
 common tasks such as allowing or blocking pre-configured, common p2p, or
 individual port(s), and many others!

Revision history for this message
Jose Noel Ramon del rosario (rosarion) wrote :

I am having the same problem ... CANNOT RUN gufw in UBUNTU 20.04
I debug and found out that the script in /usr/bin/gufw-pkexec
is referring to DIRECTORY that is NOT EXISTING
   ls -ld /usr/lib/python*/site-packages/gufw/gufw.py
In my host machine I have this DIRECTORY
   /usr/lib/python3/dist-packages
and there is no gufw DIRECTORY in it.

noel@voxus2004:~$ sudo apt install gufw
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  gufw
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/860 kB of archives.
After this operation, 3538 kB of additional disk space will be used.
Selecting previously unselected package gufw.
(Reading database ... 217446 files and directories currently installed.)
Preparing to unpack .../gufw_20.04.1-1_all.deb ...
Unpacking gufw (20.04.1-1) ...
Setting up gufw (20.04.1-1) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu2) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
noel@voxus2004:~$ sudo apt list gufw
Listing... Done
gufw/focal,now 20.04.1-1 all [installed]
noel@voxus2004:~$ sudo gufw
/usr/bin/gufw: line 2: [: =: unary operator expected
/usr/bin/gufw-pkexec: line 2: ls: command not found
/usr/bin/gufw-pkexec: line 2: awk: command not found
/usr/bin/gufw-pkexec: line 8: python3: command not found

Revision history for this message
costales (costales) wrote :

We'll follow the bug in Github: https://github.com/costales/gufw/issues/9

Thanks for the feedback!

Changed in gui-ufw:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.