美文网首页
snap 代理 apt代理

snap 代理 apt代理

作者: 霡霂976447044 | 来源:发表于2019-10-25 21:18 被阅读0次

    snap支持设置http代理,只需要将socket5转为http代理即可。使用polipo

    sudo apt install snapd polipo
    

    配置polipo

    ~ cat /etc/polipo/config 
    # This file only needs to list configuration variables that deviate
    # from the default values.  See /usr/share/doc/polipo/examples/config.sample
    # and "polipo -v" for variables you can tweak and further information.
    
    logSyslog = true
    logFile = /var/log/polipo/polipo.log
    socksParentProxy = "localhost:1080"
    socksProxyType = socks5 
    

    重启polipo

    sudo /etc/init.d/polipo restart
    

    设置snap代理

    sudo snap set system proxy.http=http://localhost:8123
    sudo snap set system proxy.https=http://localhost:8123
    

    apt代理

    sudo apt-get -o Acquire::http::proxy="http://127.0.0.1:8000/" update
    

    https://daemon369.github.io/network/2014/06/05/use-proxy-for-apt-get

    相关文章

      网友评论

          本文标题:snap 代理 apt代理

          本文链接:https://www.haomeiwen.com/subject/uemevctx.html