OpenWrt Forum Archive

Topic: Ipkg not working

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

Hi all,
when I run an ipkg command, such as ipkg install apache, I get he following:
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package apache.
Check the spelling or perhaps run 'ipkg update'
When I run ipkg update, the following happens:
Downloading http://downloads.openwrt.org/snapshots/ … s/Packages
wget: server returned error: HTTP/1.1 404 Not Found
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp
-q -P /tmp/ipkg-P5wOmH http://downloads.openwrt.org/snapshots/x86/packages/Pa
ckages'
What do I hve to do in this case? I'm using an Alix 2c2 mainboard with Camikaze. Thnks!
Robin24

Hello,
sorry, but that doesn't help me at all... I don't have a Linux system available, only my OpenWRT Alix2c2. Also, I don't see why you'd have to build and install a new image whenever you want to installa new program, doesn't make sense. So, could you please tell me what else I can do just using the OpenWRT device? Thanks
Robin24

robin24 wrote:

I don't have a Linux system available, only my OpenWRT Alix2c2.

Use a VM e.g. VMware Player or better andLinux and you can start building...

No, doesn't work aither. I'm blind and using a screen reader (Jaws). VMWare isn't usable with Jaws and I don't have any hd space left anyway. So now please, a way in which I can install a program using ipkg. I mean, when the devs put ipkg in thei OpenWRT, they probably didn't just do it because it looks good.
Robin24

The problem is you need the packages that go with your build.  Since you've got a recent build from SVN, you'll probably need the packages from that.  If you cant get those, you can try pointing your /etc/ipkg.conf to the packages from 7.09 at http://downloads.openwrt.org/kamikaze/packages/i386/.  I'm not sure if they will work though...

robin24:
If you are using a recent snapshot of kamikaze (especially no 7.0x), you should be able to use the packages from the x-wrt site:

http://downloads.x-wrt.org/xwrt/kamikaz … /packages/

There should be everything you need.

If you don't have a recent snapshot you can try to install one from x-wrt even if you don't plan to use the web interface. That ensures that the packages from there work with your system.

KM

(Last edited by KanjiMonster on 2 Jun 2008, 20:31)

Hi,
I just downloaded Apache using wget and then executed ipkg install apache.ipk
Then I got the following message:
Installing apache-server (2.2.6-2) to root...
Nothing to be done
An error ocurred, return value: 1.
Collected errors:
ERROR: Cannot satisfy the following dependencies for apache-server:
apache
Well, that's very interesting because Apache is what I'm trying to install. And I'm using the latest snapshot on my Alix.
Thanks!
Robin24

This seems to be current state with apache. There is an open ticket for it. But I don't know how to fix it.

Btw, instead of downloading every single package with wget, try adding the following line to your /etc/ipkg.conf file:

src x-wrt http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/x86-2.6/packages/

Then do "ipkg update". After that ipkg will automatically download any dependency a package might need, and you can install packages just by doing ipkg install <package>.

(Last edited by KanjiMonster on 3 Jun 2008, 10:35)

The discussion might have continued from here.