opkg update fails

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:

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

What does cat /etc/resolv.conf show?

Can you ping www.google.com ?

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

Mike

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

  1. “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."

  1. “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.

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.