Author Topic: Ipkg Terminates Rather Than Installing  (Read 4572 times)

dninja

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.freedomsoftware.co.uk
Ipkg Terminates Rather Than Installing
« on: September 25, 2005, 11:49:47 am »
I'm trying to install apps on my 5500, oz with opie. I've managed an ipkg update/upgrade which ran fine but now when I try to install packages the file gets downloaded and then the process gets "Terminated" e.g.
Quote
root@trapspringer:/media/card/home/root# ipkg  install  xmms-embedded
Installing xmms-embedded (20040327-r3) to root...
Downloading http://openzaurus.org/official/unstable/3....0327-r3_arm.ipk
Terminated

This happens with any package I choose, so far I've tried at least bash, xmms and vim.

Can anyone help?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ipkg Terminates Rather Than Installing
« Reply #1 on: September 25, 2005, 12:47:04 pm »
That's rather odd, can you try with the -V flag to make it more verbose.

Could it be that you're running out of memory and ipkg is being terminated? Does this happen on Linux?


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

dninja

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.freedomsoftware.co.uk
Ipkg Terminates Rather Than Installing
« Reply #2 on: September 25, 2005, 01:04:29 pm »
Ok, that kind of helped, it seems to be a problem with gunzip...

Code: [Select]
root@trapspringer:/var/tmp/ipkg-cvwq84# ipkg install -V 3 xmms-embedded_20040327-r3_arm.ipk
ipkg: ***  Couldnt kill old gunzip process *** aborting
root@trapspringer:/var/tmp/ipkg-cvwq84# ps aux | grep gun
 2358 root        460 S   grep gun
root@trapspringer:/var/tmp/ipkg-cvwq84# ps aux | grep zip
 2360 root        460 S   grep zip

But as you can see, gunzip isn't running. I've tried gunzip from the command line and it seems to work.

As for memory, I'd guess I have enough:

Code: [Select]
root@trapspringer:/var/tmp/ipkg-cvwq84# cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  30883840 24948736  5935104        0   643072 12525568
Swap:        0        0        0
MemTotal:        30160 kB
MemFree:          5796 kB

I'm booting from sd card so disk space shouldn't be a problem:

Code: [Select]
root@trapspringer:/var/tmp/ipkg-cvwq84# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/loop0               14.1M     13.5M    676.0k  95% /media/realroot
/dev/mmcda1             473.0M    300.9M    147.7M  67% /media/card
/dev/loop0              141.9M     29.5M    105.0M  22% /
/dev/mtdblock6           31.0M     37.0k     29.3M   0% /media/ram
tmpfs                    14.7M    196.0k     14.5M   1% /var

Any more ideas?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ipkg Terminates Rather Than Installing
« Reply #3 on: September 26, 2005, 09:32:37 am »
Are the ipks actually tar.gz files, or have they been gunzip'ed by your browser - I seem to remember hearing about this message when the ipks weren't in the correct format.


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

dninja

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.freedomsoftware.co.uk
Ipkg Terminates Rather Than Installing
« Reply #4 on: September 26, 2005, 09:45:38 am »
All I'm doing is:
Code: [Select]
ipkg install bashor whatever package. My feeds are set to the OZ site so the files are in whatever format they come off there from. I've also tried installing from a downloaded package and that didn't work either.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ipkg Terminates Rather Than Installing
« Reply #5 on: September 26, 2005, 12:32:44 pm »
The files from the oz.org feed are in ar format so I don't know what the gunzip message is all about.

What version of ipkg are you using?


Si
« Last Edit: September 26, 2005, 12:32:57 pm by lardman »
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

Psion

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Ipkg Terminates Rather Than Installing
« Reply #6 on: September 26, 2005, 04:44:43 pm »
I'm gonna jump in on this thread, cuz I'm having similar type issues ipkg-ing also.

Downloaded qtopia-brightness, qtopia-cardmon, qtopia-irda, and qtopia-battery, but add/remove wont see them.  So through the console I see that I get a message saying:
"not in qzip format"

Anyone have a suggestion?

Thanks.
SL-5500: Updated SharpROM 3.10
256MB CF card / 128MB SD
D-Link Air DCF-660W Wi-Fi CF card
Work laptop running XP Pro
Work laptop running Mac OSX 10.4.1
Home-made PC running dual-boot XP Home and PCLinuxOS

dninja

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.freedomsoftware.co.uk
Ipkg Terminates Rather Than Installing
« Reply #7 on: September 27, 2005, 05:24:22 pm »
I've found out what the problem is!

For some reason the file download part of ipkg doesn't work, it calls wget with the correct params but, on my machine, takes ages and doesn't actually download much. It then seems to time out but still tries to process the partial file, it then fails and gives up.

This is why it still failed when I tried it with a local file rather than one from the net, the file was corrupt. If I do the wget myself the files download at correct speed then install fine. I've now got bash installed and running quite happily.

Does this need raising as a bug in OZ or somewhere else?

dninja

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.freedomsoftware.co.uk
Ipkg Terminates Rather Than Installing
« Reply #8 on: September 27, 2005, 05:39:29 pm »
Quote
What version of ipkg are you using?

[div align=\"right\"][a href=\"index.php?act=findpost&pid=97105\"][{POST_SNAPBACK}][/a][/div]

I'm using...

ipkg -v
ipkg version 0.99.148

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Ipkg Terminates Rather Than Installing
« Reply #9 on: September 27, 2005, 05:59:04 pm »
Quote
For some reason the file download part of ipkg doesn't work, it calls wget with the correct params but, on my machine, takes ages and doesn't actually download much. It then seems to time out but still tries to process the partial file, it then fails and gives up.

This is why it still failed when I tried it with a local file rather than one from the net, the file was corrupt. If I do the wget myself the files download at correct speed then install fine. I've now got bash installed and running quite happily.

Does this need raising as a bug in OZ or somewhere else?

Interesting, though if it were a bug I'd have thought someone else would have noticed it...

Are you behind a proxy?


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

dninja

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.freedomsoftware.co.uk
Ipkg Terminates Rather Than Installing
« Reply #10 on: September 27, 2005, 06:06:04 pm »
No, direct net connection.

The odd thing is that the exact same wget line the ipkg debug prints out works if I run it from the command line.

I'm all happy I've now got vim and bash on there but disapointed that I've now hit dependancy problems with xmms and opie media player!

inode0

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Ipkg Terminates Rather Than Installing
« Reply #11 on: September 27, 2005, 06:33:18 pm »
Quote
The odd thing is that the exact same wget line the ipkg debug prints out works if I run it from the command line.
Any chance there are mulitple versions of wget on your system? Or possibly the target partition is close to full?

John

dninja

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.freedomsoftware.co.uk
Ipkg Terminates Rather Than Installing
« Reply #12 on: September 28, 2005, 04:00:54 am »
Quote
Any chance there are mulitple versions of wget on your system? Or possibly the target partition is close to full?

There are 2 wgets on there but the first isn't in the path.

 find . -name wget
./media/realroot/usr/bin/wget
./usr/bin/wget

And the target has 144M left, plenty of room for the 300K download I'm trying to get.

dninja

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.freedomsoftware.co.uk
Ipkg Terminates Rather Than Installing
« Reply #13 on: September 28, 2005, 04:55:43 am »
This gets stranger....

I thought that I'd give ipkg another chance to work from the net and it installed a package fine, next one failed so I resorted to runnign wget myself, that started failing, stalling and running slow.

To check if it was at my end or the feed end I did the same get from my desktop, the file came down instantly. I then tried scp'ing the file across and that started stalling as well.

I've tried different network cables and different network ports, doesn't seem to affect it. ssh runs fine, i haven't notice anything wrong but then speed isn't usually an issue with ssh.

I thought about trying a proxy but that wouldn't help with scp being slow.

I'll keep diging, any help or suggestions appreciated.

Psion

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Ipkg Terminates Rather Than Installing
« Reply #14 on: September 28, 2005, 12:17:45 pm »
Reading the above thread led me to check into something.
I had been downloading my ipk's onto a Mac and then transferring to a CF.

I decided to download onto my winXP machine insteead.  Download took longer, and all of a sudden I could install the ipk's.

Something to keep in mind.
SL-5500: Updated SharpROM 3.10
256MB CF card / 128MB SD
D-Link Air DCF-660W Wi-Fi CF card
Work laptop running XP Pro
Work laptop running Mac OSX 10.4.1
Home-made PC running dual-boot XP Home and PCLinuxOS