Re: ipkg: invalid magic problem

From: <pigi_at_frumar.it>
Date: Thu, 6 Apr 2006 10:03:07 +0200

Fabian,
  from the log you sent me, I can see that you are downloading from some your
local feed ( 192.168.178.24).
Usually "ipkg: invalid magic" means that the ipk is not correct, either at ar
level, or the tar inside.
Just FYI , an ipk is an ar file that contains two tar file: control.tar.gz and
data.tar.gz
You can test if the ipk is good or not by copying it in some temporary
directory ( eventually on your desktop or on your ipaq) :
--------------------------------------
# mkdir temp
# cd temp
# wget http://192.168.178.24/pda/base/ipkg_0.99.159-r0_arm.ipk
# ar x ipkg_0.99.159-r0_arm.ipk
# ls
control.tar.gz data.tar.gz debian-binary ipkg_0.99.159-r0_arm.ipk
# tar ztvf control.tar.gz
drwxrwxr-x root/root 0 2006-03-30 11:25:33 ./
-rw-rw-r-- root/root 728 2006-03-30 11:25:33 ./control
-rwxrwxr-x root/root 881 2006-03-30 11:25:33 ./postinst
-rwxrwxr-x root/root 124 2006-03-30 11:25:33 ./prerm
# tar zvtf data.tar.gz
drwxrwxr-x root/root 0 2006-03-30 11:25:33 ./
drwxrwxr-x root/root 0 2006-03-30 11:25:33 ./usr/
drwxrwxr-x root/root 0 2006-03-30 11:25:31 ./usr/bin/
-rwxr-xr-x root/root 3316 2006-03-30 11:25:31 ./usr/bin/ipkg-cl
-rwxr-xr-x root/root 4248 2006-02-06
23:31:48 ./usr/bin/update-alternatives
drwxrwxr-x root/root 0 2006-03-30 11:25:33 ./usr/share/
drwxrwxr-x root/root 0 2006-03-30 11:25:31 ./usr/share/ipkg/
drwxrwxr-x root/root 0 2006-03-30 11:25:31 ./usr/share/ipkg/intercept/
-rwxr-xr-x root/root 151 2006-02-06
23:33:22 ./usr/share/ipkg/intercept/ldconfig
-rwxr-xr-x root/root 231 2006-02-06
23:33:20 ./usr/share/ipkg/intercept/depmod
-rwxr-xr-x root/root 175 2006-02-06
23:33:23 ./usr/share/ipkg/intercept/update-modules
drwxrwxr-x root/root 0 2006-03-30 11:25:33 ./usr/share/doc/
drwxrwxr-x root/root 0 2006-03-30 11:25:33 ./usr/share/doc/ipkg/
-rw-rw-r-- root/root 448 2006-03-30
11:25:33 ./usr/share/doc/ipkg/copyright
--------------------------------------------------------------

if everyone of this command should fail, then you have a bad copy of this
file.

Let me know

Pigi
On Wednesday 05 April 2006 19:07, Fabian Schwartau wrote:
> Hello!
> First of all I culd not execute this command: pkg -V 4 upgrade | tee
> log_ipkg Don't know how to make | with the English keyboard layout :)
> So in the attachment is the whole "pkg -V 4 upgrade" command.
>
> I hope you can help me and I hope that I can help you :)
>
> Fabian
Received on Thu Apr 06 2006 - 04:04:09 EDT

This archive was generated by hypermail 2.2.0 : Thu Apr 06 2006 - 04:11:11 EDT