Perhaps there's some kind of default post remove script and the package manager thinks apacheds is installed at /opt.  Maybe overriding this might fix it.  If you don't have time to correct this let me know I'll try to read up on some of the deb package howtos.

Alex

On Mon, Apr 14, 2008 at 2:46 PM, Alex Karasulu <akarasulu@apache.org> wrote:
Also FYI in the prerm script you don't seem to be stopping the server.

Alex


On Mon, Apr 14, 2008 at 2:43 PM, Pierre-Arnaud Marcelot <pa@marcelot.net> wrote:
Hi Alex,

I stricly have no idea... :(

That's a very weird issue.

Your machine seem to have a "special" /opt partition.

Pierre-Arnaud


On Mon, Apr 14, 2008 at 8:35 PM, Alex Karasulu <akarasulu@apache.org> wrote:
Pierre here's the output when following the method you recommended below:

root@newton:~# dpkg -i /home/akarasulu/ramdisk/bigbang/installers/apacheds/target/images/apacheds-1.5.2-amd64.deb
Selecting previously deselected package apacheds.
(Reading database ... 120073 files and directories currently installed.)
Unpacking apacheds (from .../apacheds-1.5.2-amd64.deb) ...
Setting up apacheds (1.5.2) ...

root@newton:~# dpkg -r apacheds
(Reading database ... 120149 files and directories currently installed.)

Removing apacheds ...
dpkg - warning: while removing apacheds, unable to remove directory `/opt': Device or resource busy - directory may be a mount point ?
dpkg - warning: while removing apacheds, unable to remove directory `/opt': Device or resource busy - directory may be a mount point ?
root@newton:~#

Any ideas?

Thanks,
Alex



On Mon, Apr 14, 2008 at 2:02 PM, Alex Karasulu <akarasulu@apache.org> wrote:
Will check right now.

Alex


On Mon, Apr 14, 2008 at 1:48 PM, Pierre-Arnaud Marcelot <pa@marcelot.net> wrote:
Hi Alex,

This is really strange that I don't have this on my computer at the office. It runs Ubuntu 7.10.

I'm using
$ dpkg -i pathToInstaller
to install the package.

And,
$ dpkg -r apacheds
to remove it.

You can maybe test with this command instead of apt-get.

Is there any specific things on your /opt partition (any link or something like that) ?

Thanks

Pierre-Arnaud


On Mon, Apr 14, 2008 at 6:37 PM, Alex Karasulu <akarasulu@apache.org> wrote:
Hi Pierre,


I'm still seeing the following issue on Debian when trying to uninstall the ApacheDS package:

root@newton:~# apt-get remove apacheds
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  apacheds
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 9542kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 120255 files and directories currently installed.)
Removing apacheds ...
dpkg - warning: while removing apacheds, unable to remove directory `/opt': Device or resource busy - directory may be a mount point ?
dpkg - warning: while removing apacheds, unable to remove directory `/opt': Device or resource busy - directory may be a mount point ?

Any idea what could be causing this.  I want to try to sort out this issue before I release the ApacheDS installers subproject.

Thanks,
Alex