apport can't find firefox - FAIL!

Bug #877848 reported by WaltSullivan
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ ubuntu-bug pbuilder
Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 368, in <module>
    app.run_argv()
  File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 553, in run_argv
    return self.run_report_bug()
  File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 369, in run_report_bug
    self.collect_info(symptom_script)
  File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 769, in collect_info
    icthread.exc_raise()
  File "/usr/lib/python2.6/dist-packages/apport/REThread.py", line 34, in run
    self._retval = self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 84, in thread_collect_info
    not apport.packaging.is_distro_package(report['Package'].split()[0])) \
  File "/usr/lib/python2.6/dist-packages/apport/packaging_impl.py", line 134, in is_distro_package
    for line in open(f):
IOError: [Errno 2] No such file or directory: 'firefox'
walt@aardvark:~(1)$ type -a firefox
firefox is /usr/bin/firefox
walt@aardvark:~(0)$ ls -l /usr/bin/firefox
lrwxrwxrwx 1 root root 31 2011-10-03 17:02 /usr/bin/firefox -> ../lib/firefox-7.0.1/firefox.sh
walt@aardvark:~(0)$ dpkg -S /usr/lib/firefox-7.0.1/firefox.sh
firefox: /usr/lib/firefox-7.0.1/firefox.sh
walt@aardvark:~(0)$ dpkg -l firefox
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-===============================-===============================-==============================================================================
ii firefox 7.0.1+build1+nobinonly-0ubuntu0 Safe and easy web browser from Mozilla

$
walt@aardvark:~(0)$ lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.3 LTS
Release: 10.04
Codename: lucid

walt@aardvark:~(0)$ uname -a
Linux aardvark 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:39:17 UTC 2011 x86_64 GNU/Linux

Tags: patch
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
Revision history for this message
Nick Bishop (nick4soup) wrote :

For what it's worth, output from my efforts, as a normal user:

$ ubuntu-bug grub2
Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 368, in <module>
    app.run_argv()
  File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 553, in run_argv
    return self.run_report_bug()
  File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 369, in run_report_bug
    self.collect_info(symptom_script)
  File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 769, in collect_info
    icthread.exc_raise()
  File "/usr/lib/python2.6/dist-packages/apport/REThread.py", line 34, in run
    self._retval = self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.6/dist-packages/apport/ui.py", line 84, in thread_collect_info
    not apport.packaging.is_distro_package(report['Package'].split()[0])) \
  File "/usr/lib/python2.6/dist-packages/apport/packaging_impl.py", line 134, in is_distro_package
    for line in open(f):
IOError: [Errno 2] No such file or directory: 'firefox'

$ id
uid=1005(nick) gid=1005(nick) groups=4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),30(dip),44(video),46(plugdev),104(fuse),1005(nick)
$ apt-cache policy apport
apport:
  Installed: 1.13.3-0ubuntu2
  Candidate: 1.13.3-0ubuntu2
  Version table:
 *** 1.13.3-0ubuntu2 0
        500 http://mirror.internode.on.net/pub/ubuntu/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
$ lsb_release -rd
Description: Ubuntu 10.04.3 LTS
Release: 10.04

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Apport is looking for "firefox" in current working directory. So changing directory to /usr/bin before launching the apport-command works around the issue. Strange that it does not use PATH. Suspect incompatibilty with firefox package from mozillateam PPA.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

My work-around works – but not for the reason I thought. Looks like the mozillateam Firefox PPA package adds an entry to /etc/apport/native-origins.d, which in turn triggers what looks like a trivial bug in /usr/share/pyshared/apport/packaging_impl.py.

The attached patch corrects it for me.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix path when opening files under /etc/apport/native-origins.d" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
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.