Oh that's great.  I guess you're quoting some source online?

Thanks,
Alex

On Mon, Apr 14, 2008 at 5:11 PM, Fladischer Michael <michael@fladi.at> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Maybe i can help you with this bogus behavior of the Debian package
management:

The error "dpkg - warning: while removing apacheds, directory `/opt' not
empty so not removed." is triggered when dpkg tries to remove a package
from a directory which is not used by any other Debian package, thus it
looks empty to dpkg, but if you've placed other software under /opt it's
not empty on the file-system layer.

After installing you can check with "dpkg -S /opt" what packages depend
on this directory. In my case, where I was able to reproduce this error,
apacheds was the only owner of /opt inside the dpkg database.

I'm not aware of any workaround to prevent this message as it's just
doing it's intended job.

Regards, Michael

Pierre-Arnaud Marcelot schrieb:
> Unfortunately, I don't think we have such a possibility.
>
> The script should not try to remove /opt. I don't know why it tries to
> remove it on your machine.
>
> I'll be looking at some doco for this.
>
> P-A

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIA8iUhuoBH16pp9gRAtc7AKCZqHIn2TwgzbHNxVydYm+BB9tYVwCg0S06
H9/wAByq1NoWcRskURQw9AY=
=Vvk5
-----END PGP SIGNATURE-----