Author Topic: Package Installation Weirdness  (Read 2709 times)

Cagilaba

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
Package Installation Weirdness
« 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....
--
Zaurus SL-C1000. Cacko 1.23
1 Gb 80x Transcend SD -- 512 Mb 80x Transcend CF
Linksys WCF12 CF wifi card
Fellowes USB Stowaway Keyboard -- Sitecom USB Micro Hub -- Iogear USB Optical Mini Mouse
PDair case

icruise

  • Sr. Member
  • ****
  • Posts: 292
    • View Profile
Package Installation Weirdness
« Reply #1 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).

Cagilaba

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
Package Installation Weirdness
« Reply #2 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.
--
Zaurus SL-C1000. Cacko 1.23
1 Gb 80x Transcend SD -- 512 Mb 80x Transcend CF
Linksys WCF12 CF wifi card
Fellowes USB Stowaway Keyboard -- Sitecom USB Micro Hub -- Iogear USB Optical Mini Mouse
PDair case

icruise

  • Sr. Member
  • ****
  • Posts: 292
    • View Profile
Package Installation Weirdness
« Reply #3 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.
« Last Edit: October 01, 2005, 05:51:32 am by icruise »

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Package Installation Weirdness
« Reply #4 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Cagilaba

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
Package Installation Weirdness
« Reply #5 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!
--
Zaurus SL-C1000. Cacko 1.23
1 Gb 80x Transcend SD -- 512 Mb 80x Transcend CF
Linksys WCF12 CF wifi card
Fellowes USB Stowaway Keyboard -- Sitecom USB Micro Hub -- Iogear USB Optical Mini Mouse
PDair case

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Package Installation Weirdness
« Reply #6 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva