zoukankan      html  css  js  c++  java
  • Ubuntu Err:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease Could not resolve 'us.archive.ubuntu.com' 错误

    Ubuntu 更新 apt-get update 的时候 出现

    Err:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
    Could not resolve 'us.archive.ubuntu.com'

    这个错误的时候 修改 resolv.conf 文件中的 nameserver 中的值。

    sudo vim /etc/resolv.conf

    将 nameserver 中的值替换成

    nameserver 8.8.8.8

    保存文件后。重启network 服务

    /etc/init.d/networking restart

    然后执行 sudo apt-get update 就不会报错了。

    nameserver 8.8.8.8 ,修改完后所有进程都可以正常运行而不会出错。

  • 相关阅读:
    python常用库
    python多线程
    python内存泄漏
    用python实现js语言里的特性
    nginx + uwsgi
    mysql语句
    urllib模块
    提取数据xpath,re,css
    selenium模块
    脱壳
  • 原文地址:https://www.cnblogs.com/wjm956/p/9848693.html
Copyright © 2011-2022 走看看