ubuntu 16.01.4 无论如何也更新不了 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
merrillyeung
V2EX    Ubuntu

ubuntu 16.01.4 无论如何也更新不了

  •  1
     
  •   merrillyeung 2017-07-08 16:48:23 +08:00 4464 次点击
    这是一个创建于 3085 天前的主题,其中的信息可能已经有所发展或是发生改变。

    奇了怪了 在虚拟机上安装的 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 条回复    2017-07-11 19:05:17 +08:00
    kmahyyg
        1
    kmahyyg  
       2017-07-08 16:52:26 +08:00 via Android
    换 apt 源
    expy
        2
    expy  
       2017-07-08 16:57:56 +08:00
    /etc/apt/sources.list 里填个国内的源,比如阿里云。版本号应该是 16.04.1 吧。
    7654
        3
    7654  
       2017-07-08 17:00:41 +08:00
    看到题目,下意识的登录各机器看了看,16.04.2 又更新了。。
    换源即可
    merrillyeung
        4
    merrillyeung  
    OP
       2017-07-08 17:07:28 +08:00
    @kmahyyg 换源也不行。。。
    merrillyeung
        5
    merrillyeung  
    OP
       2017-07-08 17:07:45 +08:00
    @7654 换源并不行。。
    merrillyeung
        6
    merrillyeung  
    OP
       2017-07-08 17:10:22 +08:00
    换源的话也会提示 fail to download repository formation........... please check your internet connection

    关键是 internet connection 完全正常啊
    leakless
        7
    leakless  
       2017-07-08 17:31:31 +08:00
    你这目测是请求被劫持的啊。。
    都 172.16 了。。。
    billlee
        8
    billlee  
       2017-07-08 17:41:25 +08:00
    典型的 HTTP 劫持,换 https 源
    kamen
        9
    kamen  
       2017-07-08 17:48:07 +08:00 via Android
    清华源支持 https
    bukip
        10
    bukip  
       2017-07-08 18:26:52 +08:00
    ubuntu 有 16.01.4 ?
    merrillyeung
        11
    merrillyeung  
    OP
       2017-07-08 20:19:26 +08:00
    @bukip 16.04.1.。。。
    Showfom
        12
    Showfom  
    PRO
       2017-07-08 20:44:53 +08:00
    @leakless 大哥 172.168 正常 IP 啊
    merrillyeung
        13
    merrillyeung  
    OP
       2017-07-08 21:05:49 +08:00
    @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
       2017-07-08 21:07:30 +08:00
    @Showfom 这是咋回事呢 为啥都连接到 172.168.1.104 port 8888 了呢
    merrillyeung
        15
    merrillyeung  
    OP
       2017-07-08 21:08:13 +08:00
    @billlee 换成 https 源后依然 Failed to connect to 172.168.1.104 port 8888: Connection refused。。。。。
    chromee
        16
    chromee  
       2017-07-08 21:11:38 +08:00 via Android
    你本地域名解析有问题 检查一下是 dns 还是什么软件造成的
    XiaoxiaoPu
        17
    XiaoxiaoPu  
       2017-07-08 21:14:28 +08:00
    @merrillyeung 端口都不是正常端口,那应该不是 DNS 劫持,检查下你的代理设置吧
    zsj950618
        18
    zsj950618  
       2017-07-08 21:23:42 +08:00
    是你的 apt 被配置了代理,去 /etc/apt/ 下看下配置,把代理删掉就好了
    merrillyeung
        19
    merrillyeung  
    OP
       2017-07-08 21:30:16 +08:00
    @XiaoxiaoPu 代理处一致显示 NONE,居然要按一下 apply system wide 才行 谢啦
    qiyuey
        20
    qiyuey  
       2017-07-08 21:45:01 +08:00
    这个是代理吧
    leakless
        21
    leakless  
       2017-07-11 19:05:17 +08:00 via Android
    @Showfom 我凑 撸多了眼花看错了
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     892 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 43ms UTC 21:16 PVG 05:16 LAX 13:16 JFK 16:16
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86