I recently needed an updated version of Python3 for a project, so I built it from source; and I believe I made a bit of a mess. All apt based operations now end in an error here:
(Reading database ... 320897 files and directories currently installed.)
Removing nvidia-prime (0.6.2) ...
Traceback (most recent call last):
File "/usr/bin/lsb_release", line 28, in <module>
import lsb_release
ImportError: No module named 'lsb_release'
dpkg: error processing package nvidia-prime (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
nvidia-prime
E: Sub-process /usr/bin/dpkg returned an error code (1)
I believe the nvidia error is just more of a symptom than a problem. This was discovered when I was trying to add a source and was met with:
sudo: add-apt-repository: command not found
I'd gladly upgrade this box to 14.10, but all upgrade based commands return the same lsb_release message. Any advice on restoring my package management abilities?
Edit: Updating with python path info
lars@whorus:~/Downloads/Python-3.4.2$ ls -l /usr/bin/python*
lrwxrwxrwx 1 root root 9 Dec 18 10:36 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root 9 Apr 18 2014 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3349512 Mar 22 2014 /usr/bin/python2.7
lrwxrwxrwx 1 root root 9 Mar 23 2014 /usr/bin/python3 -> python3.4
-rwxr-xr-x 2 root root 4061272 Apr 11 2014 /usr/bin/python3.4
-rwxr-xr-x 2 root root 4061272 Apr 11 2014 /usr/bin/python3.4m
lrwxrwxrwx 1 root root 10 Mar 23 2014 /usr/bin/python3m -> python3.4m