Cannot uninstall kio-umountwrapper

Bug #186729 reported by Roy Jamison
282
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dolphin (Ubuntu)
Invalid
Undecided
Unassigned
kio-umountwrapper (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: kio-umountwrapper

After installing kubuntu-desktop from Ubuntu Hardy, I wanted to get rid of all Kubuntu references, and got an error message when removing kio-umountwrapper:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  kdelibs4c2a kdelibs-data libopenexr2ldbl liblualib50 libavahi-qt3-1 liblua50
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED
  kio-umountwrapper
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 111kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 123688 files and directories currently installed.)
Removing kio-umountwrapper ...
No diversion `diversion of /usr/share/apps/konqueror/servicemenus/media_safelyremove.desktop by kio-umountwrapper', none removed
No diversion `diversion of /usr/share/apps/dolphin/servicemenus/media_safelyremove.desktop by kio-umountwrapper', none removed
Removing `diversion of /usr/share/apps/d3lphin/servicemenus/media_safelyremove.desktop to /usr/share/apps/d3lphin/servicemenus/media_safelyremove.desktop.distrib by kio-umountwrapper'
dpkg-divert: error checking `/usr/share/apps/d3lphin/servicemenus/media_safelyremove.desktop': No such file or directory
dpkg: error processing kio-umountwrapper (--remove):
 subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
 kio-umountwrapper
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Raymond Slieff (archgriffin) wrote :

I had this same problem it appears to have something to do with the way packages are removed. To fix it, I used the Synaptic Package Manager and installed Dolphin and libkonq4. After those were installed I used Synaptic to remove the kio-umountwrapper, then removed Dolphin, and libkonq4.

Hope that helps!

Revision history for this message
jimisdead (ryan-spacemonkey) wrote :

Hi Raymond - I tried what you suggested... didn't work in my case unfortunately.

Revision history for this message
Freddalf (freddalfier) wrote :

I have the same issue. Tried Raymonds _quick fix_ without result.
The problem occured when i was removing Kubuntu (KDE) in Hardy to be replaced with Ubuntu (gnome).
The result is that it now blocks me from installing anything with synaptic since it first tends to try to remove packages that is listed to be removed, and if I unmark it i get dependency issues.

Revision history for this message
Jan Skowronski (crianonim) wrote :

I don't know Debian/Ubuntu packaging system well (I'm just about to learn it;), so bear that in mind;)
But I fixed that on my Hardy installation by issuing the following commands as root:
mkdir -p /usr/share/apps/d3lphin/servicemenus/
touch /usr/share/apps/d3lphin/servicemenus/media_safelyremove.desktop.distrib

Now you should be able to remove kio-umountwrapper. Afterwards you can delete /usr/share/apps/d3lphin and its contents.
I wanted to fix it as soon as possible so I haven't done any proper research yet. This is what I think is happening:
When kio-umountwrapper is installed it sets two divertions (I'm not yet sure if I get it right)i n the script executed after installation and another one if upgraded (the one that was causing issues) but the postremoval script one removes all three. But if never upgraded kio-umountwrapper it never created the third divertion in the first place. Hence the problems.
Of course my workaround is not a proper solution, just a hack.Tell me if it worked for you. Also if someone with more insight could correct or clarify what I said it would benefit at least me;)

Revision history for this message
Freddalf (freddalfier) wrote :

Thank you very much Jan!

Your little hack seems to have saved me a lot of time reinstalling and so on (all this because I'm lazy and won't download and burn an Ubuntu release instead of my existing Kubuntu one). Altho, I had to modify your hack slightly. Instead of:
mkdir -p /usr/share/apps/d3lphin/servicemenus/
touch /usr/share/apps/d3lphin/servicemenus/media_safelyremove.desktop.distrib

I needed:
mkdir -p /usr/share/apps/dolphin/servicemenus/
touch /usr/share/apps/dolphin/servicemenus/media_safelyremove.desktop.distrib

(and why "o" instead of "3" i have no clue. I thought the package name was d3lphin.) But the thought never occured to me to try and put something for it to erase in the remote directory. Brilliant!

Thanks alot!

Revision history for this message
Mehul J. Rajput (mehulrajput) wrote :

Hack from Jan fixed it.

Added dolphin package too. Hope the package managers fix the issue soon.

Revision history for this message
plurt (plurt) wrote :

Thanks Jan, worked like a charm

Revision history for this message
bigbrovar (bigbrovar) wrote :

had the same problem too the solution worked like a charm thanks .. hope the problem is fixed soon though

Revision history for this message
Evan Carroll (evancarroll) wrote :

This bug is still present in Hardy -- used Jans advice to remedy

Revision history for this message
Stainesy (staines) wrote :

Jans advice worked. Thanks.

Revision history for this message
Frode M. Døving (frode) wrote :

This issue is caused by missing dependendices on dolphin and konqueror, which is needed because kio-umountwrapper diverts files in those packages and gets confused if they disappear (konq or dolphin beeing uninstalled).

Changed in dolphin:
status: New → Invalid
Changed in kio-umountwrapper:
status: New → In Progress
Revision history for this message
Frode M. Døving (frode) wrote :

You can test with this version of kio-umountwrapper.
Buildt on hardy-x86.

Revision history for this message
Frode M. Døving (frode) wrote :

Package ready for upload to Intrepid: http://frode.kde.no/ubuntu/intrepid/kio-umountwrapper/

Revision history for this message
Videl Smith (videl) wrote :

Same problem with me.
The solution was 'only' to reinstall kio-umountwrapper with Synaptic.

Revision history for this message
Stew (stew-schneider) wrote :

There *does* seem to be something strange going on. The first time I got the error, it was:
dpkg-divert: error checking `/usr/share/apps/dolphin/servicemenus/media_safelyremove.desktop': No such file or directory

(note: dolphin, not d3lphin)

I created that directory: sudo mkdir -p /usr/share/apps/dolphin/servicemenus/media_safelyremove.desktop

After that, I tried from synaptic, and got the same complaint about /usr/share/apps/d3lphin/servicemenus/media_safelyremove.desktop

(note: now d3lphin, not dolphin)

Back at the terminal, I created *that* directory:

 sudo mkdir -p /usr/share/apps/d3lphin/servicemenus/media_safelyremove.desktop

which fixed it. I did not touch any files as Jan did (I was just fooling around in the dark -- hadn't found this bug yet)

Revision history for this message
hara (harak-iitm) wrote :

raymond's fix worked for me. I did not try others

Revision history for this message
kulight (kulight) wrote :

i get the same error

Revision history for this message
Mario S. (sm666) wrote :

Stew you were absolutely right. your fix worked for me as well. Thanx.

Revision history for this message
Robert Flight (rflight79) wrote :

What a pain in the butt. Had to use a combination of 'dolphin' and 'd3lphin' fake directories in order to get it to fully remove. Thanks for the workaround.

Revision history for this message
benske (ben-beuster) wrote : Removing kio-umountwrapper successful

Raymond Slieffs howto remove works.

Thank you!

Revision history for this message
Gauvain Pocentek (gpocentek) wrote :

Instead of depending on both dolphin and konqueror it might be a better idea to create the dirs before running dpkg-divert.
This would avoid to depend on the 2 file managers (that's what we've done in ulteo, where we don't ship dolphin).

Revision history for this message
Gauvain Pocentek (gpocentek) wrote :
Revision history for this message
joehill (joseph-hill) wrote :

I had this problem too and Raymond's solution worked, but just make sure you remove kio-umountwrapper FIRST and THEN dolphin, as removing both at the same time leaves you right where you started.

I add my vote to those hoping this bug will be fixed soon (I mean in hardy, not just in intrepid).

Revision history for this message
fred-allen (faself) wrote :

I had this same problem. I tried Raymond's solution and it worked perfectly! Thank you for the solution!

Revision history for this message
vinzzz (vinzzz) wrote :

Solution works for me. Thank you very much !

Revision history for this message
thomas richard (thomas-g-richard) wrote :

OK, everything is fine, now... but can you please tell me how to unsubscribe so that I won't get informed of every new comment on this page every time I open my mail box ?

Revision history for this message
Bug4Life (useless-inbox) wrote : Re: [Bug 186729] Re: Cannot uninstall kio-umountwrapper

thomas richard wrote:
> OK, everything is fine, now... but can you please tell me how to
> unsubscribe so that I won't get informed of every new comment on this
> page every time I open my mail box ?
>
>
log in, open the bug's page, on the left, click on subscribers for that
particular bug, and click on the red minus button. you should get
unsubscribed. I just did it myself, hope it works.

Revision history for this message
lmnlme (lmnlme) wrote :

Oh thank god.

On Tue, 2008-07-01 at 18:43 +0000, Bug4Life wrote:
> thomas richard wrote:
> > OK, everything is fine, now... but can you please tell me how to
> > unsubscribe so that I won't get informed of every new comment on this
> > page every time I open my mail box ?
> >
> >
> log in, open the bug's page, on the left, click on subscribers for that
> particular bug, and click on the red minus button. you should get
> unsubscribed. I just did it myself, hope it works.
>

Revision history for this message
Ben Salazar (beret) wrote :

Raymond's fix worked, thanks.

Revision history for this message
Adam Stovicek (arstovicek) wrote :

Wow. What a pain this was to remove. Raymond Slieff's idea worked, but in my case I had to first reinstall kio-umountwrapper to make sure it wasn't set for removal when trying to reinstall the dependent packages of dolphin and konqueror. Each time I tried to get dolphin and konqueror installed, apt would try to remove kio-umountwrapper first and die at the error.

I wasn't sure if either konqueror or libkonq4 made the difference, but during the fury of trying to figure out the removal, I had both installed in the end.

sudo apt-get --reinstall install kio-umountwrapper
sudo apt-get install dolphin konqueror libkonq4
sudo apt-get remove kio-umountwrapper
sudo apt-get remove dolphin konqueror libkonq4

Revision history for this message
SimpTechMike (simptechmike) wrote :

Hey Raymond,

Your solution fixed the problem I was having in uninstalling kio-umountwrapper (Ubuntu 8.0.4-1) :) Thanks!

Revision history for this message
ahorriblemess (watersnotfree) wrote :

Removing dolphin and libkonq4 before removing kio-umountwrapper worked for me as well.
(Hardy)

Revision history for this message
Sudhanshu (thanedar) wrote :

had the same problem... Jan's hack worked for me...

Revision history for this message
ghettopuzzi (ghettopuzzi-deactivatedaccount) wrote :

I have the same problem here.
I give a test to kde 4,it looks fine.
i wont it to remove,but kio-unmountwrapper want´s me.

Revision history for this message
Benson Margulies (bimargulies) wrote :

The workaround leaves me in a completely fried state:

(Reading database ... 265252 files and directories currently installed.)
Unpacking konqueror (from .../konqueror_4%3a3.5.9-0ubuntu7.3_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/konqueror_4%3a3.5.9-0ubuntu7.3_i386.deb (--unpack):
 trying to overwrite `/usr/share/apps/konqueror/servicemenus/media_safelyremove.desktop', which is also in package kio-umountwrapper
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/konqueror_4%3a3.5.9-0ubuntu7.3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Shane Rice (shane2peru) wrote :

Well I gave Jan's hack a try and it didn't work for me, then I went back to Raymonds hack and it worked. Seems to me like this is mostly just a dependency problem, the kio-umountwrapper should depend on dophin and libkonq4 that would keep this from happening. At least that is my 2cents worth. Hope it gets fixed, it is a minor problem.

Shane

Frode M. Døving (frode)
Changed in kio-umountwrapper:
assignee: nobody → kubuntu-team
importance: Undecided → High
Revision history for this message
Jonathan Riddell (jr) wrote :

I've uploaded Gauvain Pocentek's diff from comment 22 to hardy-proposed, please test.

conquesttintin (fggh)
Changed in kio-umountwrapper:
assignee: kubuntu-team → nobody
Revision history for this message
Jonathan Riddell (jr) wrote :

TEST CASE: install dolphin and kio-umountwrapper. Remove dolphin. Remove kio-umountwrapper, the postrm script will fail. Try again with 0.2-0ubuntu6.2 and it will succeed.

Revision history for this message
Bill Pollifrone (waylandbill) wrote :

Jonathan Riddell's test case was successful using 0.2-0ubuntu6.2.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in kio-umountwrapper:
status: In Progress → Fix Released
Revision history for this message
Jonathan Avraham (shambler-com) wrote :

Happened to me on a fully patched Hardy yesterday. Freddalf/Jan's solution worked.

Revision history for this message
Hypocritus (hypocritus) wrote :

Jan's + Stew's fix worked for me. Weird, but quick and cool.

Revision history for this message
indigoseth (inhomecc) wrote :

Jan Skowroński + Freddalf - Thanks!

I don't typically register on sites and post a comment, but i have been looking for the fix to this for quite some time.. I am grateful for your help. This little bug was shutting down my apt-get and synaptic package manager.

I couldn't remove or install any apps.

thanks so much

Take Care!

To bad there isn't a way to bump this and make it higher priority so its found easier!!

:)

Revision history for this message
maitraya (maitraya-bhattacharyya) wrote :

Thanks Jan, your advice worked. Great job :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.