I use Ubuntu 10.10. I abused sudo and accidentally overwrote my /bin/bash file via a typo, so I booted to the LiveCD and restored my copy with a "good" one from the Ubuntu 10.10 LiveOS. This did not fix the problem. Explanation: bash no longer works in gnome-terminal.
- no longer shows username@computername in prompt, just shows $ sign
- keyboard shortcuts no longer work- tab, arrow keys, etc. all insert codes now.
- aliases, also a function of bash, do not work.
Any help on this? Where do I start? I'd rather learn how to fix this instead of just reinstalling the OS. Thanks!
I tried to reinstall bash via Terminal with
sudo apt-get -f install bash but I can't even get it to install with the -f (force) parameter. I get this error:
Errors were encountered while processing: /var/cache/apt/archives/bash_4.1-2ubuntu4_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
P.S. Once I get aliases working again, I'm aliasing "cp" to "cp -i" and "mv" to "mv -i".