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
  • 相关阅读:
    一致性 hash 算法( consistent hashing )a
    wcf 推送 与 广播
    TFS 自动同步Server 端文件的批处理命令
    PHP面向对象
    H5缓存机制浅析-移动端Web加载性能优化【干货】
    100+ 超全的web开发工具和资源
    从零开始搭建论坛(一):Web服务器与Web框架
    JQuery:选择器
    JQuery:事件
    JQuery:DOM操作
  • 原文地址:https://www.cnblogs.com/sky-cheng/p/14254224.html
Copyright © 2011-2022 走看看