Reply
Thread Tools
Posts: 13 | Thanked: 0 times | Joined on Jan 2010
#1
Hi all,

I'm afraid I messed up the "I am here" application and now I'm looking on a way to either:

1. reinstall the program
2. uninstall the program
3. contact the developer

Since I changed the keyboard layout after the install, the program is not responding. Changing the keyboard layout back, didn't do the trick.

I can back up everything and flash the device, but that's a bit overkill for one application, I think?

thanks all,

kind regards,
 
Posts: 243 | Thanked: 146 times | Joined on Dec 2009 @ Knowhere
#2
http://talk.maemo.org/showpost.php?p...&postcount=393
__________________
Please don't clutter the forum with questions that have been answered many times previously. Either use Power Search or check the following useful threads.

http://wiki.maemo.org/Frequently_asked_questions
http://en.wikipedia.org/wiki/Nokia_N900
http://wiki.maemo.org/N900
 
Posts: 13 | Thanked: 0 times | Joined on Jan 2010
#3
Tnx for the help but it doesn't seem to work. It returns error code 1 meaning it thinks that the software is not installed?!

So, if it is somehow vanished from my mobile, it should pop up again in the list of installable applications? But it isn't?!

Details:

when I try this:
Code:
rm /var/lib/dpkg/info/imhere-0.3.prerm
rm /var/lib/dpkg/info/imhere-0.3.postinst
RESULT
for the first 2: "no such file or directory"


Code:
dpkg --purge --force-remove-reinstreq imhere-0.3
RESULT
Code:
Removing imhere-0.3 ...
remove/upgrade not enabled 'remove'
dpkg: error processing imhere-0.3 (--purge):
 subprocess pre-removal script returned error exit status 1
Errors were encounteredwhile processing:
 imhere-0.3

Code:
cd /var/lib/dpkg/info/
ls
RESULT
Code:
imhere-0.3.conffiles
imhere-0.3.list
imhere-0.3.md5sums
imhere-0.3.postinst
imhere-0.3.prerm
So I know the files are there but it even doesn't want to remove them? Weird...
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#4
subprocess pre-removal script returned error exit status 1
The error says, "While doing uninstall, I got an error in the pre-removal script.". Could you please supply the contents of the pre-removal script?

Last edited by Joorin; 2010-05-18 at 16:48. Reason: Typo
 
Posts: 13 | Thanked: 0 times | Joined on Jan 2010
#5
Ok, joorin, I would be glad to do so: but can you tell me how

I know how to copy content and email it from my phone, I just don't know where that script is...
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#6
You just did a cd and an ls, showing the files. If you want to see what's in a file, the command cat can be used. Then you might be able to copy and paste it somewhere.

And if that wasn't clear enough: imhere-0.3.prerm
 
Posts: 13 | Thanked: 0 times | Joined on Jan 2010
#7
Yes that was pretty clear but the cat command doesn't work on my mobile, don't know why. I installed openssh and copied it to my pc.

So here we go:

Code:
#!/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
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#8
Ok.

Match "remove/upgrade not enabled 'remove'" against the script and you'll find the problem. To save you some time, this error is caused by
Code:
/etc/init.d/imhere-0.3.uninstall
not existing. A test is done to see if it exists, but it doesn't and you get exit 1 as a result.

So, figure out what should be put in this missing file and try to uninstall again.

In this case I'd say that the packager (the person or the script) has managed to fsck things up.
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:43.