[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get question

On Tue, May 23, 2006 at 09:16:42PM +0800, Eric Wong wrote:
> Hi,
> I am newbie to Debian, and have a question about apt-get.
> Conside the following steps:
> 1) apt-get install apache2
> Now apache2 is installed and working fine


> 2) rm -rf /etc/apache2
> I try to remove all configurations

bad idea.

> 3) dpkg -P apache2
> And then I remove apache2

you should probably have used apt-get --purge remove apache2

this removes the package AND the configurations.

> 4) apt-get install apache2
> I install apache2 again
> It succeeds and it doesn't shows any error, but I found that /etc/apache2 is
> not there, and apache2 is not working, seems that apt-get doesn't know
> something(/etc/apache2) is missing and it can't rebuild the directory.

try apt-get --reinstall install apache2

apt probably doesn't realise that you previously removed apache2 and
so doesn't know to reinstall the confs. just a guess there.

please read man apt and try not to mix packaging tools without more

Attachment: signature.asc
Description: Digital signature

Reply to: