maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   I can't uninstall rootsh (https://talk.maemo.org/showthread.php?t=42327)

pabloniss 2010-01-26 20:39

I can't uninstall rootsh
 
I'm installed rootsh because the required need, when I wanted to uninstall jumped a message from "Can not delete application" is there some other way to get rid of it?


I can not even install again

taril 2010-01-26 21:28

Re: I can't uninstall rootsh
 
open terminal
root
dpkg --remove rootsh

lostevil 2010-03-12 00:22

Re: I can't uninstall rootsh
 
Quote:

Originally Posted by taril (Post 496234)
open terminal
root
dpkg --remove rootsh

Nokia-N900-51-1:~# dpkg --remove rootsh
(Reading database ... 24169 files and directories currently installed.)
Removing rootsh ...
/var/lib/dpkg/info/rootsh.prerm: line 5: syntax error: "fi" unexpected (expecting "then")
dpkg: error processing rootsh (--remove):
subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
rootsh

m2cm2c 2010-03-12 00:24

Re: I can't uninstall rootsh
 
please post us the result of:
cat /var/lib/dpkg/info/rootsh.prerm
thanks :D

lostevil 2010-03-12 00:35

Re: I can't uninstall rootsh
 
Ok, /var/lib/dpkg/info/rootsh.prerm is malformed. The if statement line must end with "; then"...
Once solved this it removes normally

lostevil 2010-03-12 00:38

Re: I can't uninstall rootsh
 
Quote:

Originally Posted by m2cm2c (Post 564499)
please post us the result of:
cat /var/lib/dpkg/info/rootsh.prerm
thanks :D

I don't have this file anymore but it was something like

if [ blahblahblahblah ]
...
fi

m2cm2c 2010-03-12 00:38

Re: I can't uninstall rootsh
 
good to hear :)
[edit]
Quote:

Originally Posted by lostevil (Post 564506)
I don't have this file anymore but it was something like

if [ blahblahblahblah ]
...
fi


heh I didn't notice that post
heres what mine looks like

Code:

if [ -x /usr/sbin/gainroot.old ]
    mv /usr/sbin/gainroot.old /usr/sbin/gainroot
fi



I think it should look like this


Code:

if [ -x /usr/sbin/gainroot.old ]
then   
  mv /usr/sbin/gainroot.old /usr/sbin/gainroot
fi


lostevil 2010-03-12 00:44

Re: I can't uninstall rootsh
 
Quote:

Originally Posted by m2cm2c (Post 564507)
good to hear :)
[edit]



heh I didn't notice that post
heres what mine looks like

Code:

if [ -x /usr/sbin/gainroot.old ]
    mv /usr/sbin/gainroot.old /usr/sbin/gainroot
fi


That's it! And it should be:

Code:

if [ -x /usr/sbin/gainroot.old ] ; then
    mv /usr/sbin/gainroot.old /usr/sbin/gainroot
fi

:)

T-unit 2010-04-28 21:35

Re: I can't uninstall rootsh
 
ok what is the simplest way to do this?

lostevil 2010-04-29 20:36

Re: I can't uninstall rootsh
 
Quote:

Originally Posted by T-unit (Post 632243)
ok what is the simplest way to do this?

I think that the simplest way should be copying this:
Code:

if [ -x /usr/sbin/gainroot.old ] ; then
    mv /usr/sbin/gainroot.old /usr/sbin/gainroot
fi

to a new file called rootsh.prerm
(I suppose that doing this with your computer would be simpler)
Now copy it to your N900 and enter this on your terminal (as root):
Code:

mv ./MyDocs/rootsh.prerm /var/lib/dpkg/info/rootsh.prerm
I don't know if it's simple enough.

pali 2012-02-03 16:58

Re: I can't uninstall rootsh
 
New version 1.8 which fixing uninstall bug was promoted to Extras-Testing. Vote for fixed version: http://maemo.org/packages/package_in...el/rootsh/1.8/

pali 2012-02-03 17:02

Re: I can't uninstall rootsh
 
This thread is duplicate of http://talk.maemo.org/showthread.php?t=40813


All times are GMT. The time now is 09:47.

vBulletin® Version 3.8.8