brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: ubuntu-bug collects the details for an Ubuntu bug report for you

Ubuntu
~/tips/tip-ubuntu-apport-cli-bug-report

ubuntu-bug openssh-server

Gather versions and logs automatically when you report a problem.

A bug report that says only “it crashes” goes nowhere. Ubuntu has a command that gathers the package versions and system details itself.

Point it at a package, or at a running process ID:

ubuntu-bug openssh-server
ubuntu-bug 1234

For kernel problems the name is linux. On a server without a desktop it falls back to apport-cli, which asks its questions in the terminal. You can also keep the report in a file and look at it, or send it from another machine later:

apport-cli --save=report.apport openssh-server
less report.apport

A crash that already happened often left a file behind:

ls /var/crash/
ubuntu-bug /var/crash/_usr_bin_example.1000.crash

Even when I do not plan to file anything, the saved report is a tidy summary to paste from when asking for help.

Read the contents before you share them. Apport collects a lot of local information, and logs can contain host names, user names or paths you would rather keep to yourself. A crash dump can include data that was in the program’s memory. Submitting needs a Launchpad account, and the report is meant for packages from Ubuntu. For software from another source, report to its own project.

Further reading: ubuntu-bug man page

More Ubuntu tips sudo apt install ppa-purge grep ^Prompt /etc/update-manager/release-upgrades sudo tee /etc/update-motd.d/60-disk >/dev/null <<'EOF' sudo update-alternatives --config editor pro status All Ubuntu tips (8) All topics

Link