apt-get --purge remove
That tells it to remove all files installed by the package,
a lot of packages will leave configuration files lying around otherwise.
Sean
-----Original Message-----
From: ilug-bounces at linux.ie [mailto:ilug-bounces at linux.ie]On Behalf Of
Michael Thompson
Sent: 01 February 2005 15:36
To: Barry Flanagan
Cc: Irish Linux Users Group
Subject: Re: [ILUG] Debian dpkg --configure fails
On Tue, 01 Feb 2005 15:29:40 +0000, Barry Flanagan <barry at flanagan.ie>
wrote:
> Just remove the package and then re-install it.
Nope that doesn't work, when I run the install step it seems to
remember that I have previously configure this package so doesn't ask
me thoose questions again.
localhost:/var/lib/apt# apt-get remove cacti
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
cacti
0 packages upgraded, 0 newly installed, 1 to remove and 8 not upgraded.
1 packages not fully installed or removed.
Need to get 0B of archives. After unpacking 1036kB will be freed.
Do you want to continue? [Y/n] y
Reading changelogs... Done
(Reading database ... 39079 files and directories currently installed.)
Removing cacti ...
dpkg - warning: while removing cacti, directory `/etc/cacti' not empty
so not removed.
localhost:/var/lib/apt# apt-get install cacti
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
cacti
0 packages upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 0B/210kB of archives. After unpacking 1036kB will be used.
Reading changelogs... Done
Preconfiguring packages ...
Selecting previously deselected package cacti.
(Reading database ... 38937 files and directories currently installed.)
Unpacking cacti (from .../cacti_0.6.7-2.1_all.deb) ...
Setting up cacti (0.6.7-2.1) ...
ERROR 1045: Access denied for user: 'root at localhost' (Using password: YES)
ERROR 1045: Access denied for user: 'root at localhost' (Using password: YES)
dpkg: error processing cacti (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
cacti
E: Sub-process /usr/bin/dpkg returned an error code (1)
--
Irish Linux Users' Group
http://www.linux.ie/mailman/listinfo/ilug/
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!