Comments (9)
The same. From today. Yesterday was everything ok.
domain.com points to 127.0.0.1 in hosts.
When access from another WSL2 instance - ok.
From Windows - timeout.
from wsl.
Same here. It happened some time this week I think.
Switching to NAT mode fixes it, but that also makes the outbound internet connection is too unstable for me to use (it usually drops within a minute).
Here's some things I found in similar networking issues that had no effect:
hostAddressLoopback
true/falsefirewall=false
and disabling hyper-v firewall entirely- windows network reset
- reinstalling virtual machine platform optional feature
- upgrading wsl to 2.0.14.0 (I can't remember what I was running initially, but I think it was another recent 2.0.x version)
from wsl.
I exported my working version of ubuntu 20.04 and moved it over to the other computer. Removed the one that wasn't working, then imported. I got everything up and working. Then, I performed "apt update && apt upgrade"
The upgrade broke it again. So, something in the upgrading of Ubuntu is breaking WSL.
from wsl.
The best workaround I've found for web dev is to run a browser inside wsl2 instead.
from wsl.
@simon-weber Thanks for the NAT solution. I've been working on this for days trying to figure out why it suddenly stopped working. I have a git push on the 24th. On the 27th, Windows updated to version 23H2.
Edit: I have another Windows 11 computer that is working. I performed all the current Window updates and WSL is still working correctly. Meaning, WSL is mirrored and I can reach domain names. So it's not the update.
I took a look at the differences between the two and it appears the non-working is coming up short when creating the network connections. Not sure why or how to fix it.
WSL Mirrored Working: https://gist.github.com/rbruhn/348eaadddedf415472ab6aaf0823a572
WSL Mirrored Not Working: https://gist.github.com/rbruhn/c05f72cf9fdbe000852a080bf725ff14
from wsl.
I'm not sure if I'm using mirrored mode but I have nothing in my .wslconfig
.
I'd love for localhost
to work. Currently, I have to point it to 0.0.0.0
which is inconvenient. It took an insane amount of my time with redis
service in docker. Even there I had to change REDIS_HOST=localhost
to REDIS_HOST=0.0.0.0
which is annoying..
Edit: Even 0.0.0.0
didn't work. I had to use my ip to get redis working.
Another Edit: Even my ip didn't work. I gues my error was due to this which I feel is unrelated but idk.
Please make this simple. Its annoying to use Windows because of these random issues.
from wsl.
I exported my working version of ubuntu 20.04 and moved it over to the other computer. Removed the one that wasn't working, then imported. I got everything up and working. Then, I performed "apt update && apt upgrade"
The upgrade broke it again. So, something in the upgrading of Ubuntu is breaking WSL.
True. I did an apt upgrade before.
from wsl.
I filter out updates history not related to Ubuntu. The list of packages that may cause the issue:
- netplan.io:amd64 (0.104-0ubuntu2~20.04.2, 0.104-0ubuntu2~20.04.4)
- cloud-init:amd64 (23.3.1-0ubuntu1~20.04.1, 23.4.3-0ubuntu0~20.04.1)
- systemd:amd64 (245.4-4ubuntu3.22, 245.4-4ubuntu3.23)
- systemd-timesyncd:amd64 (245.4-4ubuntu3.22, 245.4-4ubuntu3.23)
- libsystemd0:amd64 (245.4-4ubuntu3.22, 245.4-4ubuntu3.23)
- libpam-systemd:amd64 (245.4-4ubuntu3.22, 245.4-4ubuntu3.23)
- libnss-systemd:amd64 (245.4-4ubuntu3.22, 245.4-4ubuntu3.23)
- systemd-sysv:amd64 (245.4-4ubuntu3.22, 245.4-4ubuntu3.23)
UPD.
Downgrade all these packages but didn't achieve nothing.
apparmor/focal-updates 2.13.3-7ubuntu5.3 amd64 [upgradable from: 2.13.3-7ubuntu5]
cloud-init/focal-updates 23.4.4-0ubuntu0~20.04.1 all [upgradable from: 23.1.2-0ubuntu0~20.04.2]
libapparmor1/focal-updates 2.13.3-7ubuntu5.3 amd64 [upgradable from: 2.13.3-7ubuntu5]
libnetplan0/focal-updates 0.104-0ubuntu2~20.04.4 amd64 [upgradable from: 0.99-0ubuntu1]
libnss-systemd/focal-updates 245.4-4ubuntu3.23 amd64 [upgradable from: 245.4-4ubuntu3]
libpam-systemd/focal-updates 245.4-4ubuntu3.23 amd64 [upgradable from: 245.4-4ubuntu3]
libsystemd0/focal-updates 245.4-4ubuntu3.23 amd64 [upgradable from: 245.4-4ubuntu3]
netplan.io/focal-updates 0.104-0ubuntu2~20.04.4 amd64 [upgradable from: 0.99-0ubuntu1]
systemd-sysv/focal-updates 245.4-4ubuntu3.23 amd64 [upgradable from: 245.4-4ubuntu3]
systemd-timesyncd/focal-updates 245.4-4ubuntu3.23 amd64 [upgradable from: 245.4-4ubuntu3]
systemd/focal-updates 245.4-4ubuntu3.23 amd64 [upgradable from: 245.4-4ubuntu3]
from wsl.
@Slamik These are the packages that show in mine before upgrade. When I have time, I might go through them one by one.
bind9-dnsutils/focal-updates,focal-security 1:9.16.48-0ubuntu0.20.04.1 amd64 [upgradable from: 1:9.16.1-0ubuntu2.16]
bind9-host/focal-updates,focal-security 1:9.16.48-0ubuntu0.20.04.1 amd64 [upgradable from: 1:9.16.1-0ubuntu2.16]
bind9-libs/focal-updates,focal-security 1:9.16.48-0ubuntu0.20.04.1 amd64 [upgradable from: 1:9.16.1-0ubuntu2.16]
binutils-common/focal-updates,focal-security 2.34-6ubuntu1.9 amd64 [upgradable from: 2.34-6ubuntu1.8]
binutils-x86-64-linux-gnu/focal-updates,focal-security 2.34-6ubuntu1.9 amd64 [upgradable from: 2.34-6ubuntu1.8]
binutils/focal-updates,focal-security 2.34-6ubuntu1.9 amd64 [upgradable from: 2.34-6ubuntu1.8]
cloud-init/focal-updates 23.4.4-0ubuntu0~20.04.1 all [upgradable from: 23.3.3-0ubuntu0~20.04.1]
dns-root-data/focal-updates 2023112702~ubuntu0.20.04.1 all [upgradable from: 2019052802]
dnsmasq-base/focal-updates,focal-security 2.90-0ubuntu0.20.04.1 amd64 [upgradable from: 2.80-1.1ubuntu1.7]
gir1.2-nm-1.0/focal-updates,focal-security 1.22.10-1ubuntu2.4 amd64 [upgradable from: 1.22.10-1ubuntu2.3]
less/focal-updates,focal-security 551-1ubuntu0.2 amd64 [upgradable from: 551-1ubuntu0.1]
libbinutils/focal-updates,focal-security 2.34-6ubuntu1.9 amd64 [upgradable from: 2.34-6ubuntu1.8]
libctf-nobfd0/focal-updates,focal-security 2.34-6ubuntu1.9 amd64 [upgradable from: 2.34-6ubuntu1.8]
libctf0/focal-updates,focal-security 2.34-6ubuntu1.9 amd64 [upgradable from: 2.34-6ubuntu1.8]
libhashkit2/focal 1.1.4-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 1.1.3-1+ubuntu20.04.1+deb.sury.org+1]
libmemcached11/focal 1.1.4-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 1.1.3-1+ubuntu20.04.1+deb.sury.org+1]
libnm0/focal-updates,focal-security 1.22.10-1ubuntu2.4 amd64 [upgradable from: 1.22.10-1ubuntu2.3]
libssl-dev/focal-updates,focal-security 1.1.1f-1ubuntu2.22 amd64 [upgradable from: 1.1.1f-1ubuntu2.21]
libssl1.1/focal-updates,focal-security 1.1.1f-1ubuntu2.22 amd64 [upgradable from: 1.1.1f-1ubuntu2.21]
libtiff5/focal-updates,focal-security 4.1.0+git191117-2ubuntu0.20.04.12 amd64 [upgradable from: 4.1.0+git191117-2ubuntu0.20.04.11]
libuv1/focal-updates,focal-security 1.34.2-1ubuntu1.5 amd64 [upgradable from: 1.34.2-1ubuntu1.3]
linux-libc-dev/focal-updates,focal-security 5.4.0-172.190 amd64 [upgradable from: 5.4.0-171.189]
ltrace/focal-updates 0.7.3-6.1ubuntu1.1 amd64 [upgradable from: 0.7.3-6.1ubuntu1]
mongodb-org-database-tools-extra/focal 4.4.29 amd64 [upgradable from: 4.4.28]
mongodb-org-mongos/focal 4.4.29 amd64 [upgradable from: 4.4.28]
mongodb-org-server/focal 4.4.29 amd64 [upgradable from: 4.4.28]
mongodb-org-shell/focal 4.4.29 amd64 [upgradable from: 4.4.28]
mongodb-org-tools/focal 4.4.29 amd64 [upgradable from: 4.4.28]
mongodb-org/focal 4.4.29 amd64 [upgradable from: 4.4.28]
network-manager/focal-updates,focal-security 1.22.10-1ubuntu2.4 amd64 [upgradable from: 1.22.10-1ubuntu2.3]
ngrok/buster 3.6.0 amd64 [upgradable from: 3.5.0]
openssl/focal-updates,focal-security 1.1.1f-1ubuntu2.22 amd64 [upgradable from: 1.1.1f-1ubuntu2.21]
php8.1-mongodb/focal 1.17.2-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 1.17.0-1+ubuntu20.04.1+deb.sury.org+1]
php8.2-mongodb/focal 1.17.2-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 1.17.0-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-cli/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-common/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-curl/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-dev/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-fpm/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-mbstring/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-mongodb/focal 1.17.2-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 1.17.0-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-mysql/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-opcache/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-readline/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-sqlite3/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-xml/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
php8.3-zip/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 amd64 [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
php8.3/focal 8.3.3-1+ubuntu20.04.1+deb.sury.org+1 all [upgradable from: 8.3.2-1+ubuntu20.04.1+deb.sury.org+1]
python3-cryptography/focal-security 2.8-3ubuntu0.3 amd64 [upgradable from: 2.8-3ubuntu0.2]
tcpdump/focal-updates 4.9.3-4ubuntu0.3 amd64 [upgradable from: 4.9.3-4ubuntu0.2]
tzdata/focal-updates,focal-security 2024a-0ubuntu0.20.04 all [upgradable from: 2023d-0ubuntu0.20.04]
unzip/focal-updates 6.0-25ubuntu1.2 amd64 [upgradable from: 6.0-25ubuntu1.1]
from wsl.
Related Issues (20)
- Enhancing Kernel Support for Hardware Drivers in Penetration Testing
- wsl cannot be installed HOT 4
- Unable to run WSL2 as LocalSystem user HOT 2
- /etc/fstab vhdx disk fails to mount at boot randomly HOT 3
- Class not registered Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG HOT 5
- wsl: Mirrored networking mode is not supported, falling back to NAT networking HOT 2
- WslRegisterDistribution failed with error: 0x80070057 HOT 11
- enable support for ExFAT HOT 2
- Failed to attach disk 'C:\Program Files\WSL\system.vhd' to WSL2: The system cannot find the file specified. HOT 12
- Failed to attach disk 'C:\Program Files\WSL\system.vhd' to WSL2: The system cannot find the file specified HOT 2
- How to use 'mirrored' mode since 'bridged' networking mode stopped working with 23H2 (WSL 2.1.5) HOT 10
- WSL2 Mirrored Networking and Podman macvlan DHCP HOT 5
- GPU resource cannot be used in wsl2: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22/-2 HOT 3
- I want to execute the npm installation command in Windows, but it is automatically running in WSL2. HOT 3
- disable wsl by accident in "Turn Windows Features on or off" HOT 2
- WSL being detected but isn't starting HOT 4
- KEEP HAVING TROUBLE GETTING Ubuntu WSL to work HOT 4
- > > > > _Tested on Windows 10 Pro._ HOT 4
- Multiple NUMA support HOT 1
- WSL1: ftruncate does not truncate mmap'd files HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl.