reportbug(1)
๐ reportbug(1) โ General Commands Manual ๐
okay bestie, gather round, we're learning reportbug today and honestly? it's iconic. this is from the General Commands Manual section of the manual, and i'm about to make it make sense. ๐ฆ
โจ NAME โจ
reportbug โ reports a bug to a debbugs server ๐
๐ธ SYNOPSIS ๐ธ
reportbug [options] <package | pseudo-package | absolute-pathname>
๐ DESCRIPTION ๐
so reportbug is primarily built to report bugs in the Debian distribution. by default it whips up an email to the Debian bug tracking system at submit@bugs.debian.org with all the deets about the bug you found, and it also makes a carbon copy of the report for you. thoughtful queen behavior. ๐
using the --bts option, you can also report bugs to other servers that use the Debian bug tracking system, debbugs.
you can specify either a package name or a filename. if you go the filename route, it has to be an absolute filename (so, starting with a /), or โ if you want reportbug to go search the system for a filename โ check out the --filename and --path options below. and if it's installed, dlocate gets used too, to figure out where that filename lives and thus which package contains it. no cap. ๐
you can also specify a pseudo-package. these are used in the Debian bug tracking system to track issues that aren't tied to one specific package. run reportbug with zero arguments, then type other at the package prompt, and boom โ you get a list of the most commonly-used pseudo-packages. ๐
โจ OPTIONS โจ
the program follows the usual GNU command line syntax, with long options starting with two dashes (--). a summary of options is included below. ๐ซถ
-h,--helpโ show a summary of the options.--versionโ show the version ofreportbugand exit. bye! ๐-A FILENAME,--attach=FILENAMEโ attach a file to the bug report. both text and binary files are acceptable, and you can specify this option multiple times to attach several files. this routine creates a MIME attachment with the file included; in some cases (usually text files) it's probably better to use the-i/--includeoption. (heads up bestie: Debian's bug tracking system has limited support for MIME attachments. ๐ญ)
this option also supports globbing (i.e. names with wildcards, like file.*) but remember to wrap them in single quotes (so the previous example becomes 'file.*') โ otherwise the shell expands it before it ever calls reportbug, which leads to an error. ๐
also be aware that when you use an external MUA to send the message (such as mutt), the attachment feature is not reliable and no file might get attached at all. instead, use the MUA's own feature to attach files (so, from within the MUA). ๐
--archiveโ also show archived bugs when browsing bugs.-b,--no-query-btsโ don't check the Debian bug tracking system to see if this problem has already been reported. useful for offline use, or if you're really sure it's a bug. confident main character energy. โจ--query-btsโ check the Debian bug tracking system to see if this problem has already been reported (this is the default).-B SYSTEM,--bts=SYSTEMโ instead of the Debian bug server (or the bug server specified in/etc/reportbug.conf), use the server specified by SYSTEM. use--bts=helpto get the list of valid values. note that if your$HOME/.reportbugrcor/etc/reportbug.confincludes ansmtphostsetting that's specific to your default bug server and not a generic smarthost, you may need to override this using--smtphost=<host>to be able to report a bug directly to SYSTEM. ๐--body=BODYโ use the specified BODY string as the body of the message. the body text gets wrapped at 70 columns, and the normalreportbugheaders and footers get added as appropriate. the editor prompt and any "special" prompting get bypassed. ๐--body-file=BODYFILE,--bodyfile=BODYFILEโ the contents of the (assumed to be) text file BODYFILE get used as the message body. this file is assumed to be properly formatted (i.e. reasonable line lengths, etc.). the usual headers and footers get added, and the editor step and "special" prompts get skipped. (BODYFILE may also be a named pipe; using a device special file may lead to unusual results. ๐ซ )-c,--no-config-filesโ omit configuration files from the bug report without asking. by default you get asked if you want to include them; in some cases, doing so may cause sensitive information to be sent via email. โ ๏ธ-C CLASS,--class=CLASSโ specify the report class for GNATS BTSes.--configureโ rerun thereportbugfirst time configuration routine, and write a new$HOME/.reportbugrcfile. this erases any pre-existing settings in the file; however, a backup gets written as$HOME/.reportbugrc~.reportbugexits after rewriting its configuration file, hence this option cannot usefully be combined with many other options. ๐--check-availableโ check for newer releases of the package in Debian package lists (default). in advanced and expert mode, checkhttps://ftp-master.debian.org/new.htmltoo.--no-check-availableโ do not check for newer releases of the package atpackages.debian.org.--debconfโ include debconf settings in your report.--no-debconfโ do not include debconf settings from your report.-d,--debugโ don't send a real bug report to Debian; send it to yourself instead. this is primarily used for testing by the maintainer.--testโ operate in test mode (maintainer use only).--draftpath=DRAFTPATHโ save the draft (for example, when exiting and saving the report without reporting it) into the DRAFTPATH directory (default/tmp).-e EDITOR,--editor=EDITORโ specify the editor to use, overriding anyEDITORorVISUALenvironment variable setting. โ๏ธ--email=ADDRESSโ set the email address your report should appear to be sent from (i.e. the address that appears in theFromheader). this should be the actual Internet email address on its own (i.e. without a real name or comment part, likefoo@example.com). this setting overrides theEMAILandDEBEMAILenvironment variables, but notREPORTBUGEMAIL. ๐ง--envelope-fromโ specify theEnvelope Frommail header (also known asReturn-path); by default it's theFromaddress, but a different one can be selected in case the MTA doesn't canonicalize local users to public addresses. this can be set to the empty string if the MTA does not allow setting the Envelope From.--mbox-reader-cmd=MBOX_READER_CMDโ specify a command to open the bug reports mbox file. you can use%sto substitute the mbox file to be used, and%%to insert a literal percent sign. if no%sis specified, the mbox file name is supplied at the end of the argument list.-f FILENAME,--filename=FILENAMEโ report a bug in the package containing FILENAME, so you don't have to figure out what package the file belongs to. the path gets searched for an exact path for FILENAME before attempting to broaden the search to all files. ifdlocateis installed, FILENAME is actually a regular expression. ๐--from-buildd=BUILDD_FORMATโ this option is a shortcut for buildd admins to report bugs from a buildd log; the option expects a value in the format of$source_$versionwhere$sourceis the source package the bug will be reported against and$versionis its version.--pathโ if the-f/--filenameoption is also specified, only search the path for the specified FILENAME. specifying an absolute path with the-f/--filenameoption (i.e. one beginning with a/) overrides this behavior.-g,--gnupg,--gpgโ attach a digital signature to the bug report using GnuPG (the GNU Privacy Guard). (this argument gets ignored if you're using an MUA to edit and send your report.) ๐-G,--gnusโ use the Gnus mail and news reader to send your report, rather than using the editor.-H HEADER,--header=HEADERโ add a custom RFC2822 header to your email. do not use this option if you want to submit the report using your MUA, because custom headers cannot be passed fromreportbugto the MUA reliably. to send a carbon copy of the report to another recipient usingX-Debbugs-CC, please see the--list-ccoption instead. ๐ซถ-i FILE,--include=FILEโ include the specified FILE as part of the body of the message to be edited. can be used multiple times to add multiple files; text-only please! from a suggestion by Michael Alan Dorman in the bug mailing list. (see also the-A/--attachoption.) ๐-I,--no-check-installedโ do not check whether the package is installed before filing a report. this is generally only useful when filing a report on a package you know is not installed on your system.--check-installedโ check if the specified package is installed when filing reports. (this is the default behavior ofreportbug.)-j JUSTIFICATION,--justification=JUSTIFICATIONโ bugs in Debian that have serious, grave, or critical severities must meet certain criteria to be classified as such. this option lets you specify the justification for a release-critical bug, instead of being prompted for it. ๐-k,--kudosโ send appreciative email to the recorded maintainer address, rather than filing a bug report. (you can also send kudos topackagename@packages.debian.org, for packages in the Debian archive; however, this option uses theMaintaineraddress from the control file, so it works with other package sources too.) giving credit where it's due, we love to see it. ๐-K KEYID,--keyid=KEYIDโ private key to use for PGP/GnuPG signatures. if not specified, the first key in the secret keyring that matches your email address gets used. ๐--latest-firstโ display the bug reports list sorted and with the latest reports at the top.--licenseโ showreportbug's copyright and license information on standard output.--list-cc=ADDRESSโ send a carbon copy of the report to the specified list after a report number is assigned; this is the equivalent to the option-P 'X-Debbugs-CC: ADDRESS'. this option will only work as intended with debbugs systems. โจ--list-cc-meโ bestie, this one sends a carbon copy of the report to your automatically detected email address after a report number is assigned. It sets anX-Debbugs-CCpseudo-header specifying that address. This option will only work as intended with debbugs systems. See the documentation for the--emailoption and the ENVIRONMENT section for info on how reportbug detects your email address. ๐-m,--maintonlyโ Only sends the bug to the package maintainer; the bug tracking system will not send a copy to the bug report distribution lists. ๐--max-attachment-size=MAX_ATTACHMENT_SIZEโ Sets the maximum size any attachment file can have (this also includes the file for the--body-fileoption). If an attachment file is too big, there could be problems delivering the email (and composing it too), so there's a limit. By default this is 10 megabytes. ๐--mirror=MIRRORSโ Add a BTS mirror. ๐ช--mode=MODEโ Set the operating mode forreportbug.reportbugcurrently has four operating modes:novice(the default),standard,advanced, andexpert. โจnovicemode โ designed to minimize prompting about things that "ordinary users" would be unlikely to know or care about, shifting the triage burden onto the maintainer. Checking for new versions is only done for thestabledistribution in this mode. It is currently the default mode. ๐ผstandardmode โ includes a relatively large number of prompts and tries to encourage users to not file frivolous or duplicate bug reports. ๐advancedmode โ likestandardmode, but may include shortcuts suitable for more advanced users of Debian, without being as close to the metal (and potential flamage) asexpertmode. (Currently, the only differences fromstandardmode are that it assumes familiarity with the "new" queue; it allows the reporting of bugs on "dependency" packages; and it does not prompt where to insert the report text in the editor.) โ๏ธexpertmode โ designed to minimize prompts that are designed to discourage frivolous or unnecessary bug reports, "severity inflation," and the like. Inexpertmode,reportbugassumes the user is thoroughly familiar with Debian policies. In practice, this means reporters are no longer required to justify setting a high severity on a bug report, and certain automated cleanups of the message are bypassed. Individuals who do not regularly contribute to the Debian project are highly discouraged from usingexpertmode, as it can lead to flamage from maintainers when used improperly. ๐ฅ
-M,--muttโ Instead of spawning an editor to revise the bug report, use the mutt mail reader to edit and send it. ๐--mta=MTAโ Specify an alternate MTA, instead of/usr/sbin/sendmail(the default). Anysmtphostsetting will override this one. ๐ฌ--mua=MUAโ Instead of spawning an editor to revise the bug report, use the specified MUA (mail user agent) to edit and send it.--muttand--nmhoptions are processed. ๐จ-n,--mh,--nmhโ Instead of spawning an editor to revise the bug report, use thecompcommand (part of the nmh and mh mail systems) to edit and send it. ๐ง-N BUGNUMBER,--bugnumber BUGNUMBERโ Runreportbugagainst the specified bug report, useful when following-up a bug and its number is already known. ๐ข--no-bug-scriptโ Do not execute the bug script (if present); this option can be useful together with--templateto suppress every interactive action, since some bug scripts can ask questions. ๐ โโ๏ธ--no-cc-menuโ Don't display the menu to enter additional addresses (CC). ๐ซ--no-tags-menuโ Don't display the menu to enter additional tags. ๐ท๏ธ-o FILE,--output=FILEโ Instead of sending an email, redirect it to the specified filename. The output file is a full dump of the email message, so it contains both headers and mail body. If you want to use it as a template to create a new bug report, see the--resume-savedoption. ๐พ-O,--offlineโ Disable all external queries. Currently has the same effect as--no-check-available --no-query-bts. โ๏ธ-p,--printโ Instead of sending an email, print the bug report to standard output, so you can redirect it to a file or pipe it to another program. This option only outputs a template for a bug report (but, differently from--templateit's more interactive); you will need to fill in the long description. ๐จ๏ธ--paranoidโ Show the contents of the message before it is sent, including all headers. Automatically disabled if in template mode. ๐--no-paranoidโ Don't show the full contents of the message before it is sent (default). ๐--pgpโ Attach a digital signature to the bug report using PGP (Pretty Good Privacy). Please note, however, that the Debian project is phasing out the use of PGP in favor of GnuPG. (This argument will be ignored if using an MUA to edit and send your report.) ๐--proxy=PROXY,--http_proxy=PROXYโ Specify the WWW proxy server to use to handle the query of the bug tracking system. You should only need this parameter if you are behind a firewall. ThePROXYargument should be formatted as a valid HTTP URL, including (if necessary) a port number; for example,http://192.168.1.1:3128/. ๐-P PSEUDO-HEADER,--pseudo-header=PSEUDO-HEADERโ Add a custom pseudo-header to your report; for example, to add themytagusertag for the userhumberto@example.comto the bug, you could use-P 'User: humberto@example.com' -P 'Usertags: mytag'. ๐ท๏ธ-q,--quietโ Suppress diagnostic messages to standard error. ๐คซ-Q,--query-onlyโ Do not submit a bug report; just query the BTS. Option ignored if you specify--no-bts-query. ๐--query-sourceโ Query on all binary packages built by the same source, not just the binary package specified. ๐ณ--no-query-sourceโ Only query on the binary package specified on the command line. ๐ฏ--realname=NAMEโ Set the real name (human-readable name) to use for your report. ๐ชช--report-quietโ Register the bug in the bug tracking system, but don't send a report to the package maintainer or anyone else.
โ ๏ธ Don't do this unless you're the maintainer of the package in question, or you really know what you are doing. ๐
--reply-to=ADDRESS,--replyto=ADDRESSโ Set theReply-Toaddress header in your report. โฉ๏ธ-r TEMPFILE,--resume-saved=TEMPFILEโ Use this to resume an unsent report previously saved byreportbug. Note that attachments stored inTEMPFILEare ignored; if you want to attach any files you need to do that again. ๐-s SUBJECT,--subject=SUBJECTโ Set the subject of the bug report (i.e. a brief explanation of the problem, less than 60 characters). If you do not specify this switch, you will be prompted for a subject. โ๏ธ--security-teamโ If the 'security' tag is set, this option will explicitly specify to send the report only to the Debian Security Team, as this is an undisclosed vulnerability. ๐ก๏ธ--no-security-teamโ If the 'security' tag is set, this option will explicitly specify to not send the report only to the Debian Security Team, as this is not an undisclosed vulnerability. ๐ซ-S SEVERITY,--severity=SEVERITYโ Specify a severity level, fromcritical,grave,serious,important,normal,minor, andwishlist. ๐ก๏ธ--smtphost=HOST[:PORT]โ Use the mail transport agent (MTA) atHOSTto send your report, instead of your local/usr/sbin/sendmailprogram. This should generally be your ISP's outgoing mail server; you can also use'localhost'if you have a working mail server running on your machine. If thePORTis omitted, the standard port for SMTP, port 25, is used. ๐ฎ--timeout=SECONDSโ Specify the network timeout, the number of seconds to wait for a resource to respond. If nothing is specified, a default timeout of 1 minute is selected.
In case of a network error, there are chances it's due to a too low timeout: try passing the --timeout option with a higher value than default. โณ
--tlsโ If using SMTP, use Transport Layer Security (TLS) encryption to secure the connection to the mail server. Some SMTP servers may require this option. Note that this option is ignored if you connect to your SMTP server via port 465, which already implies using SSL/TLS. ๐--smtpuser=USERNAMEโ If using SMTP, use the specifiedUSERNAMEfor authentication. ๐ค--smtppasswd=PASSWORDโ If using SMTP, use the specifiedPASSWORDfor authentication. If the password isn't specified on the command line or in the configuration file, a prompt will be displayed asking for it.
โ ๏ธ Use of this option is insecure on multiuser systems. Instead, you should set this option in$HOME/.reportbugrcand ensure it is only readable by your user (e.g. withchmod 600 $HOME/.reportbugrc). ๐
--src,--sourceโ Specify to report the bug against the source package, and not the binary package (default behaviour). In order for this option to work, you have to populate the relevant 'deb-src' lines in/etc/apt/sources.listso that apt cache will know about source packages too.
You can also specify the package name with a 'src:' prefix instead of using this option if you already know the name of the source package. ๐ฆ
-t TYPE,--type=TYPEโ Specify the type of report to be submitted; currently accepts eithergnatsordebbugs. ๐-T TAG,--tag=TAGโ Specify a tag to be filed on this report, for example--tag=patch. Multiple tags can be specified using multiple-T/--tagarguments.
Alternatively, you can specify the 'tag' none to bypass the tags prompt without specifying any tags; this will also ignore any tags specified on the command line. ๐ท๏ธ
--templateโ spits out a template report to standard output. โจ lowkey different from-p/--printtho, because it tries to be not interactive and just hands you a template with zero user input. if you wanna dodge all user interaction, you might need to pair it with--no-bug-script. ๐-u INTERFACE,--interface=INTERFACE,--ui=INTERFACEโ pick which user interface to use. the valid options aretext,urwid, andgtk; the default is taken from the reportbug configuration files.-v,--verifyโ verify the integrity of the package (if it's installed) usingdebsumsbefore reporting. ๐--no-verifyโ don't verify the integrity of the package withdebsums.-V VERSION,--package-version=VERSIONโ tell it which version of the package you found the problem in. honestly this is probably most useful if you're reporting a bug in a package that's not installable, or is installed on a whole different system.-x,--no-ccโ don't send a blind carbon copy (BCC) of the bug report to the submitter (i.e. you, bestie ๐ซถ).-z,--no-compressโ don't compress configuration files by removing comments and blank lines.
๐ EXAMPLES ๐
okay so like, here's the vibe:
reportbug lynx-ssl
โ report a bug in the lynx-ssl package. iconic, simple, done. โจ
reportbug --path --filename=ls
โ report a bug in the installed package that includes a program in your path called ls. the way that it hunts it down for you?? ๐
๐ CONFIGURATION FILES ๐
from version 0.22 on, reportbug has supported a simple run control file syntax. commands get read from /etc/reportbug.conf and $HOME/.reportbugrc, and commands in the latter override the ones in the former. (yes bestie, your personal file wins. main character energy. ๐)
commands are not case sensitive, and currently take 0 or 1 argument; arguments that contain whitespace must be enclosed in quotes. ๐
any line starting with # is taken to be a comment and gets ignored, periodt.
generally, options corresponding to the long options for reportbug are supported, without the leading -- sequences. see reportbug.conf(5) for all the acceptable options and the detailed info. ๐
๐ธ ENVIRONMENT ๐ธ
VISUALโ editor to use for editing your bug report.EDITORโ editor to use for editing the bug report (overridden byVISUAL). so like,VISUALis the one calling the shots here. ๐REPORTBUGEMAIL,DEBEMAIL,EMAILโ email address to use as your from address (in this order). if no environment variable exists, the default is taken from your user name and/etc/mailname.DEBFULLNAME,DEBNAME,NAMEโ real name to use; default is taken from/etc/passwd.REPLYTOโ address for the Reply-To header in outgoing mail.MAILCCโ use the specified CC address on your email. note you can also use the-Hoption for this (and for Bcc's too ๐).MAILBCCโ use the specified BCC address, instead of your email address. (CC and BCC based on suggestions from Herbert Thielen in the bug wishlist. shoutout ๐ซถ)http_proxyโ provides the address of a proxy server to handle the BTS query. this should be a valid http URL for a proxy server, including any required port number.
๐จ bestie, listen carefully: simply specifying a hostname, or omitting a port other than 80, WILL NOT WORK. like, it will not work. no cap. ๐
๐ NOTES ๐
reportbug should probably be compatible with other bug tracking systems, like bugzilla (used by the GNOME and Mozilla projects) and jitterbug (used by Samba, AbiSource and FreeCiv) โ but it isn't. ๐ that's it. that's the note. ๐ญ
๐ SEE ALSO ๐
reportbug.conf(5), https://www.debian.org/Bugs/Developer#tags for available tags, querybts(1)
๐ฆ AUTHOR ๐ฆ
Chris Lawrence <lawrencc@debian.org>, Sandro Tosi <morph@debian.org>.
and that's the whole reportbug(1) page bestie, footer and all โ mwah, go file that bug, you're gonna eat ๐
๐โจ
๐ฆ where this page comes from
- debian trixie: reportbug 13.2.0 ยท other
- ubuntu noble: reportbug 13.0.1ubuntu1 ยท other
- ubuntu resolute: reportbug 13.2.0ubuntu1 ยท other
- ubuntu stonking: reportbug 13.2.0+nmu1ubuntu2 ยท other
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms