WSL2 네트워크 연결 에러 해결 방법

윈도우에서 GoodbyeDPI , SafeVisit , SecretDNS 같은 VPN 우회프로그램을 사용중인 상태에서는 WSL2 네트워크 연결이 끊어진다. 아래와 같은 에러가 발생. sudo apt update, wget 다운로드 중

sudo apt update
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Err:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
.
.
W: Failed to fetch
W: Some index files failed to download. They have been ignored, or old ones used instead.
wget: unable to resolve host address ‘example.com’

해결방법

[network]
generateResolvConf = false

WSL2 에서 sudo nano /etc/wsl.conf 파일을 열고 위 내용을 추가하고 저장한다. Powershell 에서 wsl --shutdown 으로 WSL2를 종료하고 WSL2 을 다시시작.

nameserver 8.8.8.8

WSL2 를 시작하고 sudo nano /etc/resolv.conf 파일을 생성하고 위 내용을 추가하고 저장한다.

  1. Kaspersky
  2. AVG
  3. Avast
  4. Symantec Endpoint Protection

위에 나열된 방화벽은 WSL 인터넷 엑세스를 차단하다고 보고되었다고 한다.

Linux용 Windows 하위 시스템 문제 해결 | Microsoft Learn VPN에 연결되면 WSL…
Linux용 Windows 하위 시스템 문제 해결 | Microsoft Learn WSL에서 인터넷에 엑…

댓글 0개