[求助] clash for windows 开启 tun 模式后无法执行 apt update - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
jlz52z
V2EX    问与答

[求助] clash for windows 开启 tun 模式后无法执行 apt update

  •  
  •   jlz52z 2024-03-10 16:37:52 +08:00 1540 次点击
    这是一个创建于 587 天前的主题,其中的信息可能已经有所发展或是发生改变。

    当我执行指令sudo apt update时,终端卡在这不动

    0% [Waiting for headers] [Waiting for headers] 

    当我关闭 tun 模式,并且打开 clash 的系统代理时,指令被顺利地执行

    同样的问题也出现在 conda 指令中,当打开 tun 模式执行指令 conda install matplotlib 时,出现如下错误

    Channels: - defaults Platform: linux-64 Collecting package metadata (repodata.json): \ Retrying (Retry(total=2, cOnnect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=9.15)")': /pkgs/main/noarch/repodata.json.zst Retrying (Retry(total=2, cOnnect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=9.15)")': /pkgs/main/linux-64/repodata.json.zst failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/linux-64/repodata.json> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. If your current network has https://repo.anaconda.com blocked, please file a support request with your network engineering team. 'https//repo.anaconda.com/pkgs/main/linux-64' 

    同样,关闭 tun ,开启系统代理时,指令也被很好地执行。

    repo.anaconda.comarchive.ubuntu.com/ubuntu 都能被 ping 通且延迟不到 1ms ,在浏览器里面也能直接访问这两个网址

    clash 设置页面截图如下

    tun 模式配置如下

    dns: enable: true ipv6: true enhanced-mode: fake-ip nameserver: - 114.114.114.114 - 223.5.5.5 - 8.8.8.8 fallback: [] nameserver-policy: {} fake-ip-filter: - +.stun.*.* - +.stun.*.*.* - +.stun.*.*.*.* - +.stun.*.*.*.*.* - "*.n.n.srv.nintendo.net" - +.stun.playstation.net - xbox.*.*.microsoft.com - "*.*.xboxlive.com" - "*.msftncsi.com" - "*.msftconnecttest.com" - WORKGROUP tun: enable: true stack: system auto-route: true auto-detect-interface: true dns-hijack: - any:53 - 198.18.0.2:53 

    clash 配置文件内容如下 系统版本为 windows11 22H2

    1 条回复    2024-03-10 18:24:15 +08:00
    totoro625
        1
    totoro625  
       2024-03-10 18:24:15 +08:00 via iPhone
    不用 fakeip 试试
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2556 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 31ms UTC 02:29 PVG 10:29 LAX 19:29 JFK 22:29
    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