Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

When I try to add a ppa using the command:

sudo add-apt-repository [insert ppa]

the output I get is:

Error in sitecustomize; set PYTHONVERBOSE for traceback:
EOFError: EOF read where not expected
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 3, in <module>
from __future__ import print_function
EOFError: EOF read where not expected

This is the desktop version. It's a clean install and I didn't get any log errors on install. I haven't added or removed any python versions.

Can someone set me straight on how to fix this?

share|improve this question

closed as off topic by Seth, belacqua, qbi, Luis Alvarado, Raja Feb 7 '13 at 14:06

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.

Can you put in the actual ppa you're using (or any ppa you can give the output from)? –  belacqua Oct 26 '12 at 16:58
You can also try this (a bit of overkill) : sudo strace add-apt-repository ppa:nilarimogard/webupd8 . Substitute in whatever ppa you are using. –  belacqua Oct 26 '12 at 17:34
This question should instead be filed as a bug report, and as such is off-topic, thanks! Instructions on filing a bug report are here. –  Jorge Castro Dec 3 '12 at 17:21
To bugreport, after familiarizing yourself with these guidelines (see also this question, as @JorgeCastro said), run export PYTHONVERBOSE for more detailed error information, configure Apport to collect bug data automatically (optional in this situation as you might be able to give all the necessary info yourself, but it may improve your bug report considerably), run add-apt-repository again, and include the output in your bug report. –  Eliah Kagan Jan 28 '13 at 5:40
@belacqua Unless the problem is deep in the Python interpreter, running strace to debug a Python application probably is overkill indeed. –  Eliah Kagan Jan 28 '13 at 5:41

Browse other questions tagged or ask your own question.