View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#1148
Originally Posted by Estel View Post
marxian, it's impossible to reinstall or remove cutetube version 1.4.4 (from openin post, *not* repos), using normal way. When trying to remove, following error appear:

Code:
Removing cutetube ...
Error org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program /opt/cutetube/bin/cutetubeevents: Success
dpkg: error processing cutetube (--remove):
 subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
 cutetube
E: Sub-process /usr/bin/dpkg returned an error code (1)
When trying to reinstall:

Code:
Preparing to replace cutetube 1.4.4 (using .../cutetube_1.4.4_armel.deb) ...
Error org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program /opt/cutetube/bin/cutetubeevents: Success
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Error org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program /opt/cutetube/bin/cutetubeevents: Success
dpkg: error processing /home/user/MyDocs/cutetube_1.4.4_armel.deb (--install):
 subprocess new pre-removal script returned error exit status 1
Errors were encountered while processing:
 /home/user/MyDocs/cutetube_1.4.4_armel.deb
It seems, that pre-removal script is broken.

/Estel
Thanks for reporting that. It seems that in your case the dbus call is made after the cutetubeevents binary is removed, though I'm not sure why that would happen at the prerm stage. I've added some checks to the prerm script to prevent it from happening in future.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following 2 Users Say Thank You to marxian For This Useful Post: