NSLU2-Linux
view · edit · print · history

FAQ.IpkgUpdateDoesntWork History

Hide minor edits - Show changes to markup

December 28, 2007, at 12:40 AM by bcrowell --
Changed lines 21-22 from:

Bcrowell found that on his linux box, it seemed to work if he did an "nslookup," and to the DNS server address from the first line of output.

to:
Bcrowell found that on his linux box, it seemed to work if he did an "nslookup," and to the DNS server address from the first line of output.
December 28, 2007, at 12:40 AM by bcrowell -- how to find out DNS server
Added lines 21-22:

Bcrowell found that on his linux box, it seemed to work if he did an "nslookup," and to the DNS server address from the first line of output.

August 22, 2005, at 03:33 PM by tman --
Added lines 1-31:

ipkg update doesn't work

Symptoms: ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp -q -P /tmp/ipkg-x3a5K1 http://ipkg.nslu2-linux An error ocurred, return value: 1.

These errors can be cause by two things. 1) DNS is unreachable and 2) you have an http proxy.

Simple solution: It is easy to miss a DNS setting. Revert network and slug to default settings. If you overlooked a DNS setting previously reverting to defaults may eliminate the problem.

Default settings should be as follows:

Router IP - 192.168.1.1 <http://192.168.1.1>
Subnet 255.255.255.0 <http://255.255.255.0>
Slug IP: 192.168.1.77 <http://192.168.1.77>
Subnet 255.255.255.0 <http://255.255.255.0>
Default port 80

If these settings do not make a difference consider the following file edits.

DNS is unreachable

Solution: Make sure your netmasks and gateway information are set properly. If they are and you're running an own dhcp server on your LAN, see that there's a line like option domain-name-servers dns.ip.address.here, 2nd.ip.address.here; in your /etc/dhcpd.conf file.
Solution: If you have a windows box, bring up a command line and type "ipconfig /all." Note the gateway and DNS server numbers. Go to the Linksys slug setup page ("Administration," then "LAN") and make sure you have entered the proper network mask, gateway (usually the same IP as your router) AND DNS servers.

You have an http proxy

Solution: You need to configure ipkg to go through the proxy. This is done through the file /etc/ipkg.conf, but the standard unSlung installation doesn't have a sample file.
For a simple proxy, a single line option http_proxy http://proxy.ip.address.here:proxy_port will do the job (mine needs option http_proxy http://192.168.255.1:3128).
For a proxy that needs username, password etc. you'll need more - look at the ipkg documentation at http://handhelds.org/moin/moin.cgi/Ipkg and the sample file http://openwrt.org/ipkg/ipkg.conf.
view · edit · print · history · Last edited by bcrowell.
Based on work by bcrowell.
Originally by tman.
Page last modified on December 28, 2007, at 12:40 AM