I keep getting the "Failed to fetch . . .Could not resolve 'ftp.us.debian.org' " messages when I try to update the software. I can't ping anything either.
I have edited /etc/resolv.conf
root@beaglebone:~# cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
My ifconfig output as such:
root@beaglebone:~# ifconfig
eth0 Link encap:Ethernet HWaddr d0:ff:50:5c:fb:32
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:40
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr d6:51:37:14:ca:00
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
inet6 addr: fe80::d451:37ff:fe14:ca00/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:280 errors:0 dropped:0 overruns:0 frame:0
TX packets:237 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22597 (22.0 KiB) TX bytes:45418 (44.3 KiB)
Can anyone help me out? Yes - a rank newbie. Thanks for any advice.
Can't Update BeagleBone - 'could not resolve' issues
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- carriere4
- Posts: 12
- Joined: Fri Jan 16, 2015 3:36 pm
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Can't Update BeagleBone - 'could not resolve' issues
That shows you're using the USB network connection.
Have you configured the computer at the other end of the USB cable to share its internet connection?
Have you configured the computer at the other end of the USB cable to share its internet connection?
- carriere4
- Posts: 12
- Joined: Fri Jan 16, 2015 3:36 pm
Re: Can't Update BeagleBone - 'could not resolve' issues
Thanks for that help - I updated the computer to share the internet connection - but I am getting the same errors.
root@beaglebone:~# apt-get update
Err http://security.debian.org wheezy/updates Release.gpg
Could not resolve 'security.debian.org'
Err http://debian.beagleboard.org wheezy-bbb Release.gpg
Could not resolve 'debian.beagleboard.org'
Err http://ftp.us.debian.org wheezy Release.gpg
Could not resolve 'ftp.us.debian.org'
Err http://ftp.us.debian.org wheezy-updates Release.gpg
Could not resolve 'ftp.us.debian.org'
Reading package lists... Done
W: Failed to fetch http://ftp.us.debian.org/debian/dists/w ... elease.gpg Could not resolve 'ftp.us.debian.org'
W: Failed to fetch http://ftp.us.debian.org/debian/dists/w ... elease.gpg Could not resolve 'ftp.us.debian.org'
W: Failed to fetch http://security.debian.org/dists/wheezy ... elease.gpg Could not resolve 'security.debian.org'
W: Failed to fetch http://debian.beagleboard.org/packages/ ... elease.gpg Could not resolve 'debian.beagleboard.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@beaglebone:~# ifconfig
eth0 Link encap:Ethernet HWaddr d0:ff:50:5c:fb:32
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:40
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr 8e:ba:9d:6b:b9:45
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
inet6 addr: fe80::8cba:9dff:fe6b:b945/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:743 errors:0 dropped:0 overruns:0 frame:0
TX packets:399 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:92914 (90.7 KiB) TX bytes:76940 (75.1 KiB)
root@beaglebone:~# apt-get update
Err http://security.debian.org wheezy/updates Release.gpg
Could not resolve 'security.debian.org'
Err http://debian.beagleboard.org wheezy-bbb Release.gpg
Could not resolve 'debian.beagleboard.org'
Err http://ftp.us.debian.org wheezy Release.gpg
Could not resolve 'ftp.us.debian.org'
Err http://ftp.us.debian.org wheezy-updates Release.gpg
Could not resolve 'ftp.us.debian.org'
Reading package lists... Done
W: Failed to fetch http://ftp.us.debian.org/debian/dists/w ... elease.gpg Could not resolve 'ftp.us.debian.org'
W: Failed to fetch http://ftp.us.debian.org/debian/dists/w ... elease.gpg Could not resolve 'ftp.us.debian.org'
W: Failed to fetch http://security.debian.org/dists/wheezy ... elease.gpg Could not resolve 'security.debian.org'
W: Failed to fetch http://debian.beagleboard.org/packages/ ... elease.gpg Could not resolve 'debian.beagleboard.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@beaglebone:~# ifconfig
eth0 Link encap:Ethernet HWaddr d0:ff:50:5c:fb:32
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:40
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr 8e:ba:9d:6b:b9:45
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
inet6 addr: fe80::8cba:9dff:fe6b:b945/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:743 errors:0 dropped:0 overruns:0 frame:0
TX packets:399 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:92914 (90.7 KiB) TX bytes:76940 (75.1 KiB)
- carriere4
- Posts: 12
- Joined: Fri Jan 16, 2015 3:36 pm
Re: Can't Update BeagleBone - 'could not resolve' issues
ok - so I got it to work!!
On the Mac, go to System Preferences > Sharing > Internet Sharing > Beaglebone Black
In System Preferences > Network, make sure BBB is in the left hand side and shows “Connected”
After SSH’ing into the BBB, run “dhclient” (or "dhclient usb0” if that doesn’t work) and then try “ping google.com”.
The dhclient usb0 command worked!
Thank you for your suggestion of configuring the mac to share the internet connection. That was certainly a gating issue.
On the Mac, go to System Preferences > Sharing > Internet Sharing > Beaglebone Black
In System Preferences > Network, make sure BBB is in the left hand side and shows “Connected”
After SSH’ing into the BBB, run “dhclient” (or "dhclient usb0” if that doesn’t work) and then try “ping google.com”.
The dhclient usb0 command worked!
Thank you for your suggestion of configuring the mac to share the internet connection. That was certainly a gating issue.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Can't Update BeagleBone - 'could not resolve' issues
Glad to hear you got it working.
Today's networks can be a bit of a maze when you're trying to set up a new connection.
Today's networks can be a bit of a maze when you're trying to set up a new connection.
Please be positive and constructive with your questions and comments.