
실행할 때 lsmod
또는 sudo lsmod
오류 메시지가 나타납니다.
libkmod: ERROR ../libkmod/libkmod-module.c:1655 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
Error: could not get list of modules: No such file or directory
여러 포럼에서 검색했지만 해결책을 찾지 못했습니다. 저는 Linux용 Windows 하위 시스템에서 Debian을 실행하고 있습니다.
나는 또한 최근에 sysctl.conf
파일을 편집하여 비활성화하려고 시도했습니다.IPv6. 다음 줄을 추가했습니다.
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
시도했을 때 sudo sysctl -p
다음 오류가 반환되었습니다.
sysctl: cannot stat /proc/sys/net/ipv6/conf/all/disable_ipv6: No such file or directory
sysctl: cannot stat /proc/sys/net/ipv6/conf/default/disable_ipv6: No such file or directory
sysctl: cannot stat /proc/sys/net/ipv6/conf/lo/disable_ipv6: No such file or directory
위의 두 오류가 관련이 있는지 확실하지 않습니다. Windows에서 Linux 셸을 실행하려고 합니다. 해결책이 있나요?
답변1
두 경우 모두 커널과 상호 작용하려고 합니다. WSL에서 실행되는 모든 Linux 환경은 Linux 커널을 실행하지 않지만 Windows 커널을 실행하므로 Linux 커널과 관련된 모든 것(모듈 및 시스템 제어 포함)이 작동하지 않습니다.
IPv6의 경우 Windows 도구를 사용하여 네트워크를 구성해야 합니다.
답변2
엄밀히 말하면 WSL과 관련은 없지만 로드 가능한 모듈 지원 없이 커널을 컴파일한 경우 이 오류가 표시됩니다.
대부분의 정보가 의존하는 /proc/modules
모듈 지원 없이는 존재하지 않습니다.lsmod
자신만의 커널을 컴파일하는 경우 찾을 옵션은 CONFIG_MODULES입니다.
답변3
WSL에서 nfs 마운트를 수행하려고 하기 때문에 이 오류가 발생합니다. Windows를 사용하여 드라이브에 연결한 다음 WSL에 설치할 수 있습니다.
sudo mount -t drvfs G: /mnt/g
내가 얻은 전체 답변은 다음과 같습니다. https://superuser.com/questions/1128634/how-to-access-mounted-network-drive-on-windows-linux-subsystem/1261563#1261563