maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N800 (https://talk.maemo.org/forumdisplay.php?f=25)
-   -   application management problem (https://talk.maemo.org/showthread.php?t=5799)

vees 2007-04-12 18:45

application management problem
 
Hi,

I tried to downoad and installed zsh. The download went fine, but the installation froze and I had to re-boot. The zsh package is now listed as 'broken but updatable' but when I try updating it I get a 'unable to update' message. I tried uninstalling the package but that did not work either - I got a 'unable to uninstall' message. I tried running it, but that does not work either.

What should I do to either get it running, or at least remove it?

Should I try 'apt-get -f install zsh && apt-get dist-upgrade' or even 'apt-get remove --purge' ?

Thanks for any help!

VS

TA-t3 2007-04-13 11:21

Re: application management problem
 
Try 'dpkg --purge zsh' and see if that works out.

Garfield360 2007-04-13 12:05

Re: application management problem
 
Hi

I've got the same problem ... but unfortunally it did not wirk:

/home/user # dpkg --purge zsh
dpkg: error processing zsh (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:

Can anyone help?

TA-t3 2007-04-13 13:11

Re: application management problem
 
If apt-get -f install
doesn't fix it then you probably have a corrupted status file. Try this:

cd /var/lib/dpkg/
mv status status.bad
cp status-old status

That should restore the system's original view of the current state.
Note though that whatever was leftover of the broken zsh installation will still be there somewhere in the filesystem, but most of the time this does no harm.

Garfield360 2007-04-13 17:26

Re: application management problem
 
Hi!

Thank you for your help, but no luck.
I did not work. I have done everything step by step but ... zsh is stil there.
I have tried it with root access without i did not work. I have also tried to reboot, but after the reboot zsh was stil there :( ...

Any other suggestions?

TA-t3 2007-04-13 17:47

Re: application management problem
 
You said you downloaded and installed zsh. Downloaded from where? I don't have it installed, but as far as I can see it's available in a repository: http://maemo-hackers.org/apt bora main
Try to add that, do an update, and install zsh from either the application manager or apt-get install zsh

vees 2007-04-13 18:35

Re: application management problem
 
That is the repo I got it from... :-(

Also - the application manager keeps telling me that zsh can be updated, but when I try I get the same message informing me that the update failed.

Never had that happen with Debian's Synaptic...

Any suggestions as to what to do next?

joshuameurey 2007-08-10 11:14

Re: application management problem
 
Hi !

I've got the same problem on my tablet. To solve that, I've made these actions as root (using ssh in example) :

rm `find / -name *zsh*`
rm -r /etc/zsh


then edit /var/lib/dpkg/status using vi in example

find out zsh-static (press '/' key and type zsh-static and press enter), you will find these lines :
Package: zsh-static
Status: purge reinstall half-installed
...


replace the word after purge (reinstall or something like that) by ok
now this looks like :
Package: zsh-static
Status: purge ok half-installed
...


make the same for zsh package :
Package: zsh
Status: purge ok half-installed
...


finally :
dpkg --purge zsh-static
dpkg --purge zsh


Your system will be cleaned ! :)

Josh

vees 2007-08-10 12:58

Re: application management problem
 
I tried that, but to no avail :-(
I did not have a zsh-static package, the zsh package did not look the same, still, I tried, and got a bunch of errors. I think that this friggin package really messed up my system, but at least the system still works, so for the time being, I give up. thanks for trying though!


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

vBulletin® Version 3.8.8