I am trying to install a package called nmoldyn in my system. This package caused havoc in my system. It required some packages in python, so what it precisely did was install an older version of python (v 2.5.4) and tried to install other packages along with it. But somehow it was not able to install matplotlib (may be it was trying to install an old version and it was not available from the repository). The major trouble it has caused is that it has changed my path variable to newer version of python (i.e. v 2.5.4) while I earlier had (v 2.7.2). How do I revert back to old path and environment setting ??
harish@harish-lap:~$ apt-cache policy python python: Installed: 2.7.5-5ubuntu3 Candidate: 2.7.5-5ubuntu3 Version table: *** 2.7.5-5ubuntu3 0 500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages 100 /var/lib/dpkg/status harish@harish-lap:~$ type python python is /usr/local/bin/python
harish@harish-desktop:~/dl_class_1.9_serial/execute$ env python Python 2.5.4 (r254:67916, Sep 16 2015, 16:39:34) [GCC 4.8.4] on linux3 Type "help", "copyright", "credits" or "license" for more information. >>> harish@harish-desktop:~/dl_class_1.9_serial/execute$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
EDIT 3 :
harish@harish-desktop:~/dl_class_1.9/execute$ sudo find /usr -type f -name 'python' [sudo] password for harish: /usr/share/lintian/overrides/python /usr/share/bash-completion/completions/python /usr/local/bin/python harish@harish-desktop:~/dl_class_1.9/execute$ command -v python /usr/local/bin/python