执行opkg update命令时出现如下错误:

openwrt虚拟机执行opkg update更新软件包失败

 

 然后我复制源地址到百度是可以正常打开的:

openwrt虚拟机执行opkg update更新软件包失败

 

我有ping了下百度域名:ping www.baidu,com后显示ping : sendto : Network is unreachable。我又ping了百度的ip,也是同样的结果。

然后我执行route发现虚拟机没有设置默认网关,设置默认网关命令如下:

route add default gw 192.168.52.2

设置网关后,更新软件包成功。

如果能ping通ip.却不能ping通域名,就要看DNS地址设置是否正确。

 

 

 

 

 

 

相关文章:

  • 2022-12-23
  • 2021-04-12
  • 2021-08-21
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2021-12-16
  • 2021-05-07
  • 2022-12-23
  • 2021-04-27
  • 2021-06-10
相关资源
相似解决方案