OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: Cagilaba on October 01, 2005, 04:17:16 am

Title: Package Installation Weirdness
Post by: Cagilaba on October 01, 2005, 04:17:16 am
Has anyone had this happen before:

I used the Add/Remove software app to install the Textmaker trial version. At the end of the install, I got a pop-up saying "ipkg said something went wrong. Sorry" (or words to that effect). Nonetheless, the package seems to have been installed -- there's an icon I can click on to run the app.

However, the system thinks the package isn't installed. I doesn't appear in the list of installed packages. (Thought the command line might be a bit more accurate so I typed "ipkg list" -- which produces absolutely nothing??  ).

Now I don't know how to remove this package which my Z doesn't know is installed....
Title: Package Installation Weirdness
Post by: icruise on October 01, 2005, 04:56:22 am
Yes, the same thing happened to me with TextMaker. Not sure what to do about it, though (in my case, I don't want to uninstall it, so it's not a big deal for me).
Title: Package Installation Weirdness
Post by: Cagilaba on October 01, 2005, 05:02:05 am
Hmm... Perhaps the package they provide is corrupted. I think I'll go and post over on their support forum.
Title: Package Installation Weirdness
Post by: icruise on October 01, 2005, 05:50:26 am
Quote
Hmm... Perhaps the package they provide is corrupted. I think I'll go and post over on their support forum.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=97764\"][{POST_SNAPBACK}][/a][/div]

Other people have had similar problems and thekompany apparently wasn't very responsive. Try searching the forums here a bit more and I think you can find some threads about it.

The package isn't corrupted per se, because the first time I installed it on my 3100 it worked fine. But later I wiped the system and tried again and it gave me that error. Not sure why.
Title: Package Installation Weirdness
Post by: lardman on October 01, 2005, 06:20:29 am
Perhaps it has a postinst script which failed? This would explain why the files are installed but the package db has not been updated.

Take a look under <mount point>/usr/lib/ipkg/info/ (iirc) and see whether it has a postinst script.


Si
Title: Package Installation Weirdness
Post by: Cagilaba on October 02, 2005, 06:17:00 am
Quote
Perhaps it has a postinst script which failed? This would explain why the files are installed but the package db has not been updated.
Thanks lardman! Indeed, there is a postinst script (TextMaker.postinst) which attempts to write a mime type:
Code: [Select]
echo "application/textmaker           tmd tmv" >> /opt/Qtopia/etc/mime.typesI looked in mime.types and the entry isn't there. So I guess the script did fail. My meager knowledge would lead me to assume this is a permissions problem on the mime.types file (owned by root and 644 permissions) but perhaps I'm way off the mark.

Is there any way to force an update on the package db, or to update it manually?

Thanks!
Title: Package Installation Weirdness
Post by: lardman on October 02, 2005, 10:13:11 am
Quote
My meager knowledge would lead me to assume this is a permissions problem on the mime.types file (owned by root and 644 permissions) but perhaps I'm way off the mark.

You have to be root to install stuff anyway, even using the package manager. Perhaps it doesn't run the scripts are root though (crap old version of ipkg which Sharp use I'm afraid to say).

Rather than forcing a db update (I'm not sure it's possible, though you could just edit it by hand as it's only a text file), I'd drop to a shell become root and install it again (you might need to use -force-overwrite). Then it ought to complete okay (if it doesn't, then also check that paths are correct in the script, and that #!/bin/bash exists (assuming that's what it's called with), etc.


Si