Ubuntu-bug command can't find Firefox on Lubuntu Kinetic

Bug #1973470 reported by Aaron Rainbolt
38
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Apport
Fix Released
Medium
Unassigned
apport (Ubuntu)
Fix Released
Medium
Unassigned
Jammy
Fix Released
Undecided
Unassigned
xdg-utils (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
New
Undecided
Unassigned

Bug Description

Test hardware is an Elitebook 8570p, 16 GB RAM, 120 GB SSD.

While reporting Bug #1973469, I discovered that ubuntu-bug was unable to open Firefox at the very end of the process. Sadly, I closed the terminal window that contained the initial error, but I was able to easily reproduce it reporting this bug. The full console output of "ubuntu-bug apport" on Lubuntu Kinetic is:

    *** Collecting problem information

    The collected information can be sent to the developers to improve the
    application. This might take a few minutes.
    ..........

    *** Send problem report to the developers?

    After the problem report has been sent, please fill out the form in the
    automatically opened web browser.

    What would you like to do? Your options are:
      S: Send report (5.1 KB)
      V: View report
      K: Keep report file for sending later or copying to somewhere else
      I: Cancel and ignore future crashes of this program version
      C: Cancel
    Please choose (S/V/K/I/C): s

    *** Uploading problem information

    The collected information is being sent to the bug tracking system.
    This might take a few minutes.
    94%

    *** To continue, you must visit the following URL:

      https://bugs.launchpad.net/ubuntu/+source/apport/+filebug/d7ffa3e0-d46d-11ec-a167-40a8f03099c8?

    You can launch a browser now, or copy this URL into a browser on another computer.

    Choices:
      1: Launch a browser now
      C: Cancel
    Please choose (1/C): 1
    /usr/bin/xdg-open: 882: firefox: not found
    /usr/bin/xdg-open: 882: firefox: not found
    xdg-open: no method available for opening 'https://bugs.launchpad.net/ubuntu/+source/apport/+filebug/d7ffa3e0-d46d-11ec-a167-40a8f03099c8?'

I am unsure if this problem is in Apport or Lubuntu. ubuntu-bug works just fine for me on Ubuntu Kinetic, but not on Lubuntu. I suspect this is due to the Snap version of Firefox, but I don't know for sure. Since ubuntu-bug is what gave me the error, I'm filing this against Apport.

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: apport 2.20.11-0ubuntu82
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.470
CurrentDesktop: LXQt
Date: Sun May 15 11:41:07 2022
LiveMediaBuild: Lubuntu 22.10 "Kinetic Kudu" - Alpha amd64 (20220514)
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1973470

tags: added: iso-testing
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks you for you bug report, does that cmd work for you?

$ xdg-open http://www.ubuntu.com

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote (last edit ):

Apologies for the long delay, I've had a lot I was doing.

The command you listed successfully launches Firefox, with https://ubuntu.com in the address bar, and the Ubuntu website visible. Note that I'm on the same Kinetic install that I was on when I first posted the bug report.

Revision history for this message
Leó Kolbeinsson (leok) wrote :

Bug still present Lubuntu Kinectic daily ISO 28-06-2022

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apport (Ubuntu):
status: New → Confirmed
Changed in xdg-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
Benjamin Drung (bdrung) wrote :

I figured out the reason: /usr/bin/apport-bug sets PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin but firefox is a snap living in /snap/bin/firefox.

Changed in xdg-utils (Ubuntu):
status: Confirmed → Invalid
Changed in apport (Ubuntu):
status: Confirmed → Triaged
Benjamin Drung (bdrung)
Changed in apport:
milestone: none → 2.24.0
Changed in apport (Ubuntu):
importance: Undecided → Medium
Changed in apport:
importance: Undecided → Medium
Revision history for this message
Benjamin Drung (bdrung) wrote :
Benjamin Drung (bdrung)
Changed in apport:
status: New → Triaged
Revision history for this message
Benjamin Drung (bdrung) wrote :

I was able to reproduce it on an Lubuntu kinetic-desktop-amd64.iso (from 20220927.4) by running:

```
$ PATH=/usr/sbin:/usr/bin:/sbin:/bin xdg-open https://ubuntu.com
/usr/bin/xdg-open: 882: firefox: not found
/usr/bin/xdg-open: 882: firefox: not found
xdg-open: no method available for opening 'https://ubuntu.com'
```

Steve Langasek (vorlon)
tags: added: foundations-todo
Revision history for this message
Benjamin Drung (bdrung) wrote :
Changed in apport:
status: Triaged → Fix Committed
Benjamin Drung (bdrung)
Changed in apport:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.23.1-0ubuntu1

---------------
apport (2.23.1-0ubuntu1) kinetic; urgency=medium

  * New upstream bug-fix release.
    - Disable debuginfod when collecting a report (LP: #1989803)
    - apport-cli: Fix AttributeError: 'bytes' object has no attribute 'fileno'
      (LP: #1991200)
    - apport-bug: Add `/snap/bin` to `PATH` for Firefox snap on Lubuntu
      (LP: #1973470)
  * Drop cherry-picked upstream patches
  * tests: Fix path for installed apport-cli

 -- Benjamin Drung <email address hidden> Wed, 05 Oct 2022 16:25:48 +0200

Changed in apport (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Chris Guiver (guiverc) wrote :

The issue reported in https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1969291 isn't an issue any longer as of Lubuntu ISO 2022-10-08

(1969291 marked duplicate of this report)

tags: removed: foundations-todo
Revision history for this message
Brian Murray (brian-murray) wrote :

I wonder if this bug wasn't a consequence of the firefox deb not being installed and alternatives not being setup for x-www-browser and gnome-www-browser. More details about that can be found in bug 1992688.

Benjamin Drung (bdrung)
tags: added: jammy
Revision history for this message
Jānis Kangarooo (kangarooo) wrote (last edit ):

@guiverc i just tried latest iso lubuntu-22.04.1-desktop-amd64.iso and reported Bug 2002120 that now is a duplicate of this. So its not fixed.
My bug is about Apport. Is this about ubuntu-bug? So then mine is not duplicate, or why its the same package?
Ubuntu-bug doesnt work for me at all because of Bug #2002119

Revision history for this message
Benjamin Drung (bdrung) wrote :

ubuntu-bug is a command from Apport. This bug is fixed in Ubuntu >= 22.10 (kinetic) but not in 22.04 (jammy) – yet.

Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Aaron, or anyone else affected,

Accepted apport into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apport/2.20.11-0ubuntu82.5 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-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. 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.

Changed in apport (Ubuntu Jammy):
status: New → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
Leó Kolbeinsson (leok) wrote :

Tested ASRock H410M-HDV i5-10400 Motherboard,32GB,Intel UHD Graphics 630,Ethernet,Intel 660p 512GB M.2 NVMe SSD - Lubuntu Jammy daily ISO 13-05-2023
Testing apport proposed fix 2.20.11-0ubuntu82.5 re bug 1973470 - confirm the bug is no longer present

tags: added: verification-done-jammy
removed: verification-needed
Benjamin Drung (bdrung)
tags: added: verification-done
removed: verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.20.11-0ubuntu82.5

---------------
apport (2.20.11-0ubuntu82.5) jammy; urgency=medium

  * apport-gtk: Exclude trailing dot from URL links (LP: #1978301)
  * apport-bug: Add /snap/bin to PATH for Firefox snap on Lubuntu
    (LP: #1973470)
  * test:
    - Clear environment for test_run_as_real_user_no_sudo
    - Fix GTK UI tests if whoopsie.path is disabled
    - tests: Fix GTK UI race condition and reduce timeout again, saving
      five minutes test execution time (LP: #1780767)
    - tests: Fix race in tests for run_report_bug()

 -- Benjamin Drung <email address hidden> Fri, 14 Apr 2023 01:08:26 +0200

Changed in apport (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for apport 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

Remote bug watches

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