Community
cancel
Showing results for 
Search instead for 
Did you mean: 
DDixo2
New Contributor I
1,216 Views

OPKG update

When trying to update my opkg package using putty I get the following.

root@edison:~# echo "src maa-upm http://iotdk.intel.com/repos/1.1/intergalactic"> /etc/opkg/intel-iotdk.conf

root@edison:~# opkg update

Downloading http://iotdk.intel.com/repos/1.1/intergalactic/Packages.

Downloading http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586//Packages.

Updated list of available packages in /var/lib/opkg/iotkit.

Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/all/Packages.

Updated list of available packages in /var/lib/opkg/iotdk-all.

Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/core2-32/Packages.

Updated list of available packages in /var/lib/opkg/iotdk-core2-32.

Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/edison/Packages.

Updated list of available packages in /var/lib/opkg/iotdk-edison.

Collected errors:

* opkg_download: Failed to download http://iotdk.intel.com/repos/1.1/intergalactic/Packages, wget returned 8.

root@edison:~#

I am guessing the address that the echo command sends has been changed but not sure what to change it too.

9 Replies
idata
Community Manager
171 Views

Hi retrorocket1,

 

 

Thank you for contacting us.

 

 

The first thing I'd like to confirm is that your Edison has Wi-Fi connectivity. Have you already gone through the Wi-Fi configuration of configure_edison –wifi?

 

You can check you have Wi-Fi by doing a simple ping to google.com.

 

After that, go on and try using the commands:

 

echo "src mraa-upm http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586" > /etc/opkg/mraa-upm.conf opkg update

 

 

This process can take a few minutes.

 

 

Wait for the process to finish and let us know your results.

 

 

-Sergio A

 

DDixo2
New Contributor I
171 Views

I can't remember if i remembered to do it in this particular run, I keep having to reflash cause of random errors, but I do notice the filename is different in the command you gave so I will check that out and get back to you.

DDixo2
New Contributor I
171 Views

I tried that and got, "No such file or directory"

root@edison:~# "src mraa-upm http://iotdk.intel.com/repos/3.5/intergalactic/opkg/i586 http://iotdk.intel.com/repos/3.5/intergalactic/opkg/i586" > /etc/opkg/mraa-upm.conf

-sh: src mraa-upm http://iotdk.intel.com/repos/3.5/intergalactic/opkg/i586: http://iotdk.intel.com/repos/3.5/intergalactic/opkg/i586: No such file or directory

edit: whoops missed echo just a sec

edit2:

Same issue below

root@edison:~# echo "src mraa-upm http://iotdk.intel.com/repos/3.5/intergalactic/opkg/i586" > /etc/opkg/mraa-upm.conf

root@edison:~# opkg update

Downloading http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586//Packages.

Updated list of available packages in /var/lib/opkg/iotkit.

Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/all/Packages.

Updated list of available packages in /var/lib/opkg/iotdk-all.

Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/core2-32/Packages.

Updated list of available packages in /var/lib/opkg/iotdk-core2-32.

Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/edison/Packages.

Updated list of available packages in /var/lib/opkg/iotdk-edison.

Downloading http://iotdk.intel.com/repos/3.5/intergalactic/opkg/i586/Packages.

Collected errors:

* opkg_download: Failed to download http://iotdk.intel.com/repos/3.5/intergalactic/opkg/i586/Packages, wget returned 8.

root@edison:~#

Now I don't know if it matters but I am not able to go to the ip adress of the edison via browser. The reason I am not sure it matters is because all of these commands are over wifi so It definitely has a connection.

idata
Community Manager
171 Views

Hi retrorocket1,

 

 

Thank you for your reply.

 

 

I don't think that the opkg update problem is related to not being able to go to the IP address via the browser. There's an issue with some of the latest images that don't allow users to go to the IP address using a web browser. We'd still like to confirm that you have a stable internet connection and know what image you're using.

 

 

Please, let us know the output of these commands:

 

ping -c 10 google.com cat /etc/version

 

 

We'll be waiting for your response.

 

 

Regards,

 

-Sergio A

 

DDixo2
New Contributor I
171 Views

root@edison:~# ping -c 10 google.com

PING google.com (216.58.217.110): 56 data bytes

64 bytes from 216.58.217.110: seq=0 ttl=53 time=33.206 ms

64 bytes from 216.58.217.110: seq=1 ttl=53 time=38.994 ms

64 bytes from 216.58.217.110: seq=2 ttl=53 time=47.802 ms

64 bytes from 216.58.217.110: seq=3 ttl=53 time=42.071 ms

64 bytes from 216.58.217.110: seq=4 ttl=53 time=51.575 ms

64 bytes from 216.58.217.110: seq=5 ttl=53 time=45.911 ms

64 bytes from 216.58.217.110: seq=6 ttl=53 time=56.368 ms

64 bytes from 216.58.217.110: seq=7 ttl=53 time=50.496 ms

64 bytes from 216.58.217.110: seq=8 ttl=53 time=54.391 ms

64 bytes from 216.58.217.110: seq=9 ttl=53 time=49.021 ms

--- google.com ping statistics ---

10 packets transmitted, 10 packets received, 0% packet loss

round-trip min/avg/max = 33.206/46.983/56.368 ms

root@edison:~# cat /etc/version

201606061707

root@edison:~#

idata
Community Manager
171 Views

With this information we can confirm that the issue is not related to an older image or to Wi-Fi connection.

 

However, it's strange that you continue to receive that error. Have you made any configurations to any of the files inside /etc/opkg, such as /etc/opkg/base-feeds.conf or /etc/opkg/iotkit.conf? Please let us know the output of these, as well as of /etc/opkg/intel-iotdk.conf.

 

 

We'll be waiting for your response.

 

 

-Sergio A

 

idata
Community Manager
171 Views

Hi retrorocket1,

 

 

Do you still need assistance with this case?

 

 

-Sergio A

 

 

DDixo2
New Contributor I
171 Views

I am actually good now, I found the answer at http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html Edison Package Repo Configuration Instructions and after following its instructions opkg works, I appreciate all the help

idata
Community Manager
171 Views

Thanks for sharing the solution that worked for you with the community. Feel free to contact us again if help is needed.

 

 

-Sergio A

 

Reply