OpenWrt Forum Archive

Topic: Ipkg not installing locally

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

For some reason I can't use ipkg to install from the tmp directory. I scp it over and run

root@host:~# ipkg install /tmp/wpa-supplicant_0.5.7-1_mipsel.ipk.gz

The file is certainly still there (in the /tmp directory) and there were no errors from scp but I get the error:

Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package /tmp/wpa-supplicant_0.5.7-1_mipsel.ipk.gz.
Check the spelling or perhaps run 'ipkg update'

The router is offline so I can't run ipkg update or install it over the network. I can't figure out what I can do to fix this.

(Last edited by napierzaza on 2 Aug 2007, 03:00)

I think ipkg to install only IPK extensions files, not compressed GZ files...
Try to uncompress your package and retry

I tried that as well and it said something along the lines of "no gz magic." Yes it used the word magic.
So I really don't know what I can do.

Try just renaming the original file to .ipk and then installing it. (i.e. don't decompress it, just fix the filename)

This happens to me as well... I have the packages (.ipk) in my /tmp directory and i get the exact same error as napierzaza...

I thought i was doing something wrong but now it seems i am not the only one with the problem.

Any help would be welcome...

Have you tried removing the gz extension without unpacking? I haven't had the chance.

i have the same error as you but not with the same packages... in my case i was trying to install vsftpd which has .ipk only as "extension".

I type

ipkg install name_of_the_package.ipk

and i get that same error... i can't figure out why...

You had navigated to the /tmp dir?

i tried several ways, i downloaded the fipk file to /tmp and tried to install to ram, tried to install to root, etc...

didn't work...

now i downgraded from kamikaze 7.07 to 7.06 and i installed vsftpd (and it is working) but i still can't install files downloaded locally

:S

I somewhat doubt ipkg likes the extra gzip layer. I assume .ipkgs use some form of compression, but possibly ipkg isn't smart enough to realize this since the header is now incorrect. I compiled my own packages and installed locally on 7.06 and 7.07, so its not an OpenWRT problem. Where are you getting the package from? Did you try copying it to a Linux box and extracting the contents (just the .ipkg) then copying that back and installing locally?

(Last edited by TemplaraPhoenix on 3 Aug 2007, 05:48)

The packages are from the OpenWRT Kamikaze 707 folder called "packages." I download something wpa-supplicant_0.5.7-1_mipsel.ipk       and it doen't install. I was already gz'ped and I did no manipulating aside from scp'ing it and it didn't work. Then I tried just opening up the gz and installing only the ipkg and that didn't work.

Downloaded from here:
http://downloads.openwrt.org/kamikaze/7 … /packages/

(Last edited by napierzaza on 3 Aug 2007, 06:25)

Hi

If I use the link you provide I can download wpa-supplicant but it's not a gzip archive. It's just a ipkg package so you shouldn't do anything with but running ipkg install /share/wpa-supplicant_0.5.7-1_mipsel.ipk. The package works fine when I download it. It sounds like the system that you are using to download the package screws up the package.

Yes it is a gzip. On the site it's not listed as one though. I don't know why.

I'm using Safari.

EDIT:

Yes indeed it appears as if Safari is adding the .gz extension to the file. It now installs properly when it is removed (just edit the file-name).

(Last edited by napierzaza on 3 Aug 2007, 14:12)

The discussion might have continued from here.