WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed

Open kdwycz opened this issue 9 years ago • 29 comments

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 😭

kdwycz avatar May 22 '17 04:05 kdwycz

You just need to close ipv6 in windows10

justid avatar May 22 '17 06:05 justid

@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 avatar May 22 '17 07:05 kdwycz

@kdwycz please go check your network setting by command ifconfig,see if ipv6 address gone.

justid avatar May 22 '17 07:05 justid

@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)

kdwycz avatar May 22 '17 12:05 kdwycz

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 avatar May 22 '17 12:05 sunjoong

@sunjoong thank you, but can't effective

sad >_<

kdwycz avatar May 22 '17 13:05 kdwycz

@kdwycz run reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 0xFFFFFFFF then reboot

justid avatar May 22 '17 14:05 justid

@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

kdwycz avatar May 22 '17 15:05 kdwycz

Check the other issue, maybe you have a similar as I had: https://github.com/Microsoft/BashOnWindows/issues/2120#issuecomment-302820507

tnagyce avatar May 22 '17 15:05 tnagyce

@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 avatar May 23 '17 00:05 kdwycz

@kdwycz Please close this issues if everything works fine.

justid avatar May 23 '17 07:05 justid

how do you fix thing problem

599281224 avatar Jun 13 '17 10:06 599281224

Finally, I found a huorong antivirus software, After the uninstall the computer repair

@599281224 - It looks like Anti-Virus made this problem.

sunjoong avatar Jun 13 '17 10:06 sunjoong

@599281224 uninstall huorong antivirus software

kdwycz avatar Jun 14 '17 08:06 kdwycz

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

noahzark avatar Aug 09 '17 18:08 noahzark

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

evvil avatar Sep 09 '17 07:09 evvil

@noahzark Disabling VMware virtual network adapters is also what worked for me.

freeman42x avatar Nov 03 '17 22:11 freeman42x

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

freeman42x avatar Nov 03 '17 22:11 freeman42x

@razvan-panda Hi, Razvan, could you check your network setting by command ifconfig, and see if there's any weird adapter?

noahzark avatar Nov 03 '17 23:11 noahzark

@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)

freeman42x avatar Nov 03 '17 23:11 freeman42x