yeaitsdark
October 13th, 2008, 05:50 PM
The other day I inadvertently overwrote my /bin/sh file. I simply made a script and issued:
(Do not execute this on your system else you'll have same issue as me)
sudo cp script1 /bin/sh
(Granted, you prolly won't just happen to have a script1 file, still don't execute the above)
What I meant to issue was:
sudo cp script1 /usr/bin
My mind wasn't quite working properly that night...Alas, end of the back story.
At any rate, I have tried to recopy the links and files from another installation of Ubuntu Server 8.04 however, I am at a loss as to how exactly I can repair this.
The error(s) I receive is:
sh
Result: "-bash: /bin/sh: No such file or directory"
sudo sh
Result: "sudo: unable to execute /bin/sh: No such file or directory."
Any way to resolve this issue without reinstalling? Thanks in advance for your help/advice.
(Do not execute this on your system else you'll have same issue as me)
sudo cp script1 /bin/sh
(Granted, you prolly won't just happen to have a script1 file, still don't execute the above)
What I meant to issue was:
sudo cp script1 /usr/bin
My mind wasn't quite working properly that night...Alas, end of the back story.
At any rate, I have tried to recopy the links and files from another installation of Ubuntu Server 8.04 however, I am at a loss as to how exactly I can repair this.
The error(s) I receive is:
sh
Result: "-bash: /bin/sh: No such file or directory"
sudo sh
Result: "sudo: unable to execute /bin/sh: No such file or directory."
Any way to resolve this issue without reinstalling? Thanks in advance for your help/advice.