RoliSoft/WSL-Distribution-Switcher

1kk troubles with archlinux installation

pasteley opened this issue · 4 comments

First, got this with base/archlinux.
Then, afer reinstalling whole wsl and pritunl/archlinux got probles with resolv.conf and pacman

looks like its network configuration issue, not just rootfs files
running with administrator privelage output:

~# ping google.com
WARNING: your kernel is veeery old. No problems.
setsockopt(RAW_CHECKSUM) failed - try to continue.setsockopt(ICMP6_FILTER): Invalid argument

and

~# ping 8.8.8.8
ping: 8.8.8.8: Address family for hostname not supported

tried to switch back to ubuntu to recheck it there and get:

[!] Failed to backup current rootfs: Command '['cmd', '/C', 'move', 
'C:\\Users\\thence\\AppData\\Local\\lxss\\rootfs', 
'C:\\Users\\thence\\AppData\\Local\\lxss\\rootfs_./rootfs_pritunl_archlinux_latest']' returned non-zero exit status 1.

switched manually and get the same result on original ubuntu

When running base installation with pacman, not using hook script, get these messages at the end:

(27/58) reinstalling licenses  [########################################] 100%
error: extract: not overwriting dir with file /usr/share/licenses/common/APACHE
error: problem occurred while upgrading licenses
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded.
fpqc commented

Which Windows build are you using? That issue was fixed in CU. Also, pritunl hasn't been updated in a while. Have you tried using the official Arch bootstrap tgz?

Updated to CU. Installing official Arch bootstrap issuing this:

[*] Probing the Linux subsystem...
[*] Default user is root at /root.
[*] Reading /etc/{passwd,shadow,group,gshadow} entries for root...
[*] Beginning extraction...
[*] Backing up current rootfs to rootfs_ubuntu_xenial...
[*] Switching to new rootfs...
[*] Writing entries of root to /etc/{passwd,shadow,group,gshadow}...
[*] Running post-install hook all...
Error: 0x80070002
Press any key to continue…
[!] Failed to run hook in WSL: Command '['cmd', '/C', 'C:\\WINDOWS\\System32\\bash.exe', '-c', 'echo -n > /root/hook_postinstall_all.sh && chmod +x /root/hook_postinstall_all.sh']' returned non-zero exit status 4294967295.

And bash is failing to start with error