update-rc.d missing

Hi there,

I have a little issue with my server's apt-get.

Yesterday I wanted to install mod_mono and it reported some loop issue (can't remember exactly what) and on freenode the people suggested upgrading to stable and then to testing.

so I did:
changed target to stable...
apt-get update
apt-get upgrade

changed target to testing...
apt-get update
apt-get upgrade

after that, I tried to install mod_mono again... and got a loop blabla again.

so, someone on irc said I'd need some packages like sysv or something and I tried to install them, until I noticed that everytime it failed because dpkg complained, that update-rc.d (I think that's the file) was missing. I tried to install debian packages by hand (downloaded .deb files and ran dpkg -i ...deb) but it gave me the same error.

well, my dilema is quite obvious... I'm missing an important file and without that file, I can't install the package that'd install the file.

any suggestions?

so long.

PS: I already tried to create an empty bash script as upgrade-rc.d but that just resulted in a different error.
PPS: I currently have not access to the server so I can't tell you any specifics - I hope that what I remember is enough.

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

A chicken and egg problem.

I googled for you and found this:
http://wiki.linuxquestions.org/wiki/Update-rc.d

../Then comes the tricky part because without update-rc.d installing a package is not trivial. A chicken and egg problem. Use the ar program to extract the contents of the package (ar xv sysv-rc), then extract the contents of the resulting files. Somewhere in this mess you will find update-rc.d, which you should copy to /usr/sbin/. Now the normal debian package managers will probably work again.

I like that solution. It's a smart one!

Syndicate content