Tag/tag.png

Candidate for Deletion
This article may not be appropriate for this wiki, and may be deleted. More info...

錯誤回報基本規則

感謝您閱讀本文章,這裡將會指引您該怎麼作來讓您的錯誤報告更為完整,並讓它能夠更快的被處理。本文主要是針對從未回報過Bug的新手所撰寫的,如果您是一位有經驗的回報者,這些準則同樣也對您有幫助,可以促使開發者閱讀您的報告並修好它:

在Launchpad上回報任何與硬體有關的Bug時,請先將您的BIOS,以及週邊硬體(CF卡讀卡機,SSD,USB 3.0 控制器,DVD/CD光碟機等等)的韌體更新至製造商所提供的最新版本。過舊的BIOS以及韌體經常是造成各種硬體發生錯誤的主因(如:斷斷續續的無線網路、電腦無法正常進入睡眠模式、鍵盤上的某些鍵無法正常作動、讀卡機不能用,以及插入USB隨身碟後造成當機停擺(Kernel Panic)的狀況)。若您的電腦製造商有提供較新的BIOS版本,而您卻沒有更新的話,您所回報的問題將會被視為是一不完整(Incomplete)的報告。

Launchpad上引用維基百科及其他非主要來源的資訊作為論據。

許多Linux套件、硬體,以及其他non-user space bugs are hardware dependent on both the hardware itself, and what other hardware the problematic hardware is connected to. The rule of thumb is one report, per person, per hardware combination, per bug. For more on this please see here, and further below in this article. As well, please do not post comments to another person's report, claiming you have the same problem, because you have the same hardware, or same computer model. Instead, please file a separate report, and make comments there. This is because no one can verify if you would have the same problem or not, because your hardware can not be analyzed.

除非上游的維護者或核心的開發者有特別註明,否則針對Linux (Ubuntu)套件中的Bug,您都應該自行安裝最新版的主線核心(mainline kernel)並進行測試。若您尚未進行此測試,無論是否有人更動您的Bug報告的狀態,您的報告都將被視為是一不完整(Incomplete)的報告。

要求非原回報者張貼評論、上傳附件等等。

在張貼評論時回覆如:“Me too!”、“+1”、“bump”、“same here”等等, as it is largely unhelpful, produces spammy e-mail traffic to everyone subscribed to the report, and quite often turns out not to be the same root cause. Instead, please follow the below mentioned procedures.

Please do not stack multiple issues into one report. For example, jamming suspend and hibernate into one report, reporting multiple hotkey problems into one report (ex. Fn+F3 doesn't turn off my laptop WiFi, Fn+Right doesn't turn the brightness on my backlight down, my brightness settings are not remembered after reboot, etc.). Please make one report for each individual problem.

抱怨為什麼修Bug要花這麼久的時間,the severity of your bug is high so it should be fixed immediately, “I cannot believe it’s not fixed…”, XYZ person(s) do not care about fixing bugs, etc. Especially, if you have not followed the directions mentioned in this article, let alone contributed code upstream. This type of behavior is unconstructive, irritating to others who read your e-mail, and spammy. We all want to see every bug fixed as soon as possible! Naturally, bugs being fixed is limited to reproducibility and clarity of the bug report, the actual impact the bug has on the community, and available developer resources.

Please keep the bug objective as possible. It is desired for you to provide a fact based, technical impact statement on you, your environment, and the potential or actual impact on the community at large.

當您在首次回報錯誤時,請根據https://wiki.ubuntu.com/DebuggingProcedures提供所有相關資訊。This is one of the top reasons why bugs do not get marked Triaged, as the minimum requirements for dealing with the problem by a developer are not provided.

If a triager or developer asks you to provide information, please avoid arguing with them. Just provide the information as requested. If you have a strong disagreement with what a triager or developer is asking of you, please resolve it with them via personal message, instead of turning a bug development report into a “let’s talk about talking about the problem” report. The Ubuntu community takes a favor to objective, technical discourse.

Many of the triagers and developers who are providing support to you, are volunteers doing so out of altruism. Please keep this in mind when making your comments.

Please do not report bugs about software in PPAs on Launchpad. This is because software in PPAs are not provided by the official Ubuntu repositories. Instead, the PPA homepage would have a contact point and preference of the PPA provider.

Please do not add project tasks to bug reports that are invalid because they are not supported. For example, if you were using the LibreOffice PPA and reported a bug against the package libreoffice (Ubuntu), which would be marked Status Invalid, please do not add the Launchpad Project df-libreoffice to the report, or change the package libreoffice (Ubuntu) to the project df-libreoffice. The purposes of adding the upstream project to a report is to track valid bugs in Ubuntu that are valid upstream, and may have been reported upstream, not to start another upstream bug tracker.

如何回報Bug

Ubuntu使用Launchpad來作Bug及其修復情況的追蹤。本頁面將會一步一步的指引您該如何建立一份詳盡且優質的報告。

建立您的Launchpad帳號

若您尚未擁有一個帳號,請建立您的Launchpad帳號。接著您將能夠回報新的Bug以及對現存的Bug做出評論。

如何決定一個Bug是否真的是個Bug

You should not file a bug if you are:

Warning /!\ 若您想回報關於翻譯或拼字上的錯誤,請參考這裡的說明。

確定該Bug尚未被回報過

首先,請檢查您Ubuntu版本的發行說明:

硬體驅動程式相關的Bug(如sound、Linux核心、X.Org、及Nvidia / AMD proprietary drivers)

您不是錯誤報告的原回報者

  • Please open a new report instead of adding debugging information, attachments, apport-collect’ing, or “Me too!” comments on what may appear to be a similar bug. Chances are that your hardware does not match the existing bug’s hardware, so your bug and comments will not be addressed. As well, unless asked of you by a developer or triager, please do not mark your bug a duplicate of another reporter's bug.

  • Please do not assume because you have the same desktop or laptop model line as another original reporter’s bug report, that your problem is the same. Frequently, computer vendors use different parts under the hood within the same model line.
  • Regarding peripherals, please do not assume because you have the same peripheral, and similar problems, it is the same bug. Please file a new bug report.

您是錯誤報告的原回報者

若您是錯誤報告的原回報者,這裡有幾個方法可以讓您回報的問題更快被修好:

桌面應用程式

針對桌面應用程式(desktop applications),請先於現存bugs中進行搜尋,確定此問題尚未被回報過。If you find an already reported bug that is exactly like the problem you have, please feel free to add this information to the existing report, rather than opening a new one. However, if you have any doubt as to it being the same or not, please file a separate report.

回到頁首

Reporting a Bug

Reporting an application crash

Please report an application crash via the methods outlined below and at https://wiki.ubuntu.com/DebuggingProgramCrash.

Development release

If an application crashes, and you're using a development release, Apport will start automatically, raising an appropriate bug report for you to complete in Launchpad. This report is subsequently processed by Apport Retracing Service, in order to provide developers with debugging information that make it easier to fix the problem.

Stable release

Apport may come disabled by default. To enable it, edit the file:

/etc/default/apport

並將:

enabled=0

修改為:

enabled=1

Warning /!\ Even when enabled, apport will not upload crash reports to Launchpad for a stable release (see bug #994921). Instead, crash reports are uploaded to http://errors.ubuntu.com. To file a report on Launchpad anyway, one may open the following file via a command line:

gksudo gedit /etc/apport/crashdb.conf

and change:

'problem_types': ['Bug', 'Package'],

修改為:

# 'problem_types': ['Bug', 'Package'],

Save, close, and try to file the crash report again via:

ubuntu-bug /var/crash/_my_crash_report.crash

(NOTE: this not appear to work on Ubuntu 12.04.2 - once started, ubuntu-bug will state "The application X has closed unexpectedly. [Show details] [Leave Closed] [Relaunch]". There is no option to upload the crash report. Instead do 'apport-cli /var/crash/_my_crash_report.crash' which does seem to work.)

Warning /!\ apport will appear to upload a crash report, but only actually does so if whoopsie is installed. Whoopsie is installed by default for users of ubuntu-desktop, but for users of alternative desktops, or for server users, whoopsie has to be installed manually with apt-get install whoopsie. See bug #1001630 for details.

System crash

If your system lockups up, freezes, logs you out, etc., then this is not an application crash, but a system crash. Please see below, and consult the following article for these types of problems https://help.ubuntu.com/community/DebuggingSystemCrash.

Non-crash hardware and desktop application bugs

The method for reporting bugs in Ubuntu is by using the tool “ubuntu-bug”, otherwise known as Apport. When reporting a bug, you must tell Apport which program or package is at fault.

從特定的套件中收集資訊

按下Alt+F2開啟終端機視窗:

Then, type ubuntu-bug <package name> and press Enter. If you’re not sure which package has the problem, refer to the instructions for finding the right package.

Collecting information about a program with a window open

If you want to file a bug about an application but you don't know what that application's package name is, if it has an open window you are in luck.

在您的終端機視窗中執行'ubuntu-bug -w'.

當您關閉上圖中的對話框後the next window that you click on will have a problem report created for the package that created the window.

對目前正在執行中的程式收集資訊

若要針對正在執行中程式來回報Bug,open the System Monitor application and find the ID of the process.

Then type "ubuntu-bug " followed by the process ID into the “Run Command” screen.

Filing a general bug against no particular package

If you’re not sure which package is affected by the bug, type ubuntu-bug in the “Run Command” screen and press Enter. This will guide you through a series of questions to gather more information about the bug.

回到頁首

Complete the bug report filing process

After running one of the above commands, Apport (the Ubuntu bug reporter) will gather information about the bug.

A window will then pop up, asking you if you want to report the bug. Click "Send Report" if you wish to proceed, or click "Content of the report" if you want to review the information Apport collected.

Apport will then upload the problem information to Launchpad, and a new browser window will then open to inform you that the bug report is being processed.

After the bug report data has been processed, a new page will open that will ask you for the bug report's title. The bug title will appear in all bug listings so make sure it represents the bug well. When you're done, click "Next".

A search will then occur based on the title you gave to the bug report, and will show potentially similar ones. If one of these seems to be the exact bug you're reporting, click its title, then "Yes, this is the bug I'm trying to report". If not, click "No, I need to report a new bug".

Launchpad將會要求您填入更多資訊,標明以下這三件事是很重要的:

  1. 您預期會發生的狀況
  2. 實際發生的狀況
  3. 如果可能的話請附上可以重現此問題的步驟,第一步請放上"start the program"

在敘述欄位中盡可能的填入相關訊息,不要擔心寫了太多,資訊過多總是比資訊不足來的好。

在頁面底端還有些額外的選項能讓您的報告更為完整:

  • This bug is a security vulnerability: Please check this only if your bug report describes a behaviour that could be exploited to compromise your security or safety, as well as cause issues such as identity theft or "hi-jacking".

  • Tags: You can add here tags that pertain to your bug report. The predefined values should be left alone.

  • Include an attachment: Using this option, you can add supporting attachments to explain or help others reproduce the bug. This might include a screenshot, a video capture of the problem or a sample document that triggers the fault. If necessary, additional attachments can be added after the bug is reported via Add a comment/attachment at the bottom of the page. Please check https://wiki.ubuntu.com/DebuggingProcedures for anything further information to provide. It is vital for developers to get this information, as it contains the minimum requirement information necessary for a developer to begin working on your bug.

    • Please note that if one files a bug against the linux kernel package, you do not need to add as an attachment the terminal command:

lspci -vvnn
lspci -vnvn

This is due to how Launchpad automatically generates this as an additional attachment.

當您完成後,請按下"Submit bug report".

Tips and tricks

於離線狀態下回報Bug

當您的網路無法正常運作,或是想要為另一台電腦回報Bug時,您依然可以使用apport來作這件事。

First, on the target system, gather the information in a file:

  • For a bug report about a system crash:
    apport-cli -p
    <package name> --save bug.crash

  • For a bug report about any other issue:
    apport-cli -f -p
    <package name> --save bug.apport

You will need to answer a few questions, which will vary depending on which package the bug report is about. Relevant system information, including the package name, is then saved on the target system, in the current directory. The extension indicates if it is a crash report or another kind of report. If you decide to rename the report file, please keep the .apport or .crash extension.

When the file is ready, copy it to the system you intend to use for filing the report. There you can then file the report:

  • ubuntu-bug -c <apport_file.extension>

Warning /!\ 'ubuntu-bug -c x.crash' does not work for crash reports from stable Ubuntu releases (see note about stable releases above).

If this is to be added to an existing bug report, also use the -u option:

  • ubuntu-bug -c <apport_file.extension> -u <bug number>

You will need to answer a few questions, and a web browser will be launched to complete the bug report. Please do not attach the .apport or .crash file to the report, as this is not the same as performing the above mentioned steps.

在Launchpad.net上回報bug

如果因為某些原因您無法使用Apport這個工具來回報Bug,您可以經由Launchpad's own bug report form來回報。當採取此方式回報時,it is best if you have determined which package it should be filed against. Read 'finding the right package' for guidance or use Launchpad's package search feature. 對於大多數的Bug來說,我們不建議您使用這個方式來回報,因為這樣常常會漏掉許多重要的資訊,如果可行的話請用ubuntu-bug來回報!

您也可以用類似以下的網址來回報某個特定套件的Bug:

  • http://bugs.launchpad.net/ubuntu/+source/PACKAGENAME/+filebug?no-redirect

請將網址中的PACKAGENAME改為您想回報的套件名稱。

In the event that you want to request a piece of software be packaged for Ubuntu please follow the instructions in the wiki.

Crashes

If an application crashes, Apport will start automatically, raising an appropriate bug report for you to complete in Launchpad. This provides developers with rich debugging information that will make it easier to fix the problem.

Adding apport-collect information to an existing Launchpad bug

First, please do not run apport-collect more than once per release tested. For example, if you originally reported a bug about Precise via Apport, and then could reproduce it in Quantal, only run apport-collect once in Quantal. This minimizes unnecessary E-Mail traffic to those subscribed to your report and keeps the report efficient. If your problem is in the linux package, and you are not the original reporter, please do not apport-collect to a bug report unless specifically asked of you by a developer or triager. Running apport-collect when not asked creates spammy E-Mail traffic for those subscribed, clutters up the bug report with undesired attachments, and hinders the bug getting addressed quickly. As well, your attachments are subject to deletion at the discretion of developers and triagers. Instead, please open a new report via ubuntu-bug. Otherwise, if you have already reported a bug directly via Launchpad, but want to add additional debugging information via Apport to the bug report, you can do this by running the command:

apport-collect bug_number

via “Run Command” or terminal window.

Please note that attempting to run apport-collect bug_number against a linux package bug report, while booted into a mainline linux kernel will not work. This is due to how Ubuntu does not provide support for mainline kernels. For more on this, please see https://wiki.ubuntu.com/Kernel/MainlineBuilds#Kernel.2BAC8-FAQ.2BAC8-DebuggingMainlineBuildsSupport.Does_the_kernel_team_support_the_mainline_kernel_builds.3F.

Error: The launchpadlib Python module is not installed

若您在執行apport-collect時遇到以下錯誤訊息:

ERROR: The launchpadlib Python module is not installed. This functionality
is not available.

請用以下的指令安裝所需的套件包:

sudo apt-get -y install python-launchpadlib

Package libreoffice not installed and no hook available, ignoring

若在嘗試使用apport-collect時遇上以下的錯誤訊息:

Package libreoffice not installed and no hook available, ignoring

請用以下的指令安裝所需的套件包:

sudo apt-get -y install libreoffice

附加檔案到Launchpad上現存的Bug

Please ensure you do not use URL links to external posting sites (ex. pastebin.com, paste.ubuntu.com, dropbox.com, etc.) or post external hyperlinks for your attachments. Instead, if as per below you should add an attachment to a report, please post it directly to your bug report. As well, please do not compress attachments (.gz, .zip, etc.) or group mulitiple attachments together (.tar.gz). Attach one uncompressed file at a time.

Linux套件的Bug

若您的問題是發生在Linux套件中,而您不是原始回報者且沒有被開發人員或是負責Bug分類的人要求上傳附件的話,請勿上傳任何附件。Adding undesired attachments when not asked creates spammy E-Mail traffic for those subscribed, clutters up the bug report with undesired attachments, and hinders the bug getting addressed quickly. As well, your attachments are subject to deletion at the discretion of developers and triagers. Instead, please open a new report via a terminal:

ubuntu-bug linux

Crash reports

If your attachment is a crash report (ex. found in directory /var/crash), please do not attach it to an existing report. Instead, file a new report via a terminal so that Apport Retracing Service may process it:

ubuntu-bug my_crash_report.crash

Non-crash userspace bugs

有時螢幕截圖(相機或PrtSc鍵)或螢幕錄影(screencast)有助於展現您重現此問題的方法,或是此錯誤產生的結果以及其所造成的影響。

回報關於翻譯上的bug

若您遇上以下情形,請回報關於翻譯上的Bug:

  • 除英文之外的其他語言版本中,應用程式裡的錯誤翻譯或拼字錯誤
  • Errors in spellcheckers or language support
  • A string from an application not available for translation in Launchpad Translations

  • An application from the Ubuntu main repository not available for translation in Launchpad Translations

  • A translation made in Launchpad Translations and not updated in the Ubuntu language packs

  • A duplicate translation template (the same application can be translated in two different places) in Launchpad Translations

  • A template/translation no longer used in Ubuntu and that should be disabled from Launchpad Translations

若有疑問時,你可隨時聯絡Translations team.

所有與翻譯相關的Bug皆需於Ubuntu Translations project上回報。所有的Bug在那裡皆會被分類並指定給適當的人與適當的套件。

回到頁首

尋求建議

對回報Bug的流程還有疑問嗎?您可以在Freenode IRC伺服器上的#ubuntu-bugs頻道中或是在bugsquad mailing list上尋求其他人的協助。

回到頁首

其他語言

回到頁首

延伸閱讀

ReportingBugs_zh-tw (last edited 2017-09-02 05:34:23 by ckimes)