Log in

Bekijk de volledige versie : Problem installing ipkg



the_slider
27-06-2005, 08:46
Hi everyone,

Frist, thank you all. I've recently bought an asus 500gx thanks to you.
I have read lots of post and tutorial in this forum and other web links.

But, I steel have a problem installing ipkg.

I have a 256M usb stick with two partitions: the first one is a 30M swap and the second one is an EXT3 partition mounted on /opt.


Just after that, I update the ipkg package like that:
ipkg.sh update

And after, I try to install it but I have this error:




ipkg.sh install ipkg

Downloading http://wl500g.dyndns.org/ipkg/ipkg_0.99.149-2_mipsel.ipk ...
Connecting to wl500g.dyndns.org[212.192.248.17]:80
ipkg_0.99.149-2_mips 100% |************************************************* ******************************| 71113 00:00 ETA
Done.
tar: ./control: No such file or directory
ipkg_install_file: ERROR unpacking control.tar.gz from //opt/tmp/ipkg/ipkg_0.99.149-2_mipsel.ipk
ipkg_get_install: ERROR: Failed to install //opt/tmp/ipkg/ipkg_0.99.149-2_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation

Downloading http://wl500g.dyndns.org/ipkg/ipkg_0.99.149-2_mipsel.ipk ...
Connecting to wl500g.dyndns.org[212.192.248.17]:80
ipkg_0.99.149-2_mips 100% |************************************************* ******************************| 71113 00:00 ETA
Done.
tar: Couldnt remove old file: Input/output error
ipkg_install_file: ERROR unpacking control.tar.gz from //opt/tmp/ipkg/ipkg_0.99.149-2_mipsel.ipk
ipkg_get_install: ERROR: Failed to install //opt/tmp/ipkg/ipkg_0.99.149-2_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation


I do this just after a restore default.

Do you have some ideas?

macsat
27-06-2005, 21:23
Can it really be that no one else gets this error ?

Do we have a problem with the package itselves? Oleg? Jean Fabrice ?

Jean-Fabrice
27-06-2005, 23:59
dunno.
What is the installed firmware version ?

JF

macsat
28-06-2005, 07:12
He has installed CR-6a

the_slider
28-06-2005, 08:43
After some investigation, I found that it's the ipkg.sh script who have a problem.

If I try manualy to untar the ipkg_0.99.149-2_mipsel.ipk to control.tar.gz and then to untar it, it's OK.

This is the line where there is a problem :
if ! $pkg_extract_stdout $filename ./control.tar.gz | (cd $IPKG_TMP/$pkg/control; tar -xzf - ) ; then
echo "ipkg_install_file: ERROR unpacking control.tar.gz from $filename"
return 1
fi

I try to change it, but no success.

I have the last firmware by oleg.
Do you have some ideas?

Jean-Fabrice
28-06-2005, 08:48
can you issue


sh -x /usr/bin/ipkg.sh install ipkg 2>/tmp/ipkg.log

and post here the generated /tmp/ipk.log file ?

JF

the_slider
28-06-2005, 18:55
when I try :
sh -x /usr/bin/ipkg.sh install ipkg >/tmp/ipkg.log

I have this:


+ local missing_deps=
+ [ ! -z ]
+ mkdir -p //opt/tmp/ipkg/ipkg/control
+ mkdir -p //opt/tmp/ipkg/ipkg/data
+ mkdir -p //opt/lib/ipkg/info
+ tar -xzOf //opt/tmp/ipkg/ipkg_0.99.149-2_mipsel.ipk ./control.tar.gz
+ cd //opt/tmp/ipkg/ipkg/control
+ tar -xzf -
tar: Couldnt remove old file: Input/output error
+ echo ipkg_install_file: ERROR unpacking control.tar.gz from //opt/tmp/ipkg/ipkg_0.99.149-2_mipsel.ipk
+ return 1
+ echo ipkg_get_install: ERROR: Failed to install //opt/tmp/ipkg/ipkg_0.99.149-2_mipsel.ipk
+ echo ipkg_get_install: I'll leave it there for you to try a manual installation
+ return 1
+ true
+ [ 0 -gt 0 ]
+ ls //opt/tmp/ipkg
+ rm -rf //opt/tmp/ipkg/ipkg
+ rm -rf //opt/tmp/ipkg/ipkg_0.99.149-2_mipsel.ipk

There is a problem in the script!

Jean-Fabrice
28-06-2005, 20:27
weird :/

Well, could you :
1) Check that you only have one 'tar' on your system (the one which sit under /bin, and which is a symlink to busybox)
2) Check that your /opt is mounted read-write and not read only ?
3) Delete tmp dir in /opt
4) run a fsck on your /opt filesystem (umount it first then use e2fsck)
5) Are you 100% sure of your usb stick ?

Once done and if you are still unsuccessfull, I'm out of idea :/

JF

the_slider
29-06-2005, 08:35
I found the solution !

It was the usb stick .....
Very stange, it was a new one !

Thanks a lot everybody!!!!