Find the answer to your Linux question:
Results 1 to 3 of 3
I have a program with broken/missing config files. I'd tried reinstalling the package but it didn't replace the config files, I can't purge the package because of dependencies which will ...
  1. #1
    Just Joined!
    Join Date
    Apr 2003
    Posts
    50

    Is there a way to fix broken config files for a package

    I have a program with broken/missing config files. I'd tried reinstalling the package but it didn't replace the config files, I can't purge the package because of dependencies which will also be removed. Is there a way to force it to reinstall and replace the config files?

  2. #2
    Linux Newbie the bassinvader's Avatar
    Join Date
    Jun 2006
    Location
    Europe
    Posts
    168
    Hi HGeneAnthony

    Unfortunately you don't mention what package / files you're having trouble with so I can't offer any specific advice but you may be able to find copies of the problem config files on your system in /usr/share/doc for example. The best thing to do is run whereis to find anything to do with your package and have a good snoop around. You can find copies for shorewall, sudo and samba so you'll likely stumble across what you need. Alternatively it might be worth looking at the dpkg man page which may provide some helpful option.
    " I didn't know it was a picture of his wife! I thought it was a publicity shot form Planet Of the Apes."

  3. #3
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Try dpkg-reconfigure.

    Code:
    su -
    dpkg-reconfigure <package>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •