Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • In my Debian 6.0.1 system the init script belongs to the apache2.2-common package. You can find this relationship out for any file on the system with dpkg -S /path/to/file. Commented May 4, 2011 at 12:24
  • Since the init script belongs to the -common sub-package, it is likely that you only removed the main package and didn't actually remove all the related sub-packages. The you manually removed a file belonging to the sub-package. In this case re-installing just the main package won't help at all. You should apt-get install --re-install apache2.2-common to get the files associated with that package back. Commented May 4, 2011 at 12:29
  • unfortunately it does not restore my init-script. I am unable to restore it / or rather seem to be unable to properly reinstall the Apache package. Maybe my question should be, how I properly clean up / delete previous installed packages and all dependencies / folders + files with it. Commented May 4, 2011 at 12:37
  • 1
    @Caleb: You say "I replicated the problem on a test system". I'm unsure what the problem is. Can you provide a reproduction recipe? Is it related to bugs.debian.org/621720? If you find a problem and it has not been reported already, please file a bug report. Thanks. Commented May 4, 2011 at 14:53
  • 3
    @Caleb: After asking the dpkg list (and being told off for it) + further fiddling, the following works. Be careful with this. It will replace all your modified config files with the version from the package. apt-get -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-confask" install --reinstall apache2.2-common. I don't know why you needed me to tell you this. It's the first thing you should have thought of. :-) Commented May 5, 2011 at 15:15