SystemCrafters / wiki-site

The System Crafters Community Wiki
https://wiki.systemcrafters.net
30 stars 13 forks source link

error in guix wsl install #31

Open vigilancetech-com opened 3 years ago

vigilancetech-com commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

watsonjt commented 2 years ago

@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"
  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.