The error was when I was adding the ppa in terminal.
At some point I was trying to add caffeine ppa and it gave a weird python error and did not complete the repo adding correctly or at all. After this occurred, I was not able to add any PPAs what so ever.
*Tried repairing with PPA manager. So I also did use "Y PPA managers" tools like:
Try to import all missing GPG keys. Try to fix all GPG BADSIG errors. Re-enable working PPAs after Ubuntu upgrade.
This did not resolve anything. It rather introduced the problem I have now, which I gave a pastebin link to. Any suggestions?
The exact python error I get. Even after a fresh install. Nothin done to the system besides updating via terminal: sudo apt-get -y update
ERROR
alar@GA-7VASMFS:~$ sudo add-apt-repository ppa:linrunner/tlp You are about to add the following PPA to your system: TLP is a power management tool for Linux. It brings you the benefits of advanced power management without the need to understand every technical detail.
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
1) It adds the ppa but not the GPG key. 2) Remove the ppa with Y PPA Manager (wait until it flashes a couple of notices, the last one says Successful) 3) Close Y PPA Manager 4) In Terminal do : sudo apt-get -y update
An in-between other way to add PPA in LXLE 12.04.4 32bit:
1) Open Y PPA Manager under Start > System Tools > Y PPA Manager 2) Click "add a PPA" > Typer your password > copy paste "add-apt-repositiry ppa:linrunner/tlp" without the exclamation marks > Click "OK" > Wait for the Notice that says "Successful" 3) In Terminal do : sudo apt-get -y update
NO! Still no results. It has a fundamental issue with getting the GPG key!
Re-downloaded the iso file. This time made the usb stick with KDE Partition Manager + Startup Disk Creator (KDE). The USB booted fine this time. The PPA issue still presist. Even though I didn't even tick the two boxes for the updates at the beginning.
Going to investigate if setting the language to Estonian at the beginning for the DE environment has something to do with python going nuts.