Issue 99539 - "apt-get purge" does not remove config files completely because of openoffice.org-ure
Summary: "apt-get purge" does not remove config files completely because of openoffice...
Status: CLOSED DUPLICATE of issue 77196
Alias: None
Product: Installation
Classification: Application
Component: code (show other issues)
Version: DEV300m35
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: joachim.lingner
QA Contact: issues@installation
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2009-02-23 14:57 UTC by thackert
Modified: 2013-08-07 15:26 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description thackert 2009-02-23 14:57:33 UTC
Hello all,
I hope I have chosen the right (Sub)componenent to report my problem. If not,
feel free to change it ... ;)

I am not sure, when I noticed this problem at first, but - as I am now TCM
testing with localisation35 - the problem exists since month ... :(
The problem:

If I want to completely deinstall OOo via "apt-get purge ooobas* openof*" under
Debian SID, I always get the message:

<quote>
Entferne openoffice.org-ure ...
dpkg - Warnung: Während Entfernens von openoffice.org-ure ist Verzeichnis »/opt«
nicht leer, wird daher nicht gelöscht.
</quote>

Roughly translated:

<quote>
Purging openoffice.org-ure ...
dpkg - Warning: Cannot remove /opt, because it is not empty. Leaving it untouched"
</qoute>

This also happens if I install it and directly purge it without starting OOo
before. And instead of not only removing /opt, apt-get does as well not remove
the included /opt/openoffice.org3 directory. So there seem to be an error in the
postrm mechanism/script. Please have a look and fix it. If I could be of any
help (mostly: more information and the like ... ;) ), please give me a shout
TIA
Thomas.
Comment 1 Olaf Felka 2009-02-23 15:36:48 UTC
CCed: rene
Comment 2 rene 2009-02-23 15:41:32 UTC
well, it seems that the packages declare /opt as belonging to them so dpkg -r
tries to remove it. Which fails since there's other stuff in /opt still there.
Comment 3 rene 2009-02-23 15:45:02 UTC
(btw. apt-get purge does not exist, what does exist is dpkg -P, aptitude purge
and apt-get  --ppurge remove)

That there still is a oprnoffice.org3 dir there is a sure sign you didn't remove
your OOo stuff completely, and that something misses a dep on the -ure package:
because when ure should be removed, everything should be removed, no?

Removing me from Cc again.
Comment 4 Olaf Felka 2009-02-23 15:50:07 UTC
There are files installed by unopkg that are not removed at uninstall time. Hard
to fix.
Comment 5 thackert 2009-02-23 16:20:22 UTC
Hello @ll,
thank you for your quick reaction :)
@rene: I am using SID here (with apt-0.7.20.2) where it is possible to use
"apt-get purge..." directly ... ;)
@of: Does it mean, that - during the installation - OOo uses unopkg to install
something? Why? Would it not be possible to stop it doing it? If not: Which
files does unopkg install in /o/oo.o3?
Comment 6 Olaf Felka 2009-02-23 16:25:31 UTC
All the spellchecking stuff are installed with unopkg. It's a no-go to stop this
:-).
Comment 7 joachim.lingner 2009-02-24 08:24:44 UTC
Right, this is a problem of the 'bundled extensions'. Therefore I'll set this to
duplicate.

*** This issue has been marked as a duplicate of 77196 ***
Comment 8 thackert 2009-02-24 09:32:11 UTC
Hello of,
I am not that sure, if this issue is a duplicate of #77196. In the latter one
the reporter is asking to handle extensions via a setup option to (re)install
it, if I understand that issue right ... ;) In my case I reported something like
an missing interaction with the package manager in Debian. I have not tried to
install OOo without the oo.o-ure package (would that be possible?), but I have
also seen in the past, that (if I use synaptic to purge OOo) the OOo-ure package
is never selected as a - from what ever package it should be dependant -
dependency to the rest of OOo. So the rest of OOo always will be purged, but
will as well give the error message like "Warning: Cannot remove..." ... :( So I
think, my issue should not be marked as an duplicate, but handled differently,
because in Debian(based) systems there should be some kind of solution (maybe
just start the installation of the ure extensions, if an user starts the first
time, and install $extension in /home/$user), or am I wrong?
Have fun
Thomas.
Comment 9 Mechtilde 2009-07-12 18:08:45 UTC
duplicate -> closed