Fresh install hasn't site-packages directory and this returns a dump

Bug #1873918 reported by costales
50
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Gufw
Fix Released
High
costales
gui-ufw (Ubuntu)
Fix Released
High
Devid Antonio Filoni
Focal
Fix Released
High
Unassigned

Bug Description

[Impact]

On application startup a false-positive error is reported and, under some configurations a UI pop-up is showed by apparmor.

[Test Case]

    1. Install Gufw. Open a Terminal and run these commands:

    2. $ gufw

    3. Bug: After enter your sudo password, you will see this dump and then Gufw will appears:
        costales@ubuntu:~$ gufw
        ls: cannot access '/usr/lib/python*/site-packages/gufw/gufw.py':
         No such file or directory

[Regression Potential]

No regressions as the fix is only redirecting an "handled" error to /dev/null

[Original description]

In a fresh Ubuntu install, the site-packages directory doesn't exist (it is created compiling from source):

costales@acer:~$ ls -ld /usr/lib/python*/site-packages/gufw/gufw.py
ls: cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file or directory
costales@acer:~$

This dump an error (check attachment).

Revision history for this message
costales (costales) wrote :
Changed in gui-ufw:
status: New → Fix Released
assignee: nobody → costales (costales)
importance: Undecided → High
Revision history for this message
costales (costales) wrote :
summary: - Fresh install hasn't site-packages directory
+ Fresh install hasn't site-packages directory and this returns a dump
Changed in gui-ufw (Ubuntu):
assignee: nobody → Devid Antonio Filoni (d.filoni)
importance: Undecided → High
status: New → In Progress
costales (costales)
description: updated
description: updated
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Brian Murray (brian-murray) wrote :

How does this affect the behavior of the system for an end user? Is this something that can proceed as a regular SRU?

Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

Hi Brian,
as soon as the application is started, a crash pop-up is showed to the user.
I decided to upload it even if FinalFreeze is in effect because the fix is small and at the moment of the upload there were more than two days before the release. Feel free to postpone the fix if it's too late to approve it, of course we can also process the package as a SRU.

Revision history for this message
Brian Murray (brian-murray) wrote :

I'll go ahead and accept this as an SRU but please add the SRU template to the bug description. Thanks!

Changed in gui-ufw (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello costales, or anyone else affected,

Accepted gui-ufw into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gui-ufw/20.04.1-1ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Mathew Hodson (mhodson)
Changed in gui-ufw (Ubuntu Focal):
importance: Undecided → High
Revision history for this message
costales (costales) wrote :

Hi,

Test case:

1. Install Gufw. Open a Terminal and run these commands:

2. $ gufw

3. Bug: After enter your sudo password, you will see this dump and then Gufw will appears:
    costales@ubuntu:~$ gufw
    ls: cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file or directory

Under some configurations a UI pop-up is showed, because APPArmor report bug.

4. Install new Gufw version: https://launchpad.net/ubuntu/+archive/primary/+files/gufw_20.04.1-1ubuntu1_all.deb

5. $ gufw

6. Fixed: Enter your sudo password and then Gufw will appears. When you close it, there will not be dumps:
    costales@ubuntu:~$ gufw
    costales@ubuntu:~$

Thanks!

description: updated
Revision history for this message
artella (artella-coding) wrote :

@BrianMurray & costales : I tried the new gufw at https://launchpad.net/ubuntu/+archive/primary/+files/gufw_20.04.1-1ubuntu1_all.deb but still get the error :

cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file or directory

Revision history for this message
artella (artella-coding) wrote :

p.s. I downloaded the deb and installed via "sudo dpkg -i gufw_20.04.1-1_all.deb"

Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

@artella: could you please test the gufw_20.04.1-1ubuntu1_all.deb package? (please note the "ubuntu1" after the version)
You can also install the package by enabling the -proposed repository and upgrading.
Thank you!

Revision history for this message
Brian Murray (brian-murray) wrote :

@Devid - It is also okay for you to verify this fix even though you uploaded it.

Revision history for this message
costales (costales) wrote :

Hi,

As this release is the deb package, looking for /usr/share/gufw/gufw/gufw.py should be enough.

Please, could you check if the patch attachment is working?

Thanks in advance!

Revision history for this message
Devid Antonio Filoni (dfiloni) wrote :

@Bryan: I just tested the package with a 20.04.1 live image and I works fine:

ubuntu@ubuntu:/tmp$ ls /usr/lib/python*/site-packages/gufw/gufw.py
ls: cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file or directory
ubuntu@ubuntu:/tmp$ gufw
ubuntu@ubuntu:/tmp$

Revision history for this message
Devid Antonio Filoni (dfiloni) wrote :

@costales: I think that another fix is not needed since the uploaded-to-proposed one already works, thank you for your effort

Changed in gui-ufw (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gui-ufw - 20.10.0-0ubuntu1

---------------
gui-ufw (20.10.0-0ubuntu1) groovy; urgency=medium

  * New upstream release:
    - Fix LP: #1873918
    - Fix Chromecast rule
    - Add Jellfin rule
    - Update translations

 -- Devid Antonio Filoni <email address hidden> Sat, 12 Sep 2020 13:58:54 +0200

Changed in gui-ufw (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : [gui-ufw/focal] verification still needed

The fix for this bug has been awaiting testing feedback in the -proposed repository for focal for more than 90 days. Please test this fix and update the bug appropriately with the results. In the event that the fix for this bug is still not verified 15 days from now, the package will be removed from the -proposed repository.

tags: added: removal-candidate
Revision history for this message
costales (costales) wrote :

Hi,

I was using it and I confirm the patch is working fine. The release 20.10.0 should be ported to the repositories 20.04.

Best regards.

Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

Hi Brian, sorry for the delay. As per my previously comment (#14) the proposed fix has been tested by me and it works fine.

tags: added: verification-done-focal
removed: removal-candidate verification-needed verification-needed-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gui-ufw - 20.04.1-1ubuntu1

---------------
gui-ufw (20.04.1-1ubuntu1) focal; urgency=medium

  * Add upstream hotfix patch avoid-error-dump.diff to avoid an apparmor
    false positive error dump (LP: #1873918)

 -- Devid Antonio Filoni <email address hidden> Mon, 20 Apr 2020 19:36:51 +0200

Changed in gui-ufw (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for gui-ufw has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

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