I've had Mint installed as a dual boot on my laptop for some time. I use it as my dev environment, for desktop and web related coding. I recently started getting errors which have rendered my terminal unusable. As soon as I start the program up I get the error
/usr/bin/env: bash: No such file or directory
Whenever I try to run a command, I then get the following output:
brae@G62-Linux ~ $ ifconfig Traceback (most recent call last): File "/usr/lib/command-not-found", line 21, in <module> os.execvp("python3", [sys.argv] + sys.argv) File "/usr/lib/python2.7/os.py", line 344, in execvp _execvpe(file, args) File "/usr/lib/python2.7/os.py", line 380, in _execvpe func(fullname, *argrest) OSError: [Errno 2] No such file or directory
I don't want to start screwing around with files I don't fully understand, and most of the standard things (apt-get update etc.) aren't possible because of the errors. Can anyone give me any advice? I would just blank the partition and reinstall but I really can't be bothered going through all of that if I don't need to.
Thanks very much.
Thanks to the best answer below, I tracked down the problem to my .bashrc file. Turns out something had modified the file to alter the PATH variable with a Ruby environment which was causing the error. I simply deleted this section from the file (in my case this left the .bashrc file empty) and this solved the error. I believe that if this leaves the file blank, you can also change the .bash_profile (or .profile) file to no longer call the .bashrc file as it is not a requirement for the process.
Thanks for you help everyone who answered, particularly apaul