WSL icon indicating copy to clipboard operation
WSL copied to clipboard

apt-get install Error: Method http has died unexpectedly

Open Mira-br0x400000 opened this issue 10 years ago • 13 comments

When I try using sudo apt-get install <AnyPackageName> to install any package, it usually reports the following error:

0% [Working]http: ../sysdeps/posix/getaddrinfo.c:2583: getaddrinfo: Assertion `(extension ({ const struct in6_addr *__a = (const struct in6_addr *) (sin6->sin6_addr.__in6_u.__u6_addr32); __a->__in6_u.__u6_addr32[0] == 0 && __a->__in6_u.__u6_addr32[1] == 0 && __a->__in6_u.__u6_addr32[2] == __bswap_32 (0xffff); }))' failed. E: Method http has died unexpectedly! E: Sub-process http received signal 6.

However, it works well occasionally(Once or Twice). The problem is sustained.

Mira-br0x400000 avatar Jun 11 '16 08:06 Mira-br0x400000

  • My Windows10 Version: Pro Insider Preview Build 14342.1002
  • Insider Level: Slow

Mira-br0x400000 avatar Jun 11 '16 08:06 Mira-br0x400000

Same as me, when I run /etc/init.d/ssh start

smilingdolphin avatar Jun 21 '16 02:06 smilingdolphin

When I run /etc/init.d/apache2 start,it reports this error

lvzhao1995 avatar Jun 29 '16 02:06 lvzhao1995

try https://github.com/Microsoft/BashOnWindows/issues/614#issuecomment-231649761 ?

tw0517tw avatar Aug 03 '16 03:08 tw0517tw

I do nothing in the previous, but I just try again and I found the problem has disappeared . Current Version: Pro rs1_release 14393.10

Mira-br0x400000 avatar Aug 03 '16 05:08 Mira-br0x400000

When I run sudo service ssh restart

sshd: ../sysdeps/posix/getaddrinfo.c:2583: getaddrinfo: Assertion `(__extension__ ({ const struct in6_addr *__a = (const struct in6_addr *) (sin6->sin6_addr.__in6_u.__u6_addr32); __a->__in6_u.__u6_addr32[0] == 0 && __a->__in6_u.__u6_addr32[1] == 0 && __a->__in6_u.__u6_addr32[2] == __bswap_32 (0xffff); }))' failed.
Aborted (core dumped)

jiangtao92 avatar Aug 06 '16 07:08 jiangtao92

@jiangtao92 have you done with that? how ?

makexxoo avatar Nov 10 '16 11:11 makexxoo

When I run /etc/init.d/apache2 start

The apache2 configtest failed. Output of config test was: apache2: ../sysdeps/posix/getaddrinfo.c:2583: getaddrinfo: Assertion (extension ({ const struct in6_addr *__a = (const struct in6_addr *) (sin6->sin6_addr.__in6_u.__u6_addr32); __a->__in6_u.__u6_addr32[0] == 0 && __a->__in6_u.__u6_addr32[1] == 0 && __a->__in6_u.__u6_addr32[2] == __bswap_32 (0xffff); }))' failed. Aborted (core dumped) Action 'configtest' failed. The Apache error log may have more information.`

swat199538 avatar Feb 03 '17 12:02 swat199538

@swat199538 - Thanks for the post. But, can you please open a new issue for this using the template?

sunilmut avatar Feb 06 '17 23:02 sunilmut

it reports this problem when I install gem

souhup avatar Feb 17 '17 09:02 souhup

Another one with the same issue.

henriquedesousa avatar Feb 27 '17 16:02 henriquedesousa

I get this error when i run ' sudo apt update '

yunfengsay avatar May 24 '17 03:05 yunfengsay

@IceCream-love, @henriquedesousa and @yunfengsay - #2142, #2120 look similar to this one. Please see if any of the suggestions there work for you. Basically, its some anti-virus (or VPN) software interfering.

sunilmut avatar Jun 06 '17 22:06 sunilmut