Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm troubleshooting a GUI crash, so I only have TTY access to my system, and I need to upload my .xsession-errors file. Is there a command to upload a file to an already-existing bug?

share|improve this question

In principle, yes, but it may require launchpad authentication which will try to launch a browser (chicken and egg problem).

Try apport-collect <bug-number>.

share|improve this answer
How does that determine which files to collect? – Ian N Oct 25 '12 at 4:48
Each package can install a file under /usr/share/apport/package-hooks which determines the files that are important for debugging issues with that package. apport-collect will run the appropriate script and attach the needed files. However, if the file you want to attach is not identified here, it will not be attached :/ If that's the case, one thing I can suggest is for you to copy the file to a system with a working browser and attach from there. – roadmr Oct 25 '12 at 13:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.