You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04执行ping与apt-get update时出现域名解析临时失败问题求助

Ubuntu 22.04执行ping与apt-get update时出现域名解析临时失败问题求助

我在Ubuntu 22.04系统的终端中(通过有线以太网连接)遇到了域名解析故障,具体情况如下:

  • 执行以下两个命令时均报错:
    • ping google.com
    • apt-get update
  • 对应的错误信息分别是:

    ping: google.com: Temporary failure in name resolution
    Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease Temporary failure resolving 'archive.ubuntu.com'

原本网络是正常的,但在执行apt-get install ntp操作后就出现了这个问题。安装ntp的过程中,我看到一个紫色屏幕显示了系统列表,没多想就直接按了回车确认。

我尝试过手动在/etc/resolv.conf中添加nameserver 8.8.8.8和nameserver 8.8.4.4,但问题依然没有解决。另外需要说明的是,这台服务器上还运行着Kubernetes主节点。

希望能得到大家的帮助,非常感谢!

备注:内容来源于stack exchange,提问作者박성일

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 16:14:50