The correct way to file bugs in Ubuntu

Today I read a post from Matt Zimmerman on the ubuntu-devel list where he says that filing bugs directly to Launchpad is not recommended and not best practice. Instead, Apport should be used whenever possible. Apport assists the user in preparing bug reports that will be as useful as possible to the developers who will have to triage and attend to the bug report in various ways.

lp-bugs

Many of us have told users to file a bug on Launchpad when they encounter bugs that should be reported. I’ve done it before as well, which is why I’m reposting the information to spread the word. Apport is good at picking up crashes in many programs and will automatically run and gather crash report data. Often though, bugs aren’t caused by crashes. Even so, you can still submit your bug reports using Apport:

Using the help menu in your program:

In most programs, you can simply click on the Help menu and click on “Report a Problem”. This will invoke Apport and prepare a bug report. If you’re a developer and would like to add Apport suport to your software, please refer to the Apport Developer Howto.

lp-report

Manually invoking Apport

Perhaps the bug you have encountered prevents you from accessing the Apport menu, or perhaps it’s a program that for various reasons (such as being a command line tool) simply doesn’t have an Apport menu. In such a case, you can press alt+F2 and enter  “ubuntu-bug packagename” where packagename is the name of the package which the bug relates to.

lp-manual

How do you know which package your program belongs to? You can do a search in Synaptic (available from System -> Administration -> Synaptic) or you could check via the command line:

1. Which package does this file belong to?

jonathan@disclaimer:~$ dpkg -S /usr/bin/gnome-terminal
gnome-terminal: /usr/bin/gnome-terminal

2. Search through the APT cache:

jonathan@disclaimer:~$ apt-cache search gnome-terminal
gnome-terminal - The GNOME 2 terminal emulator application
gnome-terminal-data - Data files for the GNOME terminal emulator

The Ubuntu developers expect a big surge in bug reports following up to the release of Ubuntu 9.04 (Jaunty Jackalope), which is due on 23 April. When everyone does their part to make bug reports as good as possible, then there’s less work for the developers and bugs get sorted out quicker!

You may also like...

5 Responses

  1. James says:

    Launchpad has been the de-facto way to report bugs at least in part due to it’s online presence. Apport doesn’t appear to have a main website; bug reports seemingly vanish into the aether. Is there any way to view developer comments on the bug and/or provide more info after the fact?

  2. Flimm says:

    Can third party projects use apport? It doesn’t look like it right now.

  3. mathew says:

    Kubuntu doesn’t include apport.

  4. John G says:

    Nowadays ubuntu-bug also (at least since Quantal, 12.10) has -w option which prompts you to click on the program that you wish to report – if it crashed, start it up again. If its an app inside a terminal, this wont work (it’ll report a bug for the terminal itself, probably not what you want mostly) but you should know what you typed to run the command in the terminal then so can run it directly with the program/package name.

  1. 29 March 2009

    […] Carter: The correct way to file bugs in Ubuntu. Filing bugs is important when you help test new releases, but I found out yesterday I was doing it […]

Leave a Reply

Your email address will not be published. Required fields are marked *