opkg update fails

85 views
Skip to first unread message

mattoliver...@gmail.com

unread,
Apr 23, 2014, 6:13:18 PM4/23/14
to beagl...@googlegroups.com
Hi there everyone

Linux neophyte here. I'm copying this over here from another forum where I'm trying to get some help.

I recently purchased a Beaglebone Black Rev B. 

I've been having trouble with opkg update so that I can install Python and begin working with the GPIO pins.

I have correctly flashed the board with a fresh distribution of Angstrom twice now, to no avail.

I have looked around online and tried the various fixes suggested, to no avail.

The board is connected properly over DHCP.

Initially, I was a bit concerned because I was unable to set the NTP server on the board:

root@beaglebone:~# cd /home/root
root@beaglebone:~# date 
Sat Jan 1 00:22:56 UTC 2000
root@beaglebone:~# mv /etc/localtime /etc/localtime.old
root@beaglebone:~# cd /usr/share/zoneinfo
root@beaglebone:/usr/share/zoneinfo# ls
Africa CST6CDT Europe GMT0 MST7MDT Pacific Universal zone.tab
America EET GB Greenwich NZ ROC W-SU
Asia EST GMT HST NZ-CHAT ROK WET
Australia EST5EDT GMT+0 MET PRC UCT Zulu
CET Etc GMT-0 MST PST8PDT UTC iso3166.tab
root@beaglebone:/usr/share/zoneinfo# cd America
root@beaglebone:/usr/share/zoneinfo/America# ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
root@beaglebone:/usr/share/zoneinfo/America# nano /etc/default/ntpdate
root@beaglebone:/usr/share/zoneinfo/America# ntpdate-sync
root@beaglebone:/usr/share/zoneinfo/America# date
Fri Dec 31 18:25:12 CST 1999
root@beaglebone:/usr/share/zoneinfo/America# 


So that was weird. Then when I tried to run opkg update I get the following result:


root@beaglebone:~# opkg update
Downloading http://feeds.angstrom-distribution.org/ ... ackages.gz.
wget: bad address 'feeds.angstrom-distribution.org'
Downloading http://feeds.angstrom-distribution.org/ ... ackages.gz.
wget: bad address 'feeds.angstrom-distribution.org'
Downloading http://feeds.angstrom-distribution.org/ ... ackages.gz.
wget: bad address 'feeds.angstrom-distribution.org'
Downloading http://feeds.angstrom-distribution.org/ ... ackages.gz.
wget: bad address 'feeds.angstrom-distribution.org'
Downloading http://feeds.angstrom-distribution.org/ ... ackages.gz.

wget: bad address 'feeds.angstrom-distribution.org'
Downloading http://feeds.angstrom-distribution.org/ ... ackages.gz.
wget: bad address 'feeds.angstrom-distribution.org'
Downloading http://feeds.angstrom-distribution.org/ ... ackages.gz.
wget: bad address 'feeds.angstrom-distribution.org'
Collected errors:
* opkg_download: Failed to download http://feeds.angstrom-distribution.org/ ... ackages.gz, wget returned 1.
* opkg_download: Failed to download http://feeds.angstrom-distribution.org/ ... ackages.gz, wget returned 1.
* opkg_download: Failed to download http://feeds.angstrom-distribution.org/ ... ackages.gz, wget returned 1.
* opkg_download: Failed to download http://feeds.angstrom-distribution.org/ ... ackages.gz, wget returned 1.
* opkg_download: Failed to download http://feeds.angstrom-distribution.org/ ... ackages.gz, wget returned 1.
* opkg_download: Failed to download http://feeds.angstrom-distribution.org/ ... ackages.gz, wget returned 1.
* opkg_download: Failed to download http://feeds.angstrom-distribution.org/ ... ackages.gz, wget returned 1.


Please let me know what I'm doing wrong. Thanks.

Mike

unread,
Apr 23, 2014, 9:58:27 PM4/23/14
to beagl...@googlegroups.com
On 04/23/2014 06:13 PM, mattoliver...@gmail.com wrote:
Hi there everyone

Linux neophyte here. I'm copying this over here from another forum where I'm trying to get some help.

I recently purchased a Beaglebone Black Rev B. 

I've been having trouble with opkg update so that I can install Python and begin working with the GPIO pins.

I have correctly flashed the board with a fresh distribution of Angstrom twice now, to no avail.

I have looked around online and tried the various fixes suggested, to no avail.

The board is connected properly over DHCP.

What does cat /etc/resolv.conf show?

Can you ping www.google.com ?

Are the addresses in ntp.conf IP's or hostnames?

Mike

Matt Oliver

unread,
Apr 24, 2014, 11:30:17 AM4/24/14
to beagl...@googlegroups.com
Thanks for the reply Mike. In order, here's what I've found:

1. "What does cat /etc/resolv.conf show?"

# Generated by Connection Manager
nameserver 127.0.0.1


2. "Can you ping www.google.com ?"

I opened a Chromium browser on the BBB (using a monitor connected by HDMI, and a Logitech USB wireless mouse, and keyboard with USB) and got a "This webpage is not available because the server at goole.com can't be found, because the DNS lookup failed."

3. "Are the addresses in ntp.conf IP's or hostnames?"

When I try to execute cat /etc/ntp.conf here are my results:

root@beaglebone:~# cat /etc/ntp.conf
cat: /etc/ntp.conf: No such file or directory

Additionally, I attempted to run a dig command per the advice I received on another forum and here is the result:

root@beaglebone:~# dig feeds.angstrom-distribution.org
-sh: dig: command not found

Thanks for any ideas or advice you have.





--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/bsJFlIYH9VU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matt Oliver

unread,
Apr 24, 2014, 12:14:08 PM4/24/14
to beagl...@googlegroups.com
UPDATE:

I was doing all of this on the BBB connected to a Mac over USB. 

Now I have plugged my BBB directly into my home's Internet router using Ethernet, and ntpdate-sync and opkg update are working correctly. I'm able to ping 8.8.8.8, and all appears to be working properly.

So I guess if the BBB needs access to the network, it must do so over Ethernet only?

When I use USB to connect and ssh into the BBB, I'm able to browse to the BBB and it says that it's connected, but the above DNS problems result.


Reply all
Reply to author
Forward
0 new messages