maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   "I am here" manual or reinstall (https://talk.maemo.org/showthread.php?t=52890)

Fledermaus 2010-05-17 13:27

"I am here" manual or reinstall
 
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,

hellnick 2010-05-18 10:16

Re: "I am here" manual or reinstall
 
http://talk.maemo.org/showpost.php?p...&postcount=393

Fledermaus 2010-05-18 16:43

Re: "I am here" manual or reinstall
 
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...

Joorin 2010-05-18 16:48

Re: "I am here" manual or reinstall
 
Quote:

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?

Fledermaus 2010-05-18 17:19

Re: "I am here" manual or reinstall
 
Ok, joorin, I would be glad to do so: but can you tell me how :p

I know how to copy content and email it from my phone, I just don't know where that script is...

Joorin 2010-05-18 17:21

Re: "I am here" manual or reinstall
 
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

Fledermaus 2010-05-18 18:56

Re: "I am here" manual or reinstall
 
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


Joorin 2010-05-20 12:20

Re: "I am here" manual or reinstall
 
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.


All times are GMT. The time now is 23:11.

vBulletin® Version 3.8.8