Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I’m trying to install JDE (Java Development Environment), but apt-get fails with the following error:

me@ubuntu:~/$ sudo add-apt-repository ppa:webupd8team/java
You are about to add the following PPA to your system:
  Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK6 /    JDK7 / JDK8). There are no actual Java files in this PPA. More info:

Debian installation instructions:
 More info:
 Press [ENTER] to continue or ctrl-c to cancel adding it

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/", line 551, in __bootstrap_inner
  File "/usr/lib/python2.7/dist-packages/softwareproperties/", line 99, in run
  File "/usr/lib/python2.7/dist-packages/softwareproperties/", line 132, in add_ppa_signing_key
    tmp_keyring_dir = tempfile.mkdtemp()
  File "/usr/lib/python2.7/", line 322, in mkdtemp
    name =
  File "/usr/lib/python2.7/", line 141, in next
    letters = [choose(c) for dummy in "123456"]
  File "/usr/lib/python2.7/", line 274, in choice
    return seq[int(self.random() * len(seq))]  # raises IndexError if seq is empty
ValueError: cannot convert float NaN to integer

So, please can someone tell me, what can I do?

(Sorry for my bad English, I hope you understand)

share|improve this question

closed as off-topic by Andrea Corbellini, Jorge Castro, Seth, guntbert, Eric Carvalho Aug 27 '13 at 0:32

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Bug reports and problems specific to development version of Ubuntu should be reported on Launchpad so that developers can see, track and fix these issues." – Andrea Corbellini, Jorge Castro, Seth, guntbert, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.

I have Ubuntu 13.04, and just added the repo without errors. Which Ubuntu release are you running? – Mitch Aug 25 '13 at 15:46

1 Answer 1

actually the problem which is bothering you is a Ubuntu BUG. Look at the BUG link . In the bug link Comment #4 and comment #11 have some good information for you.

comment #11 have patch too & apply that patch and its approved.

share|improve this answer
If you apply the patch, report your finding to the bug report. – Braiam Aug 25 '13 at 23:28

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