V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
升级到 Windows 11
Pan940425
V2EX  ›  Windows

[求助] win10 的 Ubuntu18.04 子系统中执行 apt update 报错 Temporary failure resolving

  •  
  •   Pan940425 · 2018-07-15 11:47:54 +08:00 · 8496 次点击
    这是一个创建于 1484 天前的主题,其中的信息可能已经有所发展或是发生改变。

    源试了试 aliyun 的和 163 的,在执行 apt update 时都报错

    Err:1 http://mirrors.163.com/ubuntu bionic InRelease
      Temporary failure resolving 'mirrors.163.com'
    Err:2 http://mirrors.aliyun.com/ubuntu bionic InRelease
      Temporary failure resolving 'mirrors.aliyun.com'
    

    检查了一下,dns 是没有问题的,直接 pingmirrors.aliyun.commirrors.163.com是可以 ping 通的

    我的 sources.list 文件中的内容

    deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
    
    deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
    
    4 条回复    2018-07-16 21:23:01 +08:00
    imn1
        1
    imn1  
       2018-07-15 13:00:43 +08:00
    在 win10 ping 还是 WSL 里面 ping ?
    Pan940425
        2
    Pan940425  
    OP
       2018-07-15 13:16:27 +08:00
    @imn1 都可以 ping 通的
    mmdsun
        3
    mmdsun  
       2018-07-16 21:14:03 +08:00 via Android
    我今天上午更新的。挂的 ss
    Pan940425
        4
    Pan940425  
    OP
       2018-07-16 21:23:01 +08:00
    @mmdsun 最后发现 我换了 16.04 就能更新得动了。。。
    关于   ·   帮助文档   ·   API   ·   FAQ   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   1124 人在线   最高记录 5497   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 18:50 · PVG 02:50 · LAX 11:50 · JFK 14:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.