Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 17.10 bash preinst: ../sysdeps/unix/sysv/linux/spawni.c:360: __spawnix: Assertion `ec >= 0' failed. #2615

Closed
srcshelton opened this issue Oct 29, 2017 · 34 comments

Comments

@srcshelton
Copy link

srcshelton commented Oct 29, 2017

Attempting to dist-upgrade to Ubtuntu 17.10 fails (if bash is not marked for hold - see Issue #1878).
The reason for this appears to be that the deb package's preinst script is actually a binary, and the behaviour is odd:

$ ldd bash_4.4-5ubuntu1_amd64/preinst
        linux-vdso.so.1 =>  (0x00007fffdd9fd000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffe838e0000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ffe83e00000)
$ ./bash_4.4-5ubuntu1_amd64/preinst
preinst: ../sysdeps/unix/sysv/linux/spawni.c:368: __spawnix: Assertion `ec >= 0' failed.
Aborted (core dumped)
$ strace -vvfFtTs 128 -- ./bash_4.4-5ubuntu1_amd64/preinst
11:18:26 execve("./bash_4.4-5ubuntu1_amd64/preinst", ["./bash_4.4-5ubuntu1_amd64/preinst"], ["LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca"..., "HOSTTYPE=x86_64", "LESSCLOSE=/usr/bin/lesspipe %s %s", "LANG=en_GB.UTF-8", "USER=stuart", "PWD=/home/stuart", "HOME=/home/stuart", "NAME=MacPro", "SHELL=/bin/bash", "TERM=xterm-256color", "SHLVL=1", "LOGNAME=stuart", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files (x86)/NVIDIA "..., "LESSOPEN=| /usr/bin/lesspipe %s", "_=/usr/bin/strace", "OLDPWD=/home/stuart/bash"]) = 0 <0.001087>
11:18:26 brk(NULL)                      = 0x22a4000 <0.000020>
11:18:26 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) <0.000027>
11:18:26 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f04ec690000 <0.000034>
11:18:26 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) <0.000023>
11:18:26 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 <0.000184>
11:18:26 fstat(3, {st_dev=makedev(0, 2), st_ino=3659174697257185, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=128, st_size=21447, st_atime=2017-10-29T11:06:20+0000.323984500, st_mtime=2017-10-29T11:06:20+0000.324516100, st_ctime=2017-10-29T11:06:20+0000.334001900}) = 0 <0.000024>
11:18:26 mmap(NULL, 21447, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f04ec68a000 <0.000051>
11:18:26 close(3)                       = 0 <0.000016>
11:18:26 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) <0.000025>
11:18:26 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 <0.000216>
11:18:26 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\22\2\0\0\0\0\0@\0\0\0\0\0\0\0\220\330\35\0\0\0\0\0\0\0\0\0@\0008\0\n\0@\0I\0H\0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0000\2\0\0\0\0\0\0000\2\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0"..., 832) = 832 <0.000078>
11:18:26 fstat(3, {st_dev=makedev(0, 2), st_ino=1970324836996738, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=3832, st_size=1960656, st_atime=2017-10-28T14:53:28+0100, st_mtime=2017-10-11T21:21:40+0100, st_ctime=2017-10-28T14:53:38+0100.698294300}) = 0 <0.000027>
11:18:26 mmap(NULL, 4061792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f04ec020000 <0.000079>
11:18:26 mprotect(0x7f04ec1f6000, 2097152, PROT_NONE) = 0 <0.000025>
11:18:26 mmap(0x7f04ec3f6000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d6000) = 0x7f04ec3f6000 <0.000051>
11:18:26 mmap(0x7f04ec3fc000, 14944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f04ec3fc000 <0.000036>
11:18:26 close(3)                       = 0 <0.000043>
11:18:26 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f04ec680000 <0.000034>
11:18:26 arch_prctl(ARCH_SET_FS, 0x7f04ec680740) = 0 <0.000016>
11:18:26 mprotect(0x7f04ec3f6000, 16384, PROT_READ) = 0 <0.000023>
11:18:26 mprotect(0x602000, 4096, PROT_READ) = 0 <0.000017>
11:18:26 mprotect(0x7f04ec627000, 4096, PROT_READ) = 0 <0.000016>
11:18:26 munmap(0x7f04ec68a000, 21447)  = 0 <0.000062>
11:18:26 access("/bin/sh", X_OK)        = 0 <0.000118>
11:18:26 openat(AT_FDCWD, "/dev/null", O_WRONLY) = 3 <0.000030>
11:18:26 fcntl(3, F_GETFD)              = 0 <0.000019>
11:18:26 fcntl(3, F_SETFD, FD_CLOEXEC)  = 0 <0.000017>
11:18:26 pipe([4, 5])                   = 0 <0.000032>
11:18:26 fcntl(4, F_GETFD)              = 0 <0.000017>
11:18:26 fcntl(4, F_SETFD, FD_CLOEXEC)  = 0 <0.000020>
11:18:26 fcntl(5, F_GETFD)              = 0 <0.000017>
11:18:26 fcntl(5, F_SETFD, FD_CLOEXEC)  = 0 <0.000016>
11:18:26 prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=64*1024}) = 0 <0.000015>
11:18:26 prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=64*1024}) = 0 <0.000017>
11:18:26 brk(NULL)                      = 0x22a4000 <0.000015>
11:18:26 brk(0x22c5000)                 = 0x22c5000 <0.000038>
11:18:26 prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=64*1024}) = 0 <0.000016>
11:18:26 prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=64*1024}) = 0 <0.000016>
11:18:26 mmap(NULL, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f04ec670000 <0.000031>
11:18:26 rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 <0.000016>
11:18:26 clone(child_stack=0x7f04ec678ff0, flags=CLONE_VM|CLONE_VFORK|SIGCHLD) = 29707 <0.000659>

strace: Process 29707 attached

[pid 29706] 11:18:26 write(2, "preinst: ../sysdeps/unix/sysv/linux/spawni.c:368: __spawnix: Assertion `ec >= 0' failed.\n", 89preinst: ../sysdeps/unix/sysv/linux/spawni.c:368: __spawnix: Assertion `ec >= 0' failed.
 <unfinished ...>
[pid 29707] 11:18:26 rt_sigprocmask(SIG_BLOCK, NULL,  <unfinished ...>
[pid 29706] 11:18:26 <... write resumed> ) = 89 <0.000755>
[pid 29707] 11:18:26 <... rt_sigprocmask resumed> ~[KILL STOP], 8) = 0 <0.000402>
[pid 29706] 11:18:26 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 <unfinished ...>
[pid 29707] 11:18:26 rt_sigaction(SIGHUP, NULL,  <unfinished ...>
[pid 29706] 11:18:26 <... mmap resumed> ) = 0x7f04ec660000 <0.000345>
[pid 29707] 11:18:26 <... rt_sigaction resumed> {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fdd05217140}, 8) = 0 <0.000394>
[pid 29706] 11:18:26 rt_sigprocmask(SIG_UNBLOCK, [ABRT],  <unfinished ...>
[pid 29707] 11:18:26 rt_sigaction(SIGHUP, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f04ec057140},  <unfinished ...>
[pid 29706] 11:18:26 <... rt_sigprocmask resumed> NULL, 8) = 0 <0.000382>
[pid 29707] 11:18:26 <... rt_sigaction resumed> NULL, 8) = 0 <0.000592>
[pid 29706] 11:18:26 rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], ~[ABRT KILL STOP], 8) = 0 <0.000016>
[pid 29707] 11:18:26 rt_sigaction(SIGINT, NULL,  <unfinished ...>
[pid 29706] 11:18:26 getpid( <unfinished ...>
[pid 29707] 11:18:26 <... rt_sigaction resumed> {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fdd05217140}, 8) = 0 <0.000310>
[pid 29706] 11:18:26 <... getpid resumed> ) = 29706 <0.000578>
[pid 29706] 11:18:26 gettid()           = 29706 <0.000016>
[pid 29706] 11:18:26 tgkill(29706, 29706, SIGABRT) = 0 <0.000016>
[pid 29706] 11:18:26 rt_sigprocmask(SIG_SETMASK, ~[ABRT KILL STOP], NULL, 8) = 0 <0.000016>
[pid 29706] 11:18:26 --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=29706, si_uid=1000} ---
[pid 29707] 11:18:26 rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f04ec057140}, NULL, 8) = 0 <0.000030>

[pid 29706] 11:18:26 +++ killed by SIGABRT (core dumped) +++

11:18:26 rt_sigaction(SIGQUIT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fdd05217140}, 8) = 0 <0.000022>
...
11:18:26 rt_sigaction(SIGRT_32, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f04ec057140}, NULL, 8) = 0 <0.000022>
11:18:26 dup2(5, 1)                     = 1 <0.000026>
11:18:26 dup2(3, 2)                     = 2 <0.000023>
11:18:26 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000021>
11:18:26 execve("/usr/local/sbin/dpkg-query", ["dpkg-query", "-L", "bash"], ["LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca"..., "HOSTTYPE=x86_64", "LESSCLOSE=/usr/bin/lesspipe %s %s", "LANG=en_GB.UTF-8", "USER=stuart", "PWD=/home/stuart", "HOME=/home/stuart", "NAME=MacPro", "SHELL=/bin/bash", "TERM=xterm-256color", "SHLVL=1", "LOGNAME=stuart", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files (x86)/NVIDIA "..., "LESSOPEN=| /usr/bin/lesspipe %s", "_=/usr/bin/strace", "OLDPWD=/home/stuart/bash"]) = -1 ENOENT (No such file or directory) <0.000036>
11:18:26 execve("/usr/local/bin/dpkg-query", ["dpkg-query", "-L", "bash"], ["LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca"..., "HOSTTYPE=x86_64", "LESSCLOSE=/usr/bin/lesspipe %s %s", "LANG=en_GB.UTF-8", "USER=stuart", "PWD=/home/stuart", "HOME=/home/stuart", "NAME=MacPro", "SHELL=/bin/bash", "TERM=xterm-256color", "SHLVL=1", "LOGNAME=stuart", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files (x86)/NVIDIA "..., "LESSOPEN=| /usr/bin/lesspipe %s", "_=/usr/bin/strace", "OLDPWD=/home/stuart/bash"]) = -1 ENOENT (No such file or directory) <0.000025>
11:18:26 execve("/usr/sbin/dpkg-query", ["dpkg-query", "-L", "bash"], ["LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca"..., "HOSTTYPE=x86_64", "LESSCLOSE=/usr/bin/lesspipe %s %s", "LANG=en_GB.UTF-8", "USER=stuart", "PWD=/home/stuart", "HOME=/home/stuart", "NAME=MacPro", "SHELL=/bin/bash", "TERM=xterm-256color", "SHLVL=1", "LOGNAME=stuart", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files (x86)/NVIDIA "..., "LESSOPEN=| /usr/bin/lesspipe %s", "_=/usr/bin/strace", "OLDPWD=/home/stuart/bash"]) = -1 ENOENT (No such file or directory) <0.000058>
11:18:26 execve("/usr/bin/dpkg-query", ["dpkg-query", "-L", "bash"], ["LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca"..., "HOSTTYPE=x86_64", "LESSCLOSE=/usr/bin/lesspipe %s %s", "LANG=en_GB.UTF-8", "USER=stuart", "PWD=/home/stuart", "HOME=/home/stuart", "NAME=MacPro", "SHELL=/bin/bash", "TERM=xterm-256color", "SHLVL=1", "LOGNAME=stuart", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files (x86)/NVIDIA "..., "LESSOPEN=| /usr/bin/lesspipe %s", "_=/usr/bin/strace", "OLDPWD=/home/stuart/bash"]) = 0 <0.001349>
11:18:26 brk(NULL)                      = 0x7fffc16f2000 <0.000014>
11:18:26 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) <0.000026>
11:18:26 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa790710000 <0.000038>
11:18:26 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) <0.000037>
11:18:26 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 <0.000224>
11:18:26 fstat(3, {st_dev=makedev(0, 2), st_ino=3659174697257185, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=128, st_size=21447, st_atime=2017-10-29T11:06:20+0000.323984500, st_mtime=2017-10-29T11:06:20+0000.324516100, st_ctime=2017-10-29T11:06:20+0000.334001900}) = 0 <0.000026>
11:18:26 mmap(NULL, 21447, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa790713000 <0.000061>
11:18:26 close(3)                       = 0 <0.000022>
11:18:26 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) <0.000028>
11:18:26 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 <0.000241>
11:18:26 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\22\2\0\0\0\0\0@\0\0\0\0\0\0\0\220\330\35\0\0\0\0\0\0\0\0\0@\0008\0\n\0@\0I\0H\0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0000\2\0\0\0\0\0\0000\2\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0"..., 832) = 832 <0.000031>
11:18:26 fstat(3, {st_dev=makedev(0, 2), st_ino=1970324836996738, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=3832, st_size=1960656, st_atime=2017-10-28T14:53:28+0100, st_mtime=2017-10-11T21:21:40+0100, st_ctime=2017-10-28T14:53:38+0100.698294300}) = 0 <0.000021>
11:18:26 mmap(NULL, 4061792, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fa790020000 <0.000068>
11:18:26 mprotect(0x7fa7901f6000, 2097152, PROT_NONE) = 0 <0.000023>
11:18:26 mmap(0x7fa7903f6000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d6000) = 0x7fa7903f6000 <0.000049>
11:18:26 mmap(0x7fa7903fc000, 14944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fa7903fc000 <0.000031>
11:18:26 close(3)                       = 0 <0.000033>
11:18:26 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa790700000 <0.000026>
11:18:26 arch_prctl(ARCH_SET_FS, 0x7fa790700740) = 0 <0.000013>
11:18:26 mprotect(0x7fa7903f6000, 16384, PROT_READ) = 0 <0.000020>
11:18:26 mprotect(0x7fa790a22000, 8192, PROT_READ) = 0 <0.000019>
11:18:26 mprotect(0x7fa790627000, 4096, PROT_READ) = 0 <0.000018>
11:18:26 munmap(0x7fa790713000, 21447)  = 0 <0.000039>
11:18:26 brk(NULL)                      = 0x7fffc16f2000 <0.000014>
11:18:26 brk(0x7fffc1713000)            = 0x7fffc1713000 <0.000029>
11:18:26 open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 <0.000183>
11:18:26 fstat(3, {st_dev=makedev(0, 2), st_ino=4785074604092159, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=7080, st_size=3624336, st_atime=2017-10-29T10:06:46+0000.614865300, st_mtime=2017-10-29T10:06:59+0000.019886100, st_ctime=2017-10-29T10:06:59+0000.019886100}) = 0 <0.000020>
11:18:26 mmap(NULL, 3624336, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa78fcab000 <0.000068>
11:18:26 close(3)                       = 0 <0.000019>
11:18:26 ioctl(1, TCGETS, 0x7fffc8714d30) = -1 ENOTTY (Inappropriate ioctl for device) <0.000015>
11:18:26 fstat(1, {st_dev=makedev(0, 0), st_ino=22507, st_mode=S_IFIFO|0600, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=4096, st_blocks=0, st_size=0, st_atime=2017-10-29T11:18:26+0000.440393500, st_mtime=2017-10-29T11:18:26+0000.440393500, st_ctime=2017-10-29T11:18:26+0000.440393500}) = 0 <0.000018>
11:18:26 umask(022)                     = 000 <0.000014>
11:18:26 openat(AT_FDCWD, "/var/lib/dpkg/arch", O_RDONLY) = -1 ENOENT (No such file or directory) <0.000133>
11:18:26 openat(AT_FDCWD, "/var/lib/dpkg/status", O_RDONLY) = 3 <0.000135>
11:18:26 fstat(3, {st_dev=makedev(0, 2), st_ino=3096224743835880, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=1152, st_size=588939, st_atime=2017-10-29T11:06:20+0000.351404900, st_mtime=2017-10-29T11:06:20+0000.354454000, st_ctime=2017-10-29T11:06:20+0000.368232700}) = 0 <0.000021>
11:18:26 mmap(NULL, 589824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa790670000 <0.000028>
11:18:26 read(3, "Package: python-apt-common\nStatus: install ok installed\nPriority: optional\nSection: python\nInstalled-Size: 240\nMaintainer: Ubunt"..., 588939) = 588939 <0.000388>
11:18:26 open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 4 <0.000206>
11:18:26 fstat(4, {st_dev=makedev(0, 2), st_ino=3377699720724535, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=2995, st_atime=2017-10-28T14:53:28+0100, st_mtime=2017-10-11T21:21:40+0100, st_ctime=2017-10-28T15:00:25+0100.451242000}) = 0 <0.000021>
11:18:26 read(4, "# Locale name alias data base.\n# Copyright (C) 1996-2017 Free Software Foundation, Inc.\n#\n# This program is free software; you c"..., 4096) = 2995 <0.000037>
11:18:26 read(4, "", 4096)              = 0 <0.000023>
11:18:26 close(4)                       = 0 <0.000027>
11:18:26 open("/usr/share/locale/en_GB.UTF-8/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT (No such file or directory) <0.000025>
11:18:26 open("/usr/share/locale/en_GB.utf8/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT (No such file or directory) <0.000021>
11:18:26 open("/usr/share/locale/en_GB/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT (No such file or directory) <0.000022>
11:18:26 open("/usr/share/locale/en.UTF-8/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT (No such file or directory) <0.000021>
11:18:26 open("/usr/share/locale/en.utf8/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT (No such file or directory) <0.000020>
11:18:26 open("/usr/share/locale/en/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT (No such file or directory) <0.000021>
11:18:26 open("/usr/share/locale-langpack/en_GB.UTF-8/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT (No such file or directory) <0.000124>
11:18:26 open("/usr/share/locale-langpack/en_GB.utf8/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT (No such file or directory) <0.000112>
11:18:26 open("/usr/share/locale-langpack/en_GB/LC_MESSAGES/dpkg.mo", O_RDONLY) = 4 <0.000142>
11:18:26 fstat(4, {st_dev=makedev(0, 2), st_ino=2814749767117197, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=16, st_size=4969, st_atime=2017-10-29T09:59:20+0000, st_mtime=2017-10-12T21:27:16+0100, st_ctime=2017-10-29T09:59:29+0000.707738600}) = 0 <0.000021>
11:18:26 mmap(NULL, 4969, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7fa790717000 <0.000038>
11:18:26 close(4)                       = 0 <0.000014>
11:18:26 open("/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT (No such file or directory) <0.000116>
11:18:26 open("/usr/share/locale-langpack/en.utf8/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT (No such file or directory) <0.000110>
11:18:26 open("/usr/share/locale-langpack/en/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT (No such file or directory) <0.000117>
11:18:26 brk(0x7fffc1735000)            = 0x7fffc1735000 <0.000028>
11:18:26 brk(0x7fffc1757000)            = 0x7fffc1757000 <0.000043>
11:18:26 brk(0x7fffc1779000)            = 0x7fffc1779000 <0.000029>
11:18:26 brk(0x7fffc179b000)            = 0x7fffc179b000 <0.000029>
11:18:26 brk(0x7fffc17c5000)            = 0x7fffc17c5000 <0.000028>
11:18:26 brk(0x7fffc17e7000)            = 0x7fffc17e7000 <0.000073>
11:18:26 brk(0x7fffc1808000)            = 0x7fffc1808000 <0.000030>
11:18:26 brk(0x7fffc182a000)            = 0x7fffc182a000 <0.000030>
11:18:26 brk(0x7fffc184c000)            = 0x7fffc184c000 <0.000028>
11:18:26 brk(0x7fffc186e000)            = 0x7fffc186e000 <0.000029>
11:18:26 brk(0x7fffc1890000)            = 0x7fffc1890000 <0.000028>
11:18:26 brk(0x7fffc18b2000)            = 0x7fffc18b2000 <0.000027>
11:18:26 close(3)                       = 0 <0.000055>
11:18:26 munmap(0x7fa790670000, 589824) = 0 <0.000068>
11:18:26 open("/var/lib/dpkg/updates/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3 <0.000188>
11:18:26 fstat(3, {st_dev=makedev(0, 2), st_ino=562949953469367, st_mode=S_IFDIR|0755, st_nlink=0, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=4096, st_atime=2016-09-13T21:45:09+0100, st_mtime=2017-10-29T11:06:20+0000.392042400, st_ctime=2017-10-29T11:06:20+0000.392042400}) = 0 <0.000021>
11:18:26 getdents(3, [{d_ino=562949953469367, d_off=24, d_reclen=24, d_name=".", d_type=DT_DIR}, {d_ino=562949953469367, d_off=24, d_reclen=24, d_name="..", d_type=DT_DIR}], 32768) = 48 <0.000026>
11:18:26 getdents(3, [], 32768)         = 0 <0.000014>
11:18:26 close(3)                       = 0 <0.000029>
11:18:26 openat(AT_FDCWD, "/var/lib/dpkg/triggers/File", O_RDONLY) = 3 <0.000145>
11:18:26 fstat(3, {st_dev=makedev(0, 2), st_ino=1970324837009548, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=1005, st_atime=2017-10-29T10:17:07+0000.340513900, st_mtime=2017-10-29T10:17:07+0000.340863500, st_ctime=2017-10-29T10:17:07+0000.349776100}) = 0 <0.000019>
11:18:26 read(3, "/usr/lib/mime/packages mime-support/noawait\n/usr/share/applications mime-support/noawait\n/usr/man man-db/noawait\n/usr/share/man "..., 4096) = 1005 <0.000035>
11:18:26 read(3, "", 4096)              = 0 <0.000023>
11:18:26 close(3)                       = 0 <0.000043>
11:18:26 openat(AT_FDCWD, "/var/lib/dpkg/triggers/Unincorp", O_RDONLY) = 3 <0.000133>
11:18:26 fcntl(3, F_GETFD)              = 0 <0.000013>
11:18:26 fcntl(3, F_SETFD, FD_CLOEXEC)  = 0 <0.000014>
11:18:26 fstat(3, {st_dev=makedev(0, 2), st_ino=4785074604092314, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=0, st_atime=2017-10-29T10:20:31+0000.496540600, st_mtime=2017-10-29T10:20:31+0000.496540600, st_ctime=2017-10-29T10:20:31+0000.506122900}) = 0 <0.000020>
11:18:26 openat(AT_FDCWD, "/var/lib/dpkg/info/format", O_RDONLY) = 4 <0.000138>
11:18:26 fstat(4, {st_dev=makedev(0, 2), st_ino=562949953469823, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=2, st_atime=2016-09-13T21:41:19+0100, st_mtime=2016-09-13T21:41:19+0100, st_ctime=2016-09-13T21:41:19+0100}) = 0 <0.000020>
11:18:26 read(4, "1\n", 4096)           = 2 <0.000036>
11:18:26 close(4)                       = 0 <0.000027>
11:18:26 stat("/var/lib/dpkg/info/format-new", 0x7fffc8714bc0) = -1 ENOENT (No such file or directory) <0.000024>
11:18:26 openat(AT_FDCWD, "/var/lib/dpkg/info/bash.list", O_RDONLY) = 4 <0.000141>
11:18:26 fstat(4, {st_dev=makedev(0, 2), st_ino=1125899906890143, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=970, st_atime=2017-10-28T14:24:27+0100.619688600, st_mtime=2017-10-28T14:24:27+0100.620124500, st_ctime=2017-10-28T14:24:27+0100.628719400}) = 0 <0.000020>
11:18:26 read(4, "/.\n/bin\n/bin/bash\n/etc\n/etc/bash.bashrc\n/etc/skel\n/etc/skel/.bash_logout\n/etc/skel/.bashrc\n/etc/skel/.profile\n/usr\n/usr/bin\n/usr"..., 970) = 970 <0.000037>
11:18:26 close(4)                       = 0 <0.000027>
11:18:26 openat(AT_FDCWD, "/var/lib/dpkg/diversions", O_RDONLY) = 4 <0.000134>
11:18:26 fcntl(4, F_GETFD)              = 0 <0.000013>
11:18:26 fcntl(4, F_SETFD, FD_CLOEXEC)  = 0 <0.000013>
11:18:26 fstat(4, {st_dev=makedev(0, 2), st_ino=4222124650777105, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=522, st_atime=2017-10-29T10:20:42+0000.966751500, st_mtime=2017-10-29T10:20:42+0000.967358300, st_ctime=2017-10-29T10:20:42+0000.976647600}) = 0 <0.000020>
11:18:26 fstat(4, {st_dev=makedev(0, 2), st_ino=4222124650777105, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=522, st_atime=2017-10-29T10:20:42+0000.966751500, st_mtime=2017-10-29T10:20:42+0000.967358300, st_ctime=2017-10-29T10:20:42+0000.976647600}) = 0 <0.000018>
11:18:26 read(4, "/usr/bin/pod2latex\n/usr/bin/pod2latex.bundled\nlibpod-latex-perl\n/usr/share/man/man1/pod2latex.1.gz\n/usr/share/man/man1/pod2latex"..., 4096) = 522 <0.000032>
11:18:26 read(4, "", 4096)              = 0 <0.000022>
11:18:26 write(1, "/.\n/bin\n/bin/bash\n/etc\n/etc/bash.bashrc\n/etc/skel\n/etc/skel/.bash_logout\n/etc/skel/.bashrc\n/etc/skel/.profile\n/usr\n/usr/bin\n/usr"..., 970) = -1 EPIPE (Broken pipe) <0.000019>
11:18:26 --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=29707, si_uid=1000} ---
11:18:26 +++ killed by SIGPIPE +++
Aborted (core dumped)

Running under gdb gives no output:

$ gdb ./bash_4.4-5ubuntu1_amd64/preinst
GNU gdb (Ubuntu 8.0.1-0ubuntu1) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./bash_4.4-5ubuntu1_amd64/preinst...done.
(gdb) run
Starting program: /home/stuart/bash_4.4-5ubuntu1_amd64/preinst
@srcshelton
Copy link
Author

Microsoft Windows [Version 10.0.16299.19]

@WSLUser
Copy link

WSLUser commented Oct 30, 2017

Interestingly enough, I was able to successfully perform the dist-upgrade that jumped me all the way from 16.04 to 17.10 with no upgrades to 16.10 or 17.04 first after performing the dbus commands and regenerating the locale but I get this error that is extremely similar to yours when I try to do a apt-get upgrade. I'm unable to show the output right now but basically there's an error that created by bash_4.4-5ubuntu1_amd64.deb that appears to be generated by dpkg. It appears that the .deb file didn't successfully migrate with the upgrade to 17.10 and is expecting data files from 16.04 that no longer exist. I have done the dpkg --configure -a to no joy. I believe the issue could be corrected by simply replacing the .deb file with an un-corrupted version though how one could go about doing that is the part I'm not entirely sure about. Also, performing an strace literally generates pages upon pages that's too long to place here.

I am running the FCU build.

@jstarks
Copy link
Member

jstarks commented Oct 30, 2017

This has the same underlying cause as #1878. This will be fixed in future insider build.

@WSLUser
Copy link

WSLUser commented Nov 2, 2017

@jstarks Do you know which Insider build it will be released in?

@nstrelow
Copy link

Was this fixed in 17040 ?

@jstarks
Copy link
Member

jstarks commented Nov 16, 2017

Unfortunately it didn’t make 17040. But the changes are staged for the next insiders build (along with some other good fixes).

@Brian-Perkins
Copy link

Windows Insider Build 17046 has improved CLONE_VFORK and CLONE_VM support.

@srcshelton
Copy link
Author

srcshelton commented Nov 22, 2017

In the spirit of openness and out of genuine interest, could you elaborate on the issue(s) with CLONE_{VFORK,VM} which caused this problem, and what technical fix has been made to address the situation?

@Brian-Perkins
Copy link

The CLONE_VFORK issue is described here. The crux of the CLONE_VM issue is that the building blocks of a process on Windows and Linux are different: on Windows you have a process object which amongst other things is a virtual memory container, and threads that run within this process. On Linux (*note some conjecture here as we can't actually read the Linux source) there is a virtual memory object that can be assigned to processes. So on Linux, CLONE_VM makes a lot of sense: just reference the current VM object and assign it to the cloned process. On Windows however the VM object is the process, so what does it mean to share the VM space? Well, it means that you are running in the same process. So essentially what you get is a Windows thread. Conceptually this is pretty straight-forward, but all of our code was built around trying to map Linux process concepts to NT process concepts, and this did not fit into that model very well (two Linux processes mapping to one NT process). So @jstarks refactored a lot of code so that we ended up with a model where adding this additional capability was straight forward. We like to use equivalent Windows constructs whenever possible because it gives us for free all of the optimizations around scheduling, power, memory usage, etc.

@srcshelton
Copy link
Author

srcshelton commented Nov 28, 2017

@Brian-Perkins Fantastic explanation - thanks for taking the time to elucidate! I'd assumed that you guys had GPL-licensed source in a separate module ("kernel mode driver"? I'm not sufficiently familiar with the NT kernel to know how Windows Loadable Kernel Modules work...) making use of public hooks into the kernel, rather than having to do a black-box reimplementation without having seen the Linux source, so that the result doesn't also have to be GPL-licenced 😮

@Nathan-Harris
Copy link

Any chance we could get this bug fix rolled into a cumulative update to 16299? I don't like to run insider on my daily driver but would like Artful.

@glaubitz
Copy link

glaubitz commented Dec 8, 2017

Both glibc-2.25 and glibc-2.26 have received workarounds for this issue upstream:

https://sourceware.org/bugzilla/show_bug.cgi?id=22273

You can ask your distribution vendor to include the fix for 2.25/2.26, 2.24 doesn't need it.

Debian unstable recently received glibc_2.25-3 which contains the fix as well.

@jstarks
Copy link
Member

jstarks commented Dec 8, 2017

@Nathan-Harris I'm sorry, but it's not likely. The code change to fix this was substantial. Hopefully glibc's workaround can unblock you until the next Windows release.

@pwuertz
Copy link

pwuertz commented Jan 9, 2018

Is there a workaround to unblock this upgrade bug on a default (non-insider) windows?

@glaubitz
Copy link

glaubitz commented Jan 9, 2018

@pwuertz You don't need to wait for the Windows patch. Just make sure your Linux distribution has a recent enough version of glibc which handles the issue more gracefully.

@gorgone
Copy link

gorgone commented Jan 21, 2018

same error on ubuntu 18.04
if i hold bash i can full upgrade my system on wsl
but bash fails on install
and crosstoolng has the same error on bootstrap

root@Big:/home/gorgone/simplebuild/crosstool-ng# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
bash
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/625 kB of archives.
After this operation, 77,8 kB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 64161 files and directories currently installed.)
Preparing to unpack .../bash_4.4-5ubuntu1_amd64.deb ...
preinst: ../sysdeps/unix/sysv/linux/spawni.c:368: __spawnix: Assertion `ec >= 0' failed.
dpkg: error processing archive /var/cache/apt/archives/bash_4.4-5ubuntu1_amd64.deb (--unpack):
new bash package pre-installation script subprocess was killed by signal (Aborted), core dumped
update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode
Errors were encountered while processing:
/var/cache/apt/archives/bash_4.4-5ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Big:/home/gorgone/simplebuild/crosstool-ng#

INFO :: *** Running autoconf
m4: ../sysdeps/unix/sysv/linux/spawni.c:368: __spawnix: Assertion `ec >= 0' failed.
/usr/bin/m4: internal error detected; please report this bug to bug-m4@gnu.org: Aborted
autom4te: /usr/bin/m4 failed with exit status: 2
INFO :: *** Done!

@glaubitz
Copy link

same error on ubuntu 18.04

Please report this as a bug in Ubuntu against the glibc package.

This particular issue has been addressed in glibc upstream and does no longer show in Debian which has version 2.26 with the particular patch included.

Upstream fixed the issue both in the glibc 2.25 and 2.26 branches.

@WSLUser
Copy link

WSLUser commented Jan 21, 2018

You can download the newer version of glibc from their website using Firefox (via VcxSrv) and moving it out of the Downloads folder into a more accessible folder that you should create. Unfortunately I'm having alittle difficulty installing it. ./configure glibc2.6 --prefix=/usr
configure: WARNING: you should use --build, --host, --target
configure: error: you must configure in a separate build directory There's an Install file you canmore into but figuring out which option to use to change the build directory is more difficult than anticipated. Never manually upgraded via .tar before so I'm a bit unfamiliar with this particular process especially since I've discovered that glibc is a special beast when it comes to recompiling vice other tar files. If someone can provide the necessary repro steps to manually upgrade this, it would go a long way into solving this issue. Alternatively, if there's a repository we can add to sources.list that will work on Xenial to upgrade glibc, I'd much rather upgrade through that.

@WSLUser
Copy link

WSLUser commented Jan 21, 2018

@glaubitz the issue isn't glibc. The latest version on their mirror is 2.9 but all contain from 2.25 the fix. The problem is when we attempt to upgrade, glibc doesn't upgrade with it and is stuck on 2.23, which prevents bash from upgrading and without bash upgrading, you're unable to upgrade all your packages to the latest version in 17.10+. The latest stable version is 2.6 which is why I'm trying to install that vice 2.9. It would be nice if Ubuntu actually attempted to maintain the current stable version instead of staying with an older version on their LTS. Anything considered stable should be installed so why they won't make 2.6 available is beyond me. To further emphasize, even Kubuntu doesn't have it available and it's supposed to be ahead of Ubuntu when packages have updates and upgrades. This seems odd to me so if anybody has any pull over there to force to them to keep glibc up-to-date even on their stable version, I'm sure the entire community would be appreciative.

@glaubitz
Copy link

@DarthSpock If you see this particular assertion failure in glibc, then, yes, it's a glibc issue. And after a quick glimpse, it seems Ubuntu doesn't carry patch to fix this issue.

See again this bug report: https://sourceware.org/bugzilla/show_bug.cgi?id=22273

If the version of glibc you are trying to install is crashing with the error message from the original bug report, your glibc is missing this patch:

https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=fe05e1cb6d64dba6172249c79526f1e9af8f2bfd

Basically: Both Microsoft's WSL and qemu-user did not implement a variant of clone() properly which resulted in this assert() - which was introduced with glibc 2.25/2.26 - to be triggered. On real machines, this assert() did not trigger, but it triggered on WSL and qemu-user.

While Microsoft has already addressed the issue in WSL in newer versions, qemu-user hasn't. Thus, if you are running on an older version of WSL or qemu-user, you must have the patch linked above.

@foolnotion
Copy link

A temporary workaround would be to install the (patched) packages from debian sid via dpkg -i:

libc-bin_2.26-6_amd64.deb
libc-dev-bin_2.26-6_amd64.deb
libc6-dbg_2.26-6_amd64.deb
libc6-dev_2.26-6_amd64.deb
libc6-i386_2.26-6_amd64.deb
libc6_2.26-6_amd64.deb
libperl5.26_5.26.1-4_amd64.deb
linux-libc-dev_4.14.13-1_amd64.deb
perl-base_5.26.1-4_amd64.deb
perl-modules-5.26_5.26.1-4_all.deb
perl_5.26.1-4_amd64.deb

The equivs package could then be used to fix any unsatisfied dependencies, but i didn't run into any problems so far.

@WSLUser
Copy link

WSLUser commented Jan 31, 2018

if you're downloading from debian, then you may as well use the backport available on Ubuntu instead or you can manually download it from the Ubuntu archives anddpkg -iit. Beware though trying to use glibc above version 2.6 as I don't believe higher versions support Xenial, it's possible it doesn't matter and you can use 2.9 but I wouldn't recommend it unless you're running at least 17.04. If you were running 17.04, then you would have no need to do this anyways as it has the 2.6 glibc included.

@lewisdonofrio
Copy link

lewisdonofrio commented Jun 14, 2018

help!
How do I get past this -

Windows (admin) PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Loading personal and system profiles took 562ms.
PS C:\WINDOWS\system32> cd C:\Users\donofrio\Downloads
PS C:\Users\donofrio\Downloads> .\ubuntu.exe
Installing, this may take a few minutes...
Installation successful!
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: donofrio
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Default UNIX user set to: donofrio
To run a command as administrator (user "root"), use "sudo ".
See "man sudo_root" for details.

donofrio@WSAL0196 sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y && sudo sync && sudo sync
[sudo] password for donofrio:
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
.
.
.
Get:26 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1136 B]
Fetched 16.3 MB in 8s (1942 kB/s)
Reading package lists... Done
W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
W: store: aptMethod::Configuration: could not load seccomp policy: Invalid argument
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
apport apt apt-utils bind9-host btrfs-progs cryptsetup-bin curl dirmngr dnsutils dpkg
fonts-ubuntu-font-family-console gnupg gnupg-agent isc-dhcp-client libapparmor-perl libapt-pkg5.0 libbind9-160
libcurl3 libgnutls30 libidn2-0 libirs160 libisccc160 libisccfg160 liblwres160 liblxc1 libnss-systemd libpam-systemd
libperl5.26 libpsl5 libsystemd0 nplan perl perl-base python3-apport rsyslog strace systemd ubuntu-server
The following packages will be upgraded:
apparmor at base-files bash bash-completion bsdutils btrfs-tools byobu ca-certificates cloud-guest-utils cloud-init
command-not-found command-not-found-data console-setup console-setup-linux cryptsetup debconf debconf-i18n dh-python
distro-info-data dmeventd dmsetup dnsmasq-base e2fslibs e2fsprogs eatmydata ebtables ethtool fdisk file
friendly-recovery gcc-7-base gcc-8-base geoip-database gettext-base gir1.2-glib-2.0 git git-man gnupg-l10n gpgv
hdparm initramfs-tools initramfs-tools-bin initramfs-tools-core iproute2 isc-dhcp-common iso-codes
keyboard-configuration language-selector-common libapparmor1 libapt-inst2.0 libatm1 libblkid1 libc-bin libc6
libcom-err2 libcomerr2 libcurl3-gnutls libdb5.3 libdevmapper-event1.02.1 libdevmapper1.02.1 libdrm-common libdrm2
libeatmydata1 libelf1 libext2fs2 libfdisk1 libfreetype6 libgcc1 libgcrypt20 libgdbm5 libgirepository-1.0-1
libglib2.0-0 libglib2.0-data libgraphite2-3 libharfbuzz0b libicu60 libidn11 libkeyutils1 liblvm2app2.2
liblvm2cmd2.02 liblz4-1 libmagic-mgc libmagic1 libmount1 libmpdec2 libncurses5 libncursesw5 libnghttp2-14 libnih1
libpam-modules libpam-modules-bin libpam-runtime libpam0g libplymouth4 libpolkit-agent-1-0 libpolkit-backend-1-0
libpolkit-gobject-1-0 libpopt0 libprocps6 libpython3-stdlib libpython3.6 libpython3.6-minimal libpython3.6-stdlib
libseccomp2 libselinux1 libsemanage-common libsemanage1 libslang2 libsmartcols1 libss2 libssl1.0.0 libssl1.1
libstdc++6 libtinfo5 libudev1 libuuid1 libxcb1 locales lshw lvm2 lxcfs lxd lxd-client man-db mawk mdadm mlocate
mount multiarch-support nano ncurses-base ncurses-bin ncurses-term netcat-openbsd open-iscsi open-vm-tools
openssh-client openssh-server openssh-sftp-server openssl pastebinit patch perl-modules-5.26 plymouth
plymouth-theme-ubuntu-text policykit-1 popularity-contest powermgmt-base procps publicsuffix python-apt-common
python3 python3-apt python3-cffi-backend python3-commandnotfound python3-cryptography python3-debconf
python3-distro-info python3-distupgrade python3-distutils python3-gdbm python3-lib2to3 python3-minimal
python3-pkg-resources python3-problem-report python3-serial python3-software-properties python3-update-manager
python3.6 python3.6-minimal rsync sensible-utils snapd software-properties-common sosreport squashfs-tools
ssh-import-id systemd-sysv tcpdump tzdata ubuntu-advantage-tools ubuntu-keyring ubuntu-minimal
ubuntu-release-upgrader-core ubuntu-standard ucf udev unattended-upgrades update-manager-core update-notifier-common
util-linux uuid-runtime vim vim-common vim-runtime vim-tiny vlan wget xdg-user-dirs xfsprogs xxd
202 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
Need to get 90.0 MB of archives.
After this operation, 18.9 MB of additional disk space will be used.
Get:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 file amd64 1:5.32-2ubuntu0.1 [22.1 kB]
.
.
.
Get:202 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 vlan amd64 1.9-3.2ubuntu6 [30.7 kB]
Fetched 90.0 MB in 2min 46s (543 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 27025 files and directories currently installed.)
Preparing to unpack .../base-files_10.1ubuntu2_amd64.deb ...
Unpacking base-files (10.1ubuntu2) over (10ubuntu1) ...
Setting up base-files (10.1ubuntu2) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
(Reading database ... 27026 files and directories currently installed.)
Preparing to unpack .../bash_4.4.18-2ubuntu1_amd64.deb ...
preinst: ../sysdeps/unix/sysv/linux/spawni.c:368: __spawnix: Assertion `ec >= 0' failed.
dpkg: error processing archive /var/cache/apt/archives/bash_4.4.18-2ubuntu1_amd64.deb (--unpack):
new bash package pre-installation script subprocess was killed by signal (Aborted), core dumped
dmesg: read kernel buffer failed: Function not implemented
update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode
Errors were encountered while processing:
/var/cache/apt/archives/bash_4.4.18-2ubuntu1_amd64.deb
W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
E: Sub-process /usr/bin/dpkg returned an error code (1)
donofrio@WSAL0196:~$

@krnlde
Copy link

krnlde commented Jun 15, 2018

You need to hold back bash, see reddit
Aside from that, this is no support forum. Google would've helped.

@WSLUser
Copy link

WSLUser commented Jun 15, 2018

You need to hold back bash

Yeah, no. It's not just bash or ebtables, or any one particular package. The fix is to upgrade to build 17134, the latest and greatest stable version. As stated above, there is an issue with 16299 and below in support CLONE_VFORK and CLONE_VM. The upgrade does work in this build. That said, if upgrading Windows isn't an option, Ubuntu 18.04 has it's own image on the Microsoft Store for download.

@lewisdonofrio
Copy link

lewisdonofrio commented Jun 15, 2018

I'm trying to get to is where I can do "Updates" to the system, (I do not have the store with corp 1709 image) - these days you have to keep "up-to-date" with patches and the like. What is weird is on my desktop's at work it's failing but on the work notebooks it's working. I'll provide bash versions in a few hours (I'm on iirc freenode #windows-subsystem-for-linux #ubuntu-on-windows.)

@WSLUser
Copy link

WSLUser commented Jun 15, 2018

@lewisdonofrio You sound like you just need to wait for the server install method to become available. Or you can just use https://github.com/Microsoft/WSL-DistroLauncher to compile and build the win32 (or take the extra steps to make it an appx) using the Docker image. Since Canonical hasn't released details on which image they use, this is the default image I'd go with (this would be the case for most distros)

@lewisdonofrio
Copy link

I've used WSL-DL and it didn't "quite do it" for me and I am using the unsquish method from #2618 with the squish file https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.tar.gz then I update/dist-upgrade then I get 201 packages to update and bang 200th package errors ;(

@Biswa96
Copy link

Biswa96 commented Jun 15, 2018

Did you see nay error with ebtables?

@lewisdonofrio
Copy link

not yet but when I did last time I just did the fix'ed script outlined in #143 (comment)

@lewisdonofrio
Copy link

Well this is really weird...the notebook that is working has bash 4.4.19(1) and that is the weird thing, it updates fine, no issues with things seg-faulting during updates. Now the desktops built last few of them, they try to install the (2) version and blow up the whole show...thoughts? (they were all built with same files from tinyurl.com/donofrioworkdesk (the ppt and the zipfile in downloads dir then rootfs is in downloads dir when done)

@onomatopellan
Copy link

onomatopellan commented Jun 15, 2018

@lewisdonofrio Can you post the output of the notebook and the desktop's WSL Ubuntu for uname -a ?

@lewisdonofrio
Copy link

lewisdonofrio commented Jun 15, 2018

Desktop at work having "issues" returns Bash 4.4.18(1)-release (older???)

Linux WSAL0196 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
inxi -Fxzwrc0 = http://paste.ubuntu.com/p/wkKmn5MFqt/
(UPDATEand now the desktop is working, I had to apt-get install inxi before I updated unlike what I normal process was but now it's at 4.4.19(1) on desktop after inxi was installed (it did install a bunch of dependencies that I'd need anyways just - hummm) @Biswa96 I did indeed need the etable/script workaround as always.

Notebook that works and I get full xfce4 updated desktop running bash 4.4.19(1)-release .
Linux LTAL0111 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
inxi -Fzxwrc0 = http://paste.ubuntu.com/p/kkGHZ57hZJ/

@lewisdonofrio
Copy link

anyone else getting weird perms for .cache directory, I have to manually do chown/chgrp -R /home/donofrio/.cache then the many dbus permission notices goes away from the console. Just figured I'd share.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests