Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-24-2009, 01:38 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
Help recreate trashed /etc/init.d/ file

Total newbie trying to installing ubuntu 8.04 server for the first time. I'm afraid I accidentally overprinted the /etc/init.d/ file (I issued an "echo" command to the wrong file).

Can anyone show me how to recreate it? Or provide it's default contents? I'm unable to resolve hostname issues without being able to run the command:
/etc/init.d/ start
This returns error messages (like "...can't find ...command")

Old 03-24-2009, 07:42 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Searching on Google, it looks like it comes from the initscripts package.
Old 03-24-2009, 10:10 PM   #3
LQ Newbie
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
so what do I do? I deleted corrupt /etc/init.d/ Tried
apt-get install initscripts
This did not resolve problem. I'm a newbie, so don't assume I know much.
Any suggestions?
Old 03-24-2009, 10:22 PM   #4
LQ Newbie
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I also tried
sudo aptitude reinstall initscripts
Still no /etc/init.d/
Old 03-24-2009, 10:41 PM   #5
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Maybe try purging the package...
sudo apt-get remove initscripts --purge
Then try re-installing.
Old 03-25-2009, 12:06 AM   #6
LQ Newbie
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Bingo! That did it. Thank you SO much.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
recreate md-raid edgjerp Linux - Hardware 3 05-01-2008 05:45 PM
Recreate xorg.conf xaphalanx Fedora 2 04-18-2006 03:53 PM
How to recreate Gnome panel tulip4heaven Linux - Newbie 6 03-28-2006 01:37 AM
recreate swap samhob Linux - General 11 02-07-2004 11:04 AM
how to recreate mysql database java8964 Linux - Software 1 07-25-2002 10:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration