<a id="how-to-report-a-bug"></a>

# How to report a bug

#### NOTE
Once a bug is filed, be prepared to answer questions, provide additional details, and test fixes. Engaged reporters get bugs resolved faster. See [The Keys to Successful Bug Reporting](https://ubuntu.com/blog/the-keys-to-successful-bug-reporting).

## Quick start

1. **Confirm it’s a bug** — not a support request, feature request, or an issue caused by unsupported software (PPAs, third-party packages, self-compiled software). See [Determine if it’s really a bug](#determine-if-the-bug-is-really-a-bug).
2. **Search for duplicates** — check the [release notes](https://documentation.ubuntu.com/release-notes/) and [Launchpad](https://bugs.launchpad.net/).
3. **Collect information** — run `ubuntu-bug <package>` (for .deb packages) or `snap report-issue <snap>` (for snaps).
4. **File the report** — provide a clear title, expected vs. actual behaviour, and reproduction steps.
5. **Stay engaged** — respond to questions from triagers and developers.

<a id="getting-support"></a>

## Getting support

Not every problem is a bug. If you’re unsure, or need help debugging, use:

* [Matrix channels](https://documentation.ubuntu.com/project/community/contributors/matrix.md#using-matrix) — live chat with volunteers
* [Ubuntu Discourse](https://discourse.ubuntu.com/) — community forum
* [Community support resources](https://documentation.ubuntu.com/project/community/community-support.md#community-support)

<a id="how-to-report-bugs"></a>

## How to report bugs

Ubuntu uses [Launchpad](https://documentation.ubuntu.com/project/how-ubuntu-is-made/concepts/launchpad.md#about-launchpad) to track bugs. The primary tool for filing bug reports is `ubuntu-bug` (also called `apport-bug` or `apport-collect`), which collects system information and opens a report form in your browser.

For .deb packages:

```none
ubuntu-bug buggy-package-name
```

For snap packages:

```none
snap report-issue buggy-snap-name
```

Snap bug trackers are also listed on each package’s page at [snapcraft.io](https://snapcraft.io/).

<a id="create-a-launchpad-account"></a>

## Create a Launchpad account

You need a [Launchpad account](https://documentation.ubuntu.com/launchpad/user/YourAccount/NewAccount/) to file and comment on bugs.

<a id="determine-if-the-bug-is-really-a-bug"></a>

## Determine if it’s really a bug

Do **not** file a bug if you are:

* **Requesting new software** — see [New Packages](https://documentation.ubuntu.com/project/how-ubuntu-is-made/processes/new-packages.md#new-packages).
* **Requesting support** — see [Community support](https://documentation.ubuntu.com/project/community/community-support.md#community-support).
* **Discussing features or policy** — use the [ubuntu-devel-discuss](https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss) mailing list.
* **Using unsupported software** — software from PPAs, third-party packages, or self-compiled software is not supported by Ubuntu. Reproduce the issue with only supported software installed before filing a bug. If the problem only occurs with unsupported software, contact its maintainer directly. See [package-archive](https://documentation.ubuntu.com/project/how-ubuntu-is-made/concepts/package-archive.md#package-archive) for details on supported repositories.

<a id="perform-a-survey-of-your-problem"></a>

## Check for existing reports

1. Check the [release notes](https://documentation.ubuntu.com/release-notes/) for known issues.
2. Search [Launchpad](https://bugs.launchpad.net/) for duplicate reports.

#### NOTE
For translation or spelling bugs, see [Translation bugs](#filing-a-translation-bug).

<a id="reporting-a-crash"></a>

## Reporting a crash

When an application crashes, [Apport](https://documentation.ubuntu.com/project/contributors/debugging/apport.md#debugging-apport) displays a window offering to collect information and file a report.

![Screenshot of Apport](contributors/qa-and-testing/apport-1.png)

#### NOTE
Install the [whoopsie](https://launchpad.net/ubuntu/+source/whoopsie) package to ensure crash reports are uploaded. It’s installed by default on Ubuntu Desktop, but Ubuntu Server users must install it manually: `sudo apt install whoopsie`.

<a id="reporting-crash-in-the-development-release"></a>

### Development release

In the development release, Apport opens a browser window to file the report on Launchpad. The [Apport Retracing Service](https://help.ubuntu.com/community/ApportRetracingService) automatically processes the report to provide debugging information.

<a id="reporting-a-crash-in-the-stable-release"></a>

### Stable release

By default, Apport uploads crash reports to the [Error Tracker](https://errors.ubuntu.com/), not Launchpad (see [LP: #994921](https://bugs.launchpad.net/bugs/994921)).

To file on Launchpad instead, edit `/etc/apport/crashdb.conf` and comment out:

```python
if _is_ubuntu_stable_release():
    databases["ubuntu"]["problem_types"] = ["Bug", "Package"]
```

Then file the crash report:

```none
ubuntu-bug /var/crash/FILENAME.crash
```

<a id="reporting-a-crash-when-no-message-shows-up-and-crash-files-created"></a>

### Apport created a crash file but no prompt appeared

File the crash report manually:

```none
ubuntu-bug /var/crash/FILENAME.crash
```

To confirm it was uploaded to the Error Tracker, get the ID:

```none
sudo cat /var/lib/whoopsie/whoopsie-id
```

Then visit `https://errors.ubuntu.com/user/ID` (replacing `ID` with the value from the command above).

<a id="reporting-a-crash-when-no-message-shows-up-and-crash-files-not-created"></a>

### Apport didn’t create a crash file

Check that Apport is enabled in `/etc/default/apport`:

```none
enabled=1
```

If Apport is enabled but still not creating crash files:

* **LibreOffice crashes** — neither Apport nor LibreOffice’s built-in reporter may capture these (see [LP: #1537566](https://bugs.launchpad.net/bugs/1537566)).
* **System crashes** (freezes, lockups, logout) — see [Debugging System Crashes](https://help.ubuntu.com/community/DebuggingSystemCrash).
* **Application crashes** — see [Debugging Program Crashes](https://wiki.ubuntu.com/DebuggingProgramCrash).

<a id="reporting-non-crash-hardware-and-desktop-application-bugs"></a>

## Reporting non-crash bugs

Use `ubuntu-bug` to collect information about the problematic package or process.

<a id="collecting-information-from-a-specific-package"></a>

### From a specific package

Press Alt+F2, type `ubuntu-bug <package name>`, and press Enter.

![Filing a bug with the "Run Command" screen](contributors/qa-and-testing/gnome-ubuntu-bug-pkgname.png)

If you don’t know which package is at fault, see [finding the right package](https://wiki.ubuntu.com/Bugs/FindRightPackage).

<a id="collecting-information-from-a-currently-running-program"></a>

### From a running process

Open System Monitor, find the process ID, then run:

```none
ubuntu-bug <PID>
```

<a id="filing-a-general-bug-against-no-particular-package"></a>

### When you don’t know the package

First, [review potential package candidates](https://documentation.ubuntu.com/project/contributors/bug-triage/assign-a-bug-to-a-package.md#how-to-assign-a-bug-to-a-package). If you still can’t identify the package, run `ubuntu-bug` without arguments — it will guide you through questions to help assign the bug.

<a id="complete-the-bug-report-filing-process"></a>

## Completing the bug report

After `ubuntu-bug` collects information, a browser window opens on Launchpad.

1. **Title** — be succinct but descriptive. Example: “On noble, foo fails to launch when started from the application icon”.

   ![Launchpad asking for a bug title](contributors/qa-and-testing/bug-title2.png)
2. **Check for duplicates** — Launchpad searches for similar reports. If one matches, click it and confirm. Otherwise, file a new report.

   ![Launchpad search results about the bug title](contributors/qa-and-testing/bug-search.png)
3. **Describe the bug** — include:
   * What you expected to happen
   * What actually happened
   * Minimal reproduction steps (starting with “start the program”)
4. **Additional options:**
   * **Security vulnerability** — check only if the bug could be exploited to compromise security.
   * **Tags** — add relevant [tags](https://documentation.ubuntu.com/project/contributors/bug-triage/bug-tags.md#bug-tags). Leave predefined values as-is.
   * **Attachments** — screenshots, logs, or sample files that demonstrate the issue. For kernel bugs, `lspci` output is collected automatically — no need to attach it separately.

   ![Launchpad presenting extra options](contributors/qa-and-testing/extra-options2.png)
5. Click **Submit bug report**.

<a id="tips-and-tricks"></a>

## Tips and tricks

<a id="filing-bugs-when-offline-or-using-a-headless-setup"></a>

### Filing from an offline or headless system

**For crashes:** copy the `.crash` file from `/var/crash/` to a connected machine and run:

```none
ubuntu-bug FILENAME.crash
```

**For other bugs:** save the report on the problem machine:

```none
ubuntu-bug PACKAGENAME --save FILENAME.apport
```

Copy the file to a connected machine and file it:

```none
ubuntu-bug FILENAME.apport
```

Do not attach `.apport` or `.crash` files directly to a report — use the commands above so the data is processed correctly.

<a id="filing-bugs-manually-at-launchpad-net"></a>

### Filing manually at Launchpad

If `ubuntu-bug` doesn’t work, file directly at [bugs.launchpad.net/ubuntu/+filebug](https://bugs.launchpad.net/ubuntu/+filebug). This method is discouraged because the report may lack important system information. Use `ubuntu-bug` whenever possible.

You can also use a direct URL:

```none
https://bugs.launchpad.net/ubuntu/+source/PACKAGENAME/+filebug?no-redirect
```

<a id="error-the-launchpadlib-python-module-is-not-installed"></a>

### Error: launchpadlib Python module not installed

Install the required package:

```none
sudo apt install python3-launchpadlib
```

<a id="package-libreoffice-not-installed-and-no-hook-available-ignoring"></a>

### Error: Package libreoffice not installed and no hook available

Install LibreOffice:

```none
sudo apt install libreoffice
```

<a id="non-crash-userspace-bugs"></a>

### Capturing non-crash issues

A screenshot or [screencast](https://help.ubuntu.com/community/Screencast) can help demonstrate the problem.

<a id="translation"></a>

<a id="filing-a-translation-bug"></a>

### Translation bugs

File translation bugs against the [Ubuntu Translations project](https://bugs.launchpad.net/ubuntu-translations) for:

* Wrong translations or spelling mistakes in non-English languages
* Spellchecker or language support errors
* Strings not available for translation in [Launchpad Translations](https://translations.launchpad.net/ubuntu)
* Translations not updated in Ubuntu language packs
* Duplicate translation templates

If unsure, [contact the Translations team](https://wiki.ubuntu.com/Translations/Contact).

<a id="bug-reporting-etiquette"></a>

## Bug reporting etiquette

<a id="all-bug-reports"></a>

### General guidelines

* **One issue per report.** Don’t combine multiple problems (e.g. suspend and hibernate) into a single report.
* **Search before filing.** Check for existing reports, but don’t speculate about duplicates — file a new report if you’re unsure.
* **Include all requested information upfront.** See [How to debug an Apport crash](https://documentation.ubuntu.com/project/contributors/debugging/debug-an-apport-crash.md#how-to-debug-an-apport-crash). Missing information is the top reason bugs don’t get triaged.
* **Test the latest version.** Try the latest upstream release and the latest development release before filing.
* **No “me too” comments.** If you have the same bug, file a separate report with your own debugging information.
* **Don’t post log URLs.** Paste the full content directly into the report — don’t link to pastebin or similar services.
* **Don’t compress attachments.** Launchpad accepts large attachments.
* **Don’t reopen fixed bugs.** If a problem reoccurs in a newer version, file a new report.
* **Be objective.** Provide facts and technical impact, not opinions or complaints.
* **Respect triagers and developers.** Many are volunteers. If asked for information, provide it without arguing.
* **Don’t run `apport-collect` on other people’s reports** unless asked by a triager.

<a id="hardware-bug-reports-linux-kernel-xorg-sound-etc"></a>

### Hardware bug reports

* **Update BIOS and firmware first.** Outdated firmware causes many hardware issues. See [BIOS Update](https://help.ubuntu.com/community/BIOSUpdate).
* **One report per hardware configuration.** Hardware bugs are specific to the combination of components.
* **Don’t comment on others’ hardware reports.** File your own report — even with similar hardware, the root cause may differ.

<a id="getting-advice"></a>

## Getting advice

Still have questions? Ask in [Matrix](https://matrix.to/#/#discuss:ubuntu.com).
