Arduino Yun not installing packages even after Open-WRT package update

Hello,
Ive been trying to install some packages on my Arduino Yun via SSH for the past few days but I haven't been able to. I have no troubles with uploading sketches wirelessly and I even updated to the attitude adjustment in hopes that I would be able to install packages like kmod-video-uvc.
These are the kinds of errors I get when I try to update a package.

root@Arduino:~# opkg update
Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.gz.
Downloading http://downloads.arduino.cc/openwrtyun/1/packages/Packages.sig.
Signature check failed.
Remove wrong Signature file.
Collected errors:

Any help would be greatly appreciated!
Thanks,
Karthik

The successful of signature check require two conditions are met:

  • Internet connection
  • Correct date/time setting

Test Internet connection:

root@Arduino:~# ping sun.com
PING sun.com (156.151.59.35): 56 data bytes
64 bytes from 156.151.59.35: seq=0 ttl=239 time=120.326 ms

Get date/time:

root@Arduino:~# date
Mon Aug 10 21:46:56 CLT 2015

Setup date/time:

date -s  [YYYY.]MM.DD-hh:mm[:ss]

Sample:

date -s  2015.08.10-21:41:50

Hey thanks a lot for the reply,

I am pretty surprised because I don't think the connection has an issue. I am able to upload sketches wirelessly to the Yun with no problem at all however, when I try try a 'ping' command it just says 'ping bad address' even if I say ping google.com. Is it possible that Yun is having trouble connecting to other servers? Also is it possible to upload sketches via WiFi thats not built into the Yun?

For example, would it be possible for me to upload a sketch to the Yun from my home wifi? Sorry for the basic questions, I am fairly new to Arduino.

Any help would be appreciated.

Connect ethernet cable between router and Yun.

Reset to factory settings

manthak:
Hey thanks a lot for the reply,

I am pretty surprised because I don't think the connection has an issue. I am able to upload sketches wirelessly to the Yun with no problem at all however, when I try try a 'ping' command it just says 'ping bad address' even if I say ping google.com. Is it possible that Yun is having trouble connecting to other servers? Also is it possible to upload sketches via WiFi thats not built into the Yun?

For example, would it be possible for me to upload a sketch to the Yun from my home wifi? Sorry for the basic questions, I am fairly new to Arduino.

Any help would be appreciated.

@manthak,
this is a canned answer. It should help you with your issue.

= [Q:] I cannot connect to My Arduino Yún. What do I do? =

First it's good to know, when Arduino Yun cannot find the AP you have set it for (like your home wifi), it has a script that puts it back into default SSID and AP mode.

Next, you may have already watched this video, but it's worth watching again. Pay extra attention to the part with the sketches.
Getting started with Arduino Yún - tutorial (6:53)

Then, read these short instructions. We (the volunteer support group) already know these steps by heart, so be familiar with the different reboot methods, and especially the 30+ second wifi reset. Also, not mentioned on that page, if you reset the Wifi/Linux part of the Yun, it will take from 2-8 minutes for the reboot. Lastly on this part, YOU MUST WAIT for the Linux portion to fully boot BEFORE YOU PRESS ANY of the REST buttons.

Lastly, before you do this make sure you backup and data you have on your Yun as it will be lost after this reset.

Resetting the processors (AR9331, WiFi, and 32U4)
http://arduino.cc/en/Guide/ArduinoYun#toc6

'''Then start over''', plug your Yun into the USB port, run this sketch, and hit the ''Wifi Reset button'' (for 5-10 seconds).
http://arduino.cc/en/Tutorial/YunSerialTerminal

The YunSerialTerminal provides a simplified console access to the Linux part of the Yun. It works via the USB port (the one that powers the Yun - the microUSB). From there you'll be able to run a few commands to give us a better idea of problems.

Also, be ready with this sketch YunWiFiStatus. This sketch will help us see the status of your home AP. The sketch prints the wifi status to the console every 5 seconds or so. This sketch might seem familiar as it was in that first video link (above).

Let us know how it goes.
Post results from the YunSerialTerminal, if you are still having problems.
Please use markup when posting results.

Jesse

arduino_markup.png

manthak:
I am pretty surprised because I don't think the connection has an issue. I am able to upload sketches wirelessly to the Yun with no problem at all

That shows that you have a good connection between your computer and the Yun.

however, when I try try a 'ping' command it just says 'ping bad address' even if I say ping google.com. Is it possible that Yun is having trouble connecting to other servers?

And that shows that your Yun has a problem connecting with servers on the Internet.

Also is it possible to upload sketches via WiFi thats not built into the Yun?

For example, would it be possible for me to upload a sketch to the Yun from my home wifi?

This sounds like you are running the Yun in its default access point mode, and connecting your computer to it. In this case, you have a two node network (the Yun and your computer) with no connection to the outside world -- so you can't ping google.com, and you can't access the servers to do opkg operations. Your computer might have another connection (perhaps wired Ethernet?) that allows it to get to the Internet, but that doesn't help the Yun get to the Internet since your computer is not acting as a router.

Assuming your home network has the ability to reach the Internet, the solution is to hook the Yun to your home network. This can be either wired Ethernet, or wireless. If wireless, you will first need to connect to the Yun's own access point, and access the Yun's configuration pages. There, you will find the controls to set up the Yun to connect to your home network. At that point, the Yun connects to the home network, your computer connects to the home network, and you should be able to both perform an opkg operation, and upload sketches to the Yun.

Sorry for the basic questions, I am fairly new to Arduino.

Don't worry about it, EVERYBODY was a beginner at some point.

For what it's worth, I had the same symptoms that manthak observed. A few days prior I reinstalled OpenWRT on my Yun and it turned out I forgot to do this one crucial step (duh):

Edit /etc/resolv.conf and add your DNS server.

It usually is the IP address of your router, but you can also add known DNS serves from the Internet, e.g., 8.8.8.8 belonging to Google. This step alone solved all my install problems.