WSL: apt-get update often hangs
This is quite unfortunately not deterministic. If I run apt-get update or apt update 10 times in a row, 9 or 10 of the times it will hang at: 12% [Working]
strace gives:
select(7, [5 6], [], NULL, {0, 500000}) = 0 (Timeout)
gettimeofday({1464973191, 648055}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
12% [Working]) = 23[33m\r12% [Working]", 23
(repeatedly, forever).
After searching all of the issues in this project, I can’t find one that matches this. Is this something others have encountered?
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Reactions: 1
- Comments: 23 (10 by maintainers)
The most recent Windows Insider fast ring build has a fix that should resolve the apt-get hangs you were seeing. Could you please try out build 14376 or later and reopen if you’re still seeing issues?
i know its late but i solved it by whitelisting or deactivating my antivirus i use which is Avast premium and it works now.
@zerocool4u2 - Thanks. There were few socket related bugs that were fixed in 14352, which I could definitely see playing a role here. If you or anyone else can repro this on 14352(+), then we would definitely be interested hearing about it and getting the logs.