Notices


Reply
Thread Tools
Posts: 92 | Thanked: 17 times | Joined on Feb 2010
#371
Thanks mauron85!
I just put these lines in xterm, right?
touch /etc/init.d/imhere-0.3.uninstall
apt-get remove --purge imhere-0.3
And..is the name "version sensitive"? I mean, I've got 0.3.1 version.
 
Posts: 64 | Thanked: 109 times | Joined on Mar 2010
#372
Actually I analyzed imhere-0.3_0.3-1maemo0_armel.deb, which I guess is version 0.3.1 (as name suggest).

I've updated previous post for uninstall instructions (just added killall command).

Last edited by mauron85; 2010-05-05 at 12:55.
 
Posts: 92 | Thanked: 17 times | Joined on Feb 2010
#373
Thanks for your help, mauron85!
I've installed it from the app manager.
Here's the result I got when I did the commands as per your post:

Nokia-N900-42-11:~# apt-get remove --purge imhere-0.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
imhere-0.3*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 291kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 29123 files and directories currently installed.)
Removing imhere-0.3 ...
dpkg: error processing imhere-0.3 (--purge):
subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
imhere-0.3
E: Sub-process /usr/bin/dpkg returned an error code (1)
Nokia-N900-42-11:~#


and this is what I got for dpkg - l imhere*
~ $ dpkg -l imhere*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
pi imhere-0.3 0.3.1-1maemo0 A customizable application, that can be cont
~ $
 
Posts: 64 | Thanked: 109 times | Joined on Mar 2010
#374
There are two file in repository:
http://repository.maemo.org/extras-d.../i/imhere-0.3/

I've analyzed imhere-0.3_0.3-1maemo0_armel.deb (package version: 0.3-1maemo0), but as use see in dpkg output you have imhere-0.3_0.3.1-1maemo0_armel.deb (package version: 0.3.1-1maemo0).
According to dpkg output the package name is imhere-0.3 for both version, which means the apt-get remove imhere-0.3 will work no matter which version of those you have.

Edit: The uninstallation procedure should be same for both version as they are checking for presence of same /etc/init.d/imhere-0.3.uninstall file.

So again invoke following commands:
Code:
killall imhere-0.3
touch /etc/init.d/imhere-0.3.uninstall 
apt-get remove --purge imhere-0.3

Last edited by mauron85; 2010-05-05 at 16:56.
 
Posts: 92 | Thanked: 17 times | Joined on Feb 2010
#375
Originally Posted by mauron85 View Post
So again invoke following commands:
Code:
killall imhere-0.3
touch /etc/init.d/imhere-0.3.uninstall 
apt-get remove --purge imhere-0.3
Exactly the same error message.
Also tried to update it (found it hanging in the app manager updates) and to repeat the steps all over again - same result.
Strange((
Think a downgrade might help?
 
Posts: 436 | Thanked: 298 times | Joined on Jan 2010 @ England
#376
I hope someone can help ...
I set this app up and set
the first password to be password1
the second one to be password2
the third one to be password3

i then sent a message saying password1
the config menu appeared again and i clicked through it

i then send another message saying password2 to activate sms only
then i sent password1
then i sent config (config menu did not appear)
then i sent numerous password1, password2 and password3 and i cant get the config menu up and i cant un install from menu (yes i did untick the box for it in config)

i want to get the config box back up, tick the box so i can uninstall then try again one day when i have more time ....any ideas anyone?
__________________
SEE THE WIKI.MAEMO ALARMED PAGE AND FIND NEW, COOL COMMANDS AND IF YOU HAVE ANY COOL/AWESOME/USEFUL COMMANDS YOURSELF PLEASE ADD THEM. http://wiki.maemo.org/ALARMED_Commands_List
If you dont have a wiki.maemo account and cant be bothered to create one you can inbox me your commands and I will add them for you.
 
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#377
Originally Posted by fraaaaanka View Post
I hope someone can help ...
I set this app up and set
the first password to be password1
the second one to be password2
the third one to be password3

i then sent a message saying password1
the config menu appeared again and i clicked through it

i then send another message saying password2 to activate sms only
then i sent password1
then i sent config (config menu did not appear)
then i sent numerous password1, password2 and password3 and i cant get the config menu up and i cant un install from menu (yes i did untick the box for it in config)

i want to get the config box back up, tick the box so i can uninstall then try again one day when i have more time ....any ideas anyone?
I think that the last version includes a bug, the bug is, if you enter config menu and you don't explicitly configure a password for "config" it will not be set, even if it's not the 1st time you access the config menu.
I don't know ho to help you,, you need the maintainer (;
__________________
| Developer of Horizontal-Call - Call your contacts, fast! |
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |
 
Posts: 64 | Thanked: 109 times | Joined on Mar 2010
#378
Reeby you can also try:
Code:
dpkg --purge --force-remove-reinstreq imhere-0.3
Also on traditional linux dpkg (and hopefully also on N900) there is option to delete pre-remove scripts which can be found in /var/lib/dpkg/info. I guess you should be looking for something like imhere-0.3.prerm and imhere-0.3.postinst.

Before proceeding with dpkg remove/purge post here result of:
Code:
cat /var/lib/dpkg/info/imhere-0.3.prerm
For uninstall:

Code:
rm /var/lib/dpkg/info/imhere-0.3.prerm
rm /var/lib/dpkg/info/imhere-0.3.postinst

dpkg --remove --force-remove-reinstreq imhere-0.3
dpkg --purge --force-remove-reinstreq imhere-0.3
Use at your own risk. I'm not sure if maemo version supports force-remove-reinstreq switch.

Last edited by mauron85; 2010-05-07 at 07:55.
 
Posts: 92 | Thanked: 17 times | Joined on Feb 2010
#379
mauron85, here is the result of the command (I'll wait for your reply to go any furher. Thanks again for your help!)

Nokia-N900-42-11:~# cat /var/lib/dpkg/info/imhere-0.3.prerm


#!/bin/sh

# prerm script for imhere
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
upgrade|remove|failed-upgrade|deconfigure)

UNINSTALL_NAME='/etc/init.d/imhere-0.3.uninstall'

if [ -f $UNINSTALL_NAME ];
then
PROGRAM_NAME='/usr/bin/imhere-0.3'
ps ax | grep -v grep | grep $PROGRAM_NAME > /dev/null
if [ $? -eq 0 ]; then
killall 'imhere-0.3'
fi
else
echo "remove/upgrade not enabled \`$1'" >&2
exit 1
fi

;;

*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0


Nokia-N900-42-11:~#
 
Posts: 64 | Thanked: 109 times | Joined on Mar 2010
#380
Ok. This is the file I have analyzed yesterday. It's pre-remove script, which is invoked just before removing the package itselft. You don't have to be a programmer to understand what's inside. Basicaly it's just check for presence of file defined in $UNINSTALL_NAME variable (the old famous /etc/init.d/imhere-0.3.uninstall file :-)

If it not exists then exit 1 - which means failure = error code(1). You already seen this error: E: Sub-process /usr/bin/dpkg returned an error code (1).
As result uninstallation will fail. If that file exists than packages should be uninstalled normaly (my case).

This was just boring introduction how deb(s) works. I don't understand why you cannot uninstall package the way I mentioned before, anyway you can try at you risk.

Code:
rm /var/lib/dpkg/info/imhere-0.3.prerm
rm /var/lib/dpkg/info/imhere-0.3.postinst
dpkg --purge --force-remove-reinstreq imhere-0.3
Probably it would be good idea to kill process imhere-0.3 before:
Code:
killall imhere-0.3

Last edited by mauron85; 2010-05-07 at 08:39.
 

The Following 4 Users Say Thank You to mauron85 For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 03:42.