zoukankan      html  css  js  c++  java
  • debian 执行apt-get update 无法更新的问题

    一、运行了一个debian容器,进入容器后执行apt-get update报错

    root@nginx-demo-deployment-59fbc48594-4z8h9:/# apt-get update
    Err:1 http://deb.debian.org/debian buster InRelease
      Temporary failure resolving 'deb.debian.org'
    Err:2 http://security.debian.org/debian-security buster/updates InRelease
      Temporary failure resolving 'security.debian.org'
    Err:3 http://deb.debian.org/debian buster-updates InRelease
      Temporary failure resolving 'deb.debian.org'

    二、修改源

    查看当前设置源

    oot@nginx-demo-deployment-59fbc48594-4z8h9:/# cat /etc/apt/sources.list
    # deb http://snapshot.debian.org/archive/debian/20201209T232235Z buster main
    deb http://deb.debian.org/debian buster main
    # deb http://snapshot.debian.org/archive/debian-security/20201209T232235Z buster/updates main
    deb http://security.debian.org/debian-security buster/updates main
    # deb http://snapshot.debian.org/archive/debian/20201209T232235Z buster-updates main
    deb http://deb.debian.org/debian buster-updates main
    # deb http://snapshot.debian.org/archive/debian/20200607T000000Z buster main
    deb http://deb.debian.org/debian buster main
    # deb http://snapshot.debian.org/archive/debian-security/20200607T000000Z buster/updates main
    deb http://security.debian.org/debian-security buster/updates main
    # deb http://snapshot.debian.org/archive/debian/20200607T000000Z buster-updates main
    deb http://deb.debian.org/debian buster-updates main
  • 相关阅读:
    Json对象和字符串互转
    JSNOP调用。。。
    org.hibernate.LazyInitializationException: could not initialize proxy no Session
    myeclipse生成注解实体
    jquery判断浏览器和版本
    JSTL XML标签库
    ORACLE 月份不全,补全月份的sql
    js 上下左右键控制焦点
    google gson使用
    js判断undefined类型
  • 原文地址:https://www.cnblogs.com/sky-cheng/p/14254224.html
Copyright © 2011-2022 走看看