Yún do not accept opkg update

Hello!

writing

root@Arduino:~# opkg update

I have this fault:

Downloading http://download.linino.org/dogstick/all-in-one/latest/packages//Packages.gz.
wget: bad address 'download.linino.org'
Downloading http://download.linino.org/dogstick/all-in-one/latest/packages//Packages.sig.
wget: bad address 'download.linino.org'
Signature check failed.
Remove wrong Signature file.
Collected errors:
 * opkg_download: Failed to download http://download.linino.org/dogstick/all-in-one/latest/packages//Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://download.linino.org/dogstick/all-in-one/latest/packages//Packages.sig, wget returned 1.
root@Arduino:~#

any suggestions please

Can you

ping download.linino.org
PING download.linino.org (88.198.63.58): 56 data bytes
64 bytes from 88.198.63.58: seq=0 ttl=39 time=129.515 ms
64 bytes from 88.198.63.58: seq=1 ttl=39 time=127.971 ms
64 bytes from 88.198.63.58: seq=2 ttl=39 time=128.162 ms

?

Thanks for the suggestion!

root@Arduino:~# ping download.linino.org
ping: bad address 'download.linino.org'
root@Arduino:~#

it is possible my yun is only on the lan and it can not get out on the net?

That's certainly what it looks like.
What do you get from

 ifconfig
eth1      Link encap:Ethernet  HWaddr 90:A2:DA:F9:04:27  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:59 errors:0 dropped:0 overruns:0 frame:0
          TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4895 (4.7 KiB)  TX bytes:4895 (4.7 KiB)

wlan0     Link encap:Ethernet  HWaddr 90:A2:DA:F1:04:27  
          inet addr:192.168.2.206  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1056773 errors:0 dropped:160413 overruns:0 frame:0
          TX packets:15782 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32 
          RX bytes:177319357 (169.1 MiB)  TX bytes:3532792 (3.3 MiB)

?

Are you working in a serial terminal or ssh session?

Thanks for your help!
I use ssh via Putty

root@Arduino:~# ifconfig
eth1      Link encap:Ethernet  HWaddr 90:A2:DA:F8:0C:82
          inet addr:192.168.0.122  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1423 errors:0 dropped:76 overruns:0 frame:0
          TX packets:543 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:187086 (182.7 KiB)  TX bytes:85548 (83.5 KiB)
          Interrupt:4

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:41 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3257 (3.1 KiB)  TX bytes:3257 (3.1 KiB)

wlan0     Link encap:Ethernet  HWaddr 90:A2:DA:F0:0C:82
          inet addr:192.168.0.122  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:56 errors:0 dropped:6 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:7650 (7.4 KiB)  TX bytes:5558 (5.4 KiB)

It looks like you are connected through the Ethernet port and WiFi on the same IP address. Try unplugging the Ethernet or turning off the WiFi.

When I plug in the Ethernet with the WiFi connected I can still ping linino.org but the interfaces have different addresses:

:~# ping download.linino.org
PING download.linino.org (88.198.63.58): 56 data bytes
64 bytes from 88.198.63.58: seq=0 ttl=39 time=129.029 ms
64 bytes from 88.198.63.58: seq=1 ttl=39 time=131.320 ms
64 bytes from 88.198.63.58: seq=2 ttl=39 time=128.088 ms
64 bytes from 88.198.63.58: seq=3 ttl=39 time=128.072 ms
64 bytes from 88.198.63.58: seq=4 ttl=39 time=127.965 ms
^C
--- download.linino.org ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 127.965/128.894/131.320 ms
:~# ifconfig
eth1      Link encap:Ethernet  HWaddr 90:A2:DA:F9:04:27  
          inet addr:192.168.2.211  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:704 errors:0 dropped:13 overruns:0 frame:0
          TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:129904 (126.8 KiB)  TX bytes:7135 (6.9 KiB)
          Interrupt:4 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2098 (2.0 KiB)  TX bytes:2098 (2.0 KiB)

wlan0     Link encap:Ethernet  HWaddr 90:A2:DA:F1:04:27  
          inet addr:192.168.2.206  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:85582 errors:0 dropped:18553 overruns:0 frame:0
          TX packets:1512 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32 
          RX bytes:14109920 (13.4 MiB)  TX bytes:200752 (196.0 KiB)

Have you configured the Yun to have a static address or are you using DHCP?

as noted now is disabled the wireless connection
I have a static address:192.168.0.122

root@Arduino:~# ifconfig
eth1      Link encap:Ethernet  HWaddr 90:A2:DA:F8:0C:82
          inet addr:192.168.0.122  Bcast:192.168.0.1  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:458 errors:0 dropped:12 overruns:0 frame:0
          TX packets:494 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:48213 (47.0 KiB)  TX bytes:174119 (170.0 KiB)
          Interrupt:4

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1584 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1584 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:107568 (105.0 KiB)  TX bytes:107568 (105.0 KiB)

but I still have

 ping download.linino.org
ping: bad address 'download.linino.org'

thank you very much

I believe your problem is in your network configuration. I am no networking guru, that's why I use DHCP, it all happens automagically. If you can I would recommend using DHCP.

If you have to use a static address, here is the output from my route command it may help you:

:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.2.1     0.0.0.0         UG    0      0        0 wlan0
default         192.168.2.1     0.0.0.0         UG    10     0        0 eth1
192.168.2.0     *               255.255.255.0   U     0      0        0 wlan0
192.168.2.0     *               255.255.255.0   U     10     0        0 eth1

Thank you so much for your help and patience!
I switch as recommended to DHCP, and finally I have: :slight_smile:

PING download.linino.org (88.198.63.58): 56 data bytes
64 bytes from 88.198.63.58: seq=0 ttl=47 time=52.930 ms
64 bytes from 88.198.63.58: seq=1 ttl=47 time=52.410 ms
...
--- download.linino.org ping statistics ---
266 packets transmitted, 265 packets received, 0% packet loss
round-trip min/avg/max = 51.220/52.615/87.654 ms

which indicates that finally works!!!!

I had this problem as well although I had DCHP enabled on my wifi connection.

I found it seemed to fix itself if I reconnected to the wifi. In the LUCI configuration panel, go to the network tab and click "reconnect" on the network you are connecting through. This should refresh the settings on the Yun.

I had the same problem with bad address and final deleted the link /etc/resolv.conf to /tmp/resolv.conf that just had
search lan
nameserver 127.0.0.1
I then used echo to create a new /etc/resolv.conf that had the following so am using google DNS servers
nameserver 8.8.8.8
nameserver 8.8.4.4
I can now run opkg update with no problem
Probably not the correct way to do it, but it works
rgb

70agiuseppe:
as noted now is disabled the wireless connection
I have a static address:192.168.0.122

Well, did you set only the static IP address and subnet mask (as that is the only part that can be taken from the ifconfig output)?

root@Arduino:~# ifconfig

eth1      Link encap:Ethernet  HWaddr 90:A2:DA:F8:0C:82
          inet addr:192.168.0.122  Bcast:192.168.0.1  Mask:255.255.255.0
[/quote]

[quote][code] ping download.linino.org
ping: bad address 'download.linino.org'

That can have two possible reasons:

  1. you set only the IP address but not the gateway address
  2. you did not set (properly) the DNS server addresses

Ralf[/code]

mine did that yesterday .... 14/06/2014.

site was down!

unstable

Please retry

Hi, I read in this forum, but I do not understand how to put static IP with DHCP switch?.
Thanks a lot. :slight_smile:

Why do you want to do that? Is your problem related to the topic (opkg and installing additional softwares) ?

rbradley:
I had the same problem with bad address and final deleted the link /etc/resolv.conf to /tmp/resolv.conf that just had
search lan
nameserver 127.0.0.1
I then used echo to create a new /etc/resolv.conf that had the following so am using google DNS servers
nameserver 8.8.8.8
nameserver 8.8.4.4
I can now run opkg update with no problem
Probably not the correct way to do it, but it works
rgb

Thanks! Correct or not, this worked for me, too (using a static IP).

Hi,

I can ping download.linino.org and still get the error message.

Obviously there must be another reason than a connectivity problem.

What does "Remove wrong Signature file." mean? Is this a recommendation? Where is the signature file to be removed?

Any ideas?

Thank you :slight_smile:

root@Webserver:~# ping download.linino.org
PING download.linino.org (88.198.63.58): 56 data bytes
64 bytes from 88.198.63.58: seq=0 ttl=42 time=126.389 ms
(...)
^C
--- download.linino.org ping statistics ---
round-trip min/avg/max = 125.782/127.003/127.756 ms

root@Webserver:~# opkg update
Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/attitude_adjustment.
Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig.
Signature check failed.
Remove wrong Signature file.
root@Webserver:~#

PS: I just installed the latest image (NOV14) and now it works again.

The only difference "before" and "after" is the new image file.

It probably overwrote the file with the wrong information.

I don't suggest this is a great solution, leveling the machine and starting from scratch, but it is another strong indicator that static IPs are not the underlying issue, but a corrupt file on the Yun.

I'll now assign again static IPs and check if it still works. I can't see why this should have anything to do with static IPs (as long as it's done right).