WSL Debian을 사용하려고 하는데 인터넷에 연결되어 있지 않은 것 같습니다. 와 같은 sudo ping www.google.com
명령은 sudo apt-get update
작동하지 않습니다.
user@USER:~$ sudo ping www.google.com
[sudo] password for user:
ping: www.google.com: Temporary failure in name resolution
user@USER:~$ sudo apt-get update
Err:1 http://deb.debian.org/debian bullseye InRelease
Temporary failure resolving 'deb.debian.org'
Err:2 http://security.debian.org/debian-security bullseye-security InRelease
Temporary failure resolving 'security.debian.org'
Err:3 http://ftp.debian.org/debian bullseye-backports InRelease
Temporary failure resolving 'ftp.debian.org'
Err:4 http://deb.debian.org/debian bullseye-updates InRelease
Temporary failure resolving 'deb.debian.org'
Reading package lists... Done
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://ftp.debian.org/debian/dists/bullseye-backports/InRelease Temporary failure resolving 'ftp.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
변경 템플릿 파일을 보니/etc/resolv.conf
이와 같이그러나 그것은 다른 일을 하지 않습니다. 이는 Powershell에서 wsl을 호출하여 Ubuntu를 열 때 일시적으로 작동하지만 Debian에서는 아무 작업도 수행하지 않습니다. 이제 Powershell에서도 작동이 중지되었습니다. 이유를 모르겠습니다.
/etc/apt/sources.list
:
user@USER:~$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian bullseye main
deb http://deb.debian.org/debian bullseye-updates main
deb http://security.debian.org/debian-security bullseye-security main
deb http://ftp.debian.org/debian bullseye-backports main
WSL을 다시 설치하고 똑같이 시도했지만 안타깝게도 작동하지 않습니다.
콘텐츠 /etc/resolv.conf
:
cat /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 8.8.8.8