-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo apt update
Fails in WSL2
#6748
Comments
As an additional item,
|
PulseSecure landing zone is /dupe #5068 |
Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
@therealkenc and @msftdata Please also note, our company uses Blue Coat Unified Agent and CrowdStrike. This issue is still occuring for me when I am explicitly off Pulse Secure. I just wanted to update my issue to include that info. |
Setting the version worked for me |
if you use vpn proxy, ni needed |
Environment
Steps to reproduce
sudo apt update
which yields a
Connection failed
error forhttp://archive.ubuntu.com/ubuntu bionic InRelease
/etc/resolv.conf
aswhere the
*
s are number placeholders (I have entered the appropriate IP and url's corresponding to my company's DNS/proxy). The appropriate nameservers were determined by running the following inPowerShell
:I have also set
/etc/wsl.conf
toMTU
equal to that of our VPN interface (1500) as follows:sudo ifconfig eth0 mtu 1500
PowerShell
:New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
and then restarted my PC.
proxy.conf
in/etc/apt/apt.conf.d
with the following lines:I have tried running the
WSL2-Net-Fix.ps1
script from this gistI can successfully run
ping 8.8.8.8
andping archive.ubuntu.com
Get-NetAdapter
inPowerShell
showsvEthernet (WSL)
is up.I have disabled and re-enabled each of the
Hyper-V Virtual Switch Extension Adapter
's inDevice Manager
.Per this gist, I have tried running the following in
PowerShell
:Nothing has worked so far.
WSL logs:
Expected behavior
sudo apt update
works as expected (updatesapt
)Actual behavior
sudo apt update
failsRequests:
The text was updated successfully, but these errors were encountered: