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

error in guix wsl install #31

Open
vigilancetech-com opened this issue Nov 27, 2021 · 4 comments
Open

error in guix wsl install #31

vigilancetech-com opened this issue Nov 27, 2021 · 4 comments

Comments

@vigilancetech-com
Copy link

get this result after trying to run the powershell command using the latest windows 11 with everything upgraded to date:
`

wsl -d guix --exec /bin/busybox sh -c "/mnt/c/Users/kevin/OneDrive/Desktop/guix-install.sh /mnt/c/Users/kevin/OneDrive/Desktop/wsl.scm"
wsl.scm:13:2: error: (operating-system (host-name "guix") (keyboard-layout (keyboard-layout "us" "altgr-intl")) (users (cons (user-account (name "wsl") (group "users") (home-directory "/home/wsl") (supplementary-groups (quote ("wheel")))) %base-user-accounts)) (kernel hello) (initrd (lambda* rest (plain-file "dummyinitrd" "dummyinitrd"))) (initrd-modules (quote ())) (firmware (quote ())) (bootloader (bootloader-configuration (bootloader (bootloader (name (quote dummybootloader)) (package hello) (configuration-file "/dev/null") (configuration-file-generator (lambda* rest (computed-file "dummybootloader" (gexp (mkdir (ungexp output)))))) (installer (gexp (const #t))))))) (file-systems (list (file-system (device "/dev/sdb") (mount-point "/") (type "ext4") (mount? #t)))) (services (list (service guix-service-type) (service special-files-service-type (quasiquote (("/usr/bin/env" (unquote (file-append coreutils "/bin/env"))))))))): missing field initializers (timezone)`

@stormwatch
Copy link

stormwatch commented Dec 16, 2021

I get the same error here with windows 10.

relevant dmesg excerpt:

[ 3768.292417] init: (1) ERROR: ConfigApplyWindowsLibPath:2129: open /etc/ld.so.conf.d/ld.wsl.conf
[ 3768.292422] failed 2
[ 3768.338552] init: (1) ERROR: UpdateTimezone:97: America/Buenos_Aires timezone not found. Is the tzdata package installed?
[ 3768.338563] init: (1) ERROR: InitEntryUtilityVm:2425: UpdateTimezone failed

@TheCatster
Copy link
Member

I wish I could he;p, as I see this is an old issue and try to be more active, but I don't have any computers with Windows.

@minikN
Copy link
Contributor

minikN commented Dec 17, 2021

Hello, unfortunately I don't have access to Windows as well at the moment to test this.

@watsonjt
Copy link
Contributor

watsonjt commented Apr 24, 2022

@vigilancetech-com, I am not sure if you were able to resolve this problem... however I ran into two problems following the wsl instructions, the second one may resolve your issue.

  1. the guix binary wget was not working, resulting in output saying it was "corrupted"
  • Resolution - manually download the binary and place it into /tmp ... use the same wsl command, just replace the string with "cd /tmp && wget url-to-guix-binary-here"
  1. The error vigil posted, it mentions timezone... this is a required field in the operating-system record
  • Resolution - place (timezone "your-time-zone-here") inside the "(operating-system...)" located in the wsl.scm file

Also for future reference to anyone that stumbles on this, at the time of writing, there are 5 patches you can find here that apparently setup guix for wsl2 .... but I have no idea how to apply them.

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

5 participants