maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   application broken,can't uninstall [SOLVED] (https://talk.maemo.org/showthread.php?t=66963)

atilla 2010-12-13 21:02

application broken,can't uninstall [SOLVED]
 
1 Attachment(s)
hello fellas.
i have a strange issue with the tar-gnu package.
i tried to uodate it but it didn't work.then i tried to remove it but all i get is=
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.

reinstall didn't work too so whats going on?
thanks

michaaa62 2010-12-13 22:18

Re: application broken,can't uninstall
 
Please try , if this works:
Code:

dpkg --purge --force-remove-reinstreq tar-gnu

atilla 2010-12-14 05:15

Re: application broken,can't uninstall
 
thanks but this gives me the same error

michaaa62 2010-12-14 07:59

Re: application broken,can't uninstall
 
Did you try to download the package
Code:

apt-get install tar-gnu -d
change directories to /var/cache/apt/archives and install it with
Code:

dpkg -i tar-gnu
manually? There are a couple of --force-... options there to apply some more pressure.

atilla 2010-12-14 14:16

Re: application broken,can't uninstall
 
1 Attachment(s)
tried that,had to change the dpkg -i command cause the tar-gnu package has a other name(tar-gnu_.1-2maemo5-armel.deb)
but it still didn't work.
now it gives me even more errors but thans for your assist ;)
heres a new pic:

Rob1n 2010-12-14 14:33

Re: application broken,can't uninstall
 
Quote:

Originally Posted by atilla (Post 896618)
tried that,had to change the dpkg -i command cause the tar-gnu package has a other name(tar-gnu_.1-2maemo5-armel.deb)
but it still didn't work.
now it gives me even more errors but help for your assist ;)
heres a new pic:

Looks like the post-install script is messed up. Checking mine, it appears that maemo-optify has broken it. Try editing the script (/var/lib/dpkg/info/tar-gnu.postinst) and removing the optify line at the end. The documentation isn't actually installed, so it's failing when trying to optify it.

atilla 2010-12-14 17:36

Re: application broken,can't uninstall
 
don`t even have this state folder in var/lib/dpkg/

really strange the whole thing....

Rob1n 2010-12-14 21:45

Re: application broken,can't uninstall
 
Quote:

Originally Posted by atilla (Post 896713)
don`t even have this state folder in var/lib/dpkg/

really strange the whole thing....

Blah. That should be info, not state :o

atilla 2010-12-14 22:23

Re: application broken,can't uninstall
 
ok ereased the last optify line in the scrpt but problem is still there.
isn't there are terminate command to destroy the package??

Rob1n 2010-12-15 09:24

Re: application broken,can't uninstall
 
Quote:

Originally Posted by atilla (Post 896949)
ok ereased the last optify line in the scrpt but problem is still there.
isn't there are terminate command to destroy the package??

Sorry - looks like it was the postrm script that was failing. All that does is remove /usr/bin/gtar if it's a symlink, so you could try checking that with "ls -l /usr/bin/gtar".

atilla 2010-12-15 12:01

Re: application broken,can't uninstall
 
checked it.nogtar file in /usr/bin/ tried your command and searched with midnight commander but its definetly not there

Rob1n 2010-12-15 12:52

Re: application broken,can't uninstall
 
Quote:

Originally Posted by atilla (Post 897268)
checked it.nogtar file in /usr/bin/ tried your command and searched with midnight commander but its definetly not there

I've tested and the script does fail if the symlink isn't there, so recreating the symlink should fix it:
Code:

ln -s /usr/bin/gnu/tar /usr/bin/gtar

atilla 2010-12-15 13:20

Re: application broken,can't uninstall
 
dude it worked ;)
thank you very much for your help,finally this problem is gone :)

mscion 2010-12-15 13:58

Re: application broken,can't uninstall
 
Quote:

Originally Posted by Rob1n (Post 897293)
I've tested and the script does fail if the symlink isn't there, so recreating the symlink should fix it:
Code:

ln -s /usr/bin/gnu/tar /usr/bin/gtar

Similar problems have been arising for those downloading programs for Easy debian. You might check the Easy Debian Fremantle Beta Testing thread to lend a hand.

Thanks!


All times are GMT. The time now is 17:22.

vBulletin® Version 3.8.8