helloiac
V2EX  ›  问与答

Ubuntu 用 ppa 软件源的连接问题

  •  
  •   helloiac · Oct 7, 2018 · 1574 views
    This topic created in 2807 days ago, the information mentioned may be changed or developed.

    比如 upgrade 时,有 ppa.launchpad.net 的源,速度总是一点点掉下来,直到没了速度,然后 ctrl-c 掉,再运行 upgrade,又能下一点,要反复多次才能把包下全。

    为什么会掉速度,为什么不是直接一开始就没速度?有啥好办法没?

    Hardrain
        1
    Hardrain  
       Oct 7, 2018   ❤️ 1
    这个源很少有镜像,服务器似乎在英国 canonical 公司,连不上 /速度很慢八成是你国的某长城在搞鬼。
    至于速度,apt 是按照平均速率来算的,所以会呈现"速度一点点掉下来,直到没了速度"的现象。

    解决方案是让 shell 走 proxy
    e.g.
    http_proxy=socks5://127.0.0.1:1080
    https_proxy=socks5://127.0.0.1:1080
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2887 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:03 · PVG 17:03 · LAX 02:03 · JFK 05:03
    ♥ Do have faith in what you're doing.