Ubuntu Core - 无法解析主机名

Ubuntu Core - 无法解析主机名

运行时snap find ntpserver出现以下错误:

error: cannot list snaps: Get https://api.snapcraft.io/api/v1/snaps/search?confinement=strict&fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_filesize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Clicense%2Cbase%2Csupport_url%2Ccontact%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cprivate%2Cconfinement%2Cchannel_maps_list&q=ntpserver:
dial tcp: lookup api.snapcraft.io on [::1]:53:
read udp [::1]:43577->[::1]:53: read: connection refused

此外,虽然工作正常,ping www.nasa.gov但还是失败了。ping: unknown host www.nasa.govping [NASA’s IP address]

我尝试设置ipv4.dns使用8.8.8.8网络管理器如..所示但问题仍然存在。

这在过去不是一个问题。

答案1

好的,这只是糟糕的网络配置,可以通过重新运行网络设置配置来修复:

sudo console-conf

相关内容