Author Topic: Problems with ipkg  (Read 2825 times)

waalkman

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Problems with ipkg
« on: September 29, 2004, 05:16:35 am »
So I download ipk's from both stable and unstable from the pdaXrom site. I make sure to get the "Packages" files as well.

I setup my package manager to use the directories that I downloaded the ipk's to as the feed and told ipkg to update.

ipkg found the directories as they should, but it returned the error message "Unsupported scheme".

Googling for the error came up with a few references to the same problem with wget.

Has anyone else seen this problem, or knows what's going wrong?


Thanks,

John
C860, SMC Model SMC2642W, various sized memory cards

Mag1c

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
Problems with ipkg
« Reply #1 on: September 29, 2004, 07:36:32 am »
Hi,

if you want to use a feed, you have to make it available for http access. So either

a: set up a local http server
b: install the packages without feed (ipkg install ...)
c: use the original feed from web

Greets
Mag1c
« Last Edit: September 29, 2004, 07:37:37 am by Mag1c »

waalkman

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Problems with ipkg
« Reply #2 on: September 30, 2004, 05:22:56 am »
Actually, pdaXrom's package manager allows you to setup a local feed, and remove the network one as well if you like. Looking at the contents of /etc/ipkg.conf confirms this.

BTW, adding "set -x" somewhere near the top of /usr/bin/ipkg (ipkg is actually just a wrapper for wget) will cause ipkg to print out debug information (I put it just above the "set -e" line). Then running ipkg install foo.ipk will show that the error actually comes from wget.

Now on to why wget doesn't like these files...


Thanks,

John

P.S. apparently the new version of ipkg (http://handhelds.org/moin/moin.cgi/Ipkg) that's compiled, not a scipt. Has anyone had any experience with it?
C860, SMC Model SMC2642W, various sized memory cards

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Problems with ipkg
« Reply #3 on: September 30, 2004, 05:30:02 am »
I installed the ipkg package from OZ3.3.5 over the pdaXrom one.

I started a thread about this somewhere a while back.

It performs far better (more stable, better error recovery, ipkg-link), but it trips over some of the pdaXrom packages as it's more strict about the layout of the control file. ymmv.


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

waalkman

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Problems with ipkg
« Reply #4 on: October 01, 2004, 02:34:40 am »
Quote
It performs far better (more stable, better error recovery, ipkg-link), but it trips over some of the pdaXrom packages as it's more strict about the layout of the control file. ymmv.

That was something else I had noticed, that the package installer would complain about the control.tar.gz file and not install it. Unpacking the file shows that it's just a text file, why should that stop the installer?

Running ipkg from the command line on the same file will go ahead and install it, but only to /


Thanks,

John
C860, SMC Model SMC2642W, various sized memory cards

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Problems with ipkg
« Reply #5 on: October 01, 2004, 05:29:03 am »
It parses the file. Things like empty lines upset it (which is a bug I suppose, or a method of making people write good control files? ;-), and I think something about the filename field may also cause troubles (just a gut feeling, I looked at this a long time ago).


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

waalkman

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Problems with ipkg
« Reply #6 on: October 02, 2004, 04:17:36 am »
Quote
It parses the file. Things like empty lines upset it (which is a bug I suppose, or a method of making people write good control files? ;-),

Yeah, that's it, obviously a feature


Quote
and I think something about the filename field may also cause troubles (just a gut feeling, I looked at this a long time ago).


Si

Hmmm, I'll have to compare a good one with a bad one and see if I can spot the difference.

Thanks,


John
C860, SMC Model SMC2642W, various sized memory cards