Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed
I use some command get a problem http: ../sysdeps/posix/getaddrinfo.c:2603: getaddrinfo: Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed.

in some command as apt or pip, replace command the error miss
i tired search similar issue and reinstall windows and wsl, don't fix this problem

My Windows version: Microsoft Windows [版本 10.0.15063]
i'm sorry about my pool English 😭
You just need to close ipv6 in windows10
@justid thank you for you advice
but it not work for me
~~i guess eth2 config cause this problem. but i can't disable eth2 or modify the priority~~
@kdwycz please go check your network setting by command ifconfig,see if ipv6 address gone.
@justid i try disable windows ipv6. but i don't know how to disable lo ipv6
after reinstall wsl
kdwycz@DESKTOP-C974ORK:~$ ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Global
UP LOOPBACK RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wifi0 Link encap:UNSPEC HWaddr B4-AE-2B-C6-00-C8-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.8.190 Bcast:192.168.8.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
kdwycz@DESKTOP-C974ORK:~$ sudo service ssh restart
sshd: ../sysdeps/posix/getaddrinfo.c:2603: getaddrinfo: Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed.
Aborted (core dumped)
You just need to close ipv6 in windows10
i try disable windows ipv6. but i don't know how to disable lo ipv6
@kdwycz - I could not sure this is a solution but... http://www.techunboxed.com/2014/10/how-to-disable-ipv6-in-windows-10.html describes how to disable ipv6 in windows 10.
UPDATE: I found an article Disable IPv6 on Ubuntu Linux and Windows 10.
QUOTE: To disable IPv6 only for apt-get:
sudoedit /etc/apt/apt.conf.d/99force-ipv4
Put the following contents in it:
Acquire::ForceIPv4 "true";
@sunjoong thank you, but can't effective
sad >_<
@kdwycz
run
reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 0xFFFFFFFF
then reboot
@justid don't work >_<
i start to download recovery Image file to initial my computer
Why should I use Surface instead Mac to coding? Maybe I should wait a year
Check the other issue, maybe you have a similar as I had: https://github.com/Microsoft/BashOnWindows/issues/2120#issuecomment-302820507
@ycecube Thank you for providing the idea, not applicable for me. But help me find the final answer
Finally, I found a huorong antivirus software, After the uninstall the computer repair
---------------Update-------------- I am giving feedback on this issue in a Chinese forum
@kdwycz Please close this issues if everything works fine.
how do you fix thing problem
Finally, I found a huorong antivirus software, After the uninstall the computer repair
@599281224 - It looks like Anti-Virus made this problem.
@599281224 uninstall huorong antivirus software
I solved the same problem by Disabling VMware virtual network adapters, and didn't turn off IPV6. Don't know if it would be helpful
i found where the problem is. it was caused by the third party softwares such as tencent network manager,antivirus software. to solve the problem, you need to reset the network in the windows And in my windows 10 build 16278, you can find the reset network button in the setting panel
@noahzark Disabling VMware virtual network adapters is also what worked for me.
Ehm, no, actually it is randomly failing :( Failed on another command
neo@wsl-pc:~$ nix-env -i nix
warning: there are multiple derivations named ‘nix-1.11.15’; using the first one
replacing old ‘nix-1.11.15’
installing ‘nix-1.11.15’
download-from-binary-cache.pl: perl: ../sysdeps/posix/getaddrinfo.c:2542: getaddrinfo: Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed.
error: substituter ‘download-from-binary-cache.pl’ died unexpectedly
@razvan-panda Hi, Razvan, could you check your network setting by command ifconfig, and see if there's any weird adapter?
@noahzark
neo@wsl-pc:~$ ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Global
UP LOOPBACK RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wifi0 Link encap:UNSPEC HWaddr 20-68-9D-6F-30-C3-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: 2a02:8084:e82:4880:e85b:3d32:fe7e:5cd8/64 Scope:Global
inet6 addr: 2a02:8084:e82:4880:fc52:a74d:135b:5120/128 Scope:Global
inet6 addr: fe80::e85b:3d32:fe7e:5cd8/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)