Linux command
apport-cli 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Process pending crash reports
apport-cli
Report a bug
apport-cli --file-bug --package [package-name]
Report a bug
apport-cli --file-bug --pid [1234]
Report a problem
apport-cli --file-bug --symptom [audio]
Upload an existing crash report
apport-cli --crash-file [/path/to/report.crash]
Update an existing bug report
apport-cli --update-report [bug-number]
Save report to file
apport-cli --file-bug --package [package-name] --save [report.apport]
说明
apport-cli is a command-line interface for Ubuntu's Apport crash reporting system. It processes crash reports collected in /var/crash/ and allows users to submit them to the bug tracking system with relevant debugging information. When invoked without arguments, it processes pending crash reports interactively. It can also file new bug reports against packages, running processes, or using symptom scripts that guide users through diagnosing specific problem types. Apport automatically collects system information, package versions, stack traces, and other debugging data. This comprehensive information helps developers diagnose and fix issues more effectively than manual bug reports. The tool is primarily intended for server environments where graphical interfaces like apport-gtk are unavailable.
参数
- -f, --file-bug
- Report a non-crash problem; prompts for symptom if package/pid not specified
- -p _package_, --package=_package_
- Specify the package to report the problem against
- -P _pid_, --pid=_pid_
- Report a problem against a running process by its PID
- -s _symptom_, --symptom=_symptom_
- Use a symptom script to guide problem reporting (audio, video, network, etc.)
- -c _report_, --crash-file=_report_
- Upload a stored crash report from a file
- -u _number_, --update-report=_number_
- Collect additional information for an existing bug report
- --save _filename_
- Save the report to a file instead of submitting it
- -w, --window
- Click on an application window to report a bug against it
FAQ
What is the apport-cli command used for?
apport-cli is a command-line interface for Ubuntu's Apport crash reporting system. It processes crash reports collected in /var/crash/ and allows users to submit them to the bug tracking system with relevant debugging information. When invoked without arguments, it processes pending crash reports interactively. It can also file new bug reports against packages, running processes, or using symptom scripts that guide users through diagnosing specific problem types. Apport automatically collects system information, package versions, stack traces, and other debugging data. This comprehensive information helps developers diagnose and fix issues more effectively than manual bug reports. The tool is primarily intended for server environments where graphical interfaces like apport-gtk are unavailable.
How do I run a basic apport-cli example?
Run `apport-cli` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f, --file-bug do in apport-cli?
Report a non-crash problem; prompts for symptom if package/pid not specified