merrillyeung
V2EX  ›  Ubuntu

ubuntu 16.01.4 无论如何也更新不了

  •  1
     
  •   merrillyeung · Jul 8, 2017 · 4714 views
    This topic created in 3247 days ago, the information mentioned may be changed or developed.

    奇了怪了 在虚拟机上安装的 ubuntu 16.01.4 怎么都更新不了,选个 choose for best server 也是 please check your internet connection....

    浏览器可以正常浏览网页

    sudo apt-get update 提示如下

    Err:1 http://ftp.unina.it/pub/linux/distributions/ubuntu xenial InRelease Could not connect to 172.168.1.104:8888 (172.168.1.104). - connect (111: Connection refused) Reading package lists... Done
    W: Failed to fetch http://ftp.unina.it/pub/linux/distributions/ubuntu/dists/xenial/InRelease Could not connect to 172.168.1.104:8888 (172.168.1.104). - connect (111: Connection refused) W: Some index files failed to download. They have been ignored, or old ones used instead.

    21 replies    2017-07-11 19:05:17 +08:00
    kmahyyg
        1
    kmahyyg  
       Jul 8, 2017 via Android
    换 apt 源
    expy
        2
    expy  
       Jul 8, 2017
    /etc/apt/sources.list 里填个国内的源,比如阿里云。版本号应该是 16.04.1 吧。
    7654
        3
    7654  
       Jul 8, 2017
    看到题目,下意识的登录各机器看了看,16.04.2 又更新了。。
    换源即可
    merrillyeung
        4
    merrillyeung  
    OP
       Jul 8, 2017
    @kmahyyg 换源也不行。。。
    merrillyeung
        5
    merrillyeung  
    OP
       Jul 8, 2017
    @7654 换源并不行。。
    merrillyeung
        6
    merrillyeung  
    OP
       Jul 8, 2017
    换源的话也会提示 fail to download repository formation........... please check your internet connection

    关键是 internet connection 完全正常啊
    leakless
        7
    leakless  
       Jul 8, 2017
    你这目测是请求被劫持的啊。。
    都 172.16 了。。。
    billlee
        8
    billlee  
       Jul 8, 2017
    典型的 HTTP 劫持,换 https 源
    kamen
        9
    kamen  
       Jul 8, 2017 via Android
    清华源支持 https
    bukip
        10
    bukip  
       Jul 8, 2017
    ubuntu 有 16.01.4 ?
    merrillyeung
        11
    merrillyeung  
    OP
       Jul 8, 2017
    @bukip 16.04.1.。。。
    Showfom
        12
    Showfom  
    PRO
       Jul 8, 2017
    @leakless 大哥 172.168 正常 IP 啊
    merrillyeung
        13
    merrillyeung  
    OP
       Jul 8, 2017
    @kamen 换成清华的源后

    sudo apt-get update
    Err:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial InRelease
    Failed to connect to 172.168.1.104 port 8888: Connection refused
    Err:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates InRelease
    Failed to connect to 172.168.1.104 port 8888: Connection refused
    Err:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports InRelease
    Failed to connect to 172.168.1.104 port 8888: Connection refused


    这是咋回事。。。。。怎么都去链接 172.168.1.104 port 8888 了呢
    merrillyeung
        14
    merrillyeung  
    OP
       Jul 8, 2017
    @Showfom 这是咋回事呢 为啥都连接到 172.168.1.104 port 8888 了呢
    merrillyeung
        15
    merrillyeung  
    OP
       Jul 8, 2017
    @billlee 换成 https 源后依然 Failed to connect to 172.168.1.104 port 8888: Connection refused。。。。。
    chromee
        16
    chromee  
       Jul 8, 2017 via Android
    你本地域名解析有问题 检查一下是 dns 还是什么软件造成的
    XiaoxiaoPu
        17
    XiaoxiaoPu  
       Jul 8, 2017
    @merrillyeung 端口都不是正常端口,那应该不是 DNS 劫持,检查下你的代理设置吧
    zsj950618
        18
    zsj950618  
       Jul 8, 2017
    是你的 apt 被配置了代理,去 /etc/apt/ 下看下配置,把代理删掉就好了
    merrillyeung
        19
    merrillyeung  
    OP
       Jul 8, 2017
    @XiaoxiaoPu 代理处一致显示 NONE,居然要按一下 apply system wide 才行 谢啦
    qiyuey
        20
    qiyuey  
       Jul 8, 2017
    这个是代理吧
    leakless
        21
    leakless  
       Jul 11, 2017 via Android
    @Showfom 我凑 撸多了眼花看错了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2710 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 81ms · UTC 14:56 · PVG 22:56 · LAX 07:56 · JFK 10:56
    ♥ Do have faith in what you're doing.