apt-get update 无法连接到

apt-get update 无法连接到

您好,尝试在 Beaglebone Black 板上更新 Ubuntu 并出现错误:我使用了 BBB-eMMC-flasher-ubuntu-16.04.2-console-armhf-2017-06-08-2gb 安装成功。网络正常。sudo apt-get update 错误:

ubuntu@arm:~$ sudo apt-get update
Err:1 http://ports.ubuntu.com/ubu... xenial InRelease
Could not connect to ports.ubuntu.com:80 (172.1.8.1), connection timed out
Err:2 .......
Reading package lists... Done
W: Failed to fetch http://ports.ubuntu.com/ubu... Could not connect to ports.ubuntu.com:80 (172.1.8.1), connection timed out
W: Failed to fetch ..., connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.

链接中存在更多错误,其中...。我不得不删除链接,否则无法发布。ubuntu@arm:~$ 如何解决?

答案1

要修复我的 BeagleBone 上的该问题:

改变etc/dnsmasq.d/SoftAp0

dhcp-option-force=option:dns-server,192.168.8.1

到你的 DNS,在我的情况下是 192.168.1.1

dhcp-option-force=option:dns-server,192.168.1.1

并删除

address=/#/172.1.8.1

然后

sudo service dnsmasq restart

相关内容