Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Ubuntu 12.04

When I try to add a new ppa through add-apt-repository, it returns with:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 99, in run
    self.add_ppa_signing_key(self.ppa_path)
  File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 132, in add_ppa_signing_key
    tmp_keyring_dir = tempfile.mkdtemp()
  File "/usr/lib/python2.7/tempfile.py", line 322, in mkdtemp
    name = names.next()
  File "/usr/lib/python2.7/tempfile.py", line 141, in next
    letters = [choose(c) for dummy in "123456"]
  File "/usr/lib/python2.7/random.py", line 274, in choice
    return seq[int(self.random() * len(seq))]  # raises IndexError if seq is empty
ValueError: cannot convert float NaN to integer
share|improve this question
I'm assuming you mean apt-add-repository since what you've mentioned in your title doesn't exist ;) Also, can you please post every piece of output on the terminal, including the command you used? – Chris Wilson Dec 4 '12 at 0:46
what repository did you add? mention the command you used too. – SiddharthaRT Dec 4 '12 at 1:01
This is a reported bug as Nathan says in his answer, so it's off topic. – Eric Carvalho Mar 6 at 16:05

closed as off topic by Eric Carvalho, Mik, Eliah Kagan, Seth, vasa1 Mar 7 at 3:06

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined in the FAQ. 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 closed questions here.

1 Answer

There is a Launchpad bug covering this problem:

https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1063350

share|improve this answer

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