NixOS on WSL | 344 Members | |
| https://github.com/nix-community/NixOS-WSL | 59 Servers |
| Sender | Message | Time |
|---|---|---|
| 15 Jun 2024 | ||
| updating the channel still fails the rebuild | 08:19:07 | |
| Do you have a system right now? | 08:19:51 | |
| Is it installed with flakes or channels? | 08:19:56 | |
| I will try a clean install of 23.11 again and attempt to update/upgrade | 08:20:09 | |
| You can do a clean install of 23.11 and then just follow https://nixos.org/manual/nixos/stable/#sec-upgrading | 08:20:44 | |
| Thanks, will do | 08:22:59 | |
| nix-channel --add https://channels.nixos.org/nixos-24.05 nixos | 08:25:29 | |
| nixos-rebuild switch --upgrade | 08:25:47 | |
| caused lots of errors... | 08:25:58 | |
| warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
building Nix...
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring | 08:26:57 | |
| warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
building the system configuration...
| 08:27:22 | |
You want --upgrade-all | 08:30:07 | |
| And you want to run all of that as root | 08:30:13 | |
| ran "sudo nix-channel --update" first and then upgrade again, but it failed with... | 08:31:12 | |
error: package clap v4.5.4 cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version is 1.73.0Either upgrade to rustc 1.74 or newer, or use cargo update -p clap@4.5.4 --precise ver where ver is the latest version of clap supporting rustc 1.73.0error: builder for '/nix/store/vz70pnvz94w0is3vrpkf6yg7kx2q8d9v-nixos-wsl-utils-1.0.0.drv' failed with exit code 101; last 10 log lines: > Finished cargoSetupPostPatchHook > Running phase: updateAutotoolsGnuConfigScriptsPhase > Running phase: configurePhase > Running phase: buildPhase > Executing cargoBuildHook > ++ env CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu HOST_CC=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc HOST_CXX=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/c++ cargo build -j 16 --target x86_64-unknown-linux-gnu --frozen --profile release > error: package clap v4.5.4 cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version is 1.73.0> Either upgrade to rustc 1.74 or newer, or use > cargo update -p clap@4.5.4 --precise ver > where ver is the latest version of clap supporting rustc 1.73.0For full logs, run 'nix-store -l /nix/store/vz70pnvz94w0is3vrpkf6yg7kx2q8d9v-nixos-wsl-utils-1.0.0.drv'. error: 1 dependencies of derivation '/nix/store/ykr6zrnfjbim073hk6sbc35s3hk7anvn-nixos-system-nixos-23.11.7609.5c2ec3a5c2ee.drv' failed to build | 08:31:19 | |
| Did you run the nix-channel --add command as root? | 08:31:46 | |
| You need to run that as root, otherwise it only affects your user's channels | 08:31:57 | |
| "sudo nixos-rebuild switch --upgrade-all"? | 08:31:57 | |
sudo nix-channel --add https://channels.nixos.org/nixos-24.05 nixos first | 08:32:27 | |
And then sudo nixos-rebuild switch --upgrade-all | 08:32:39 | |
| ok, that's not stated in https://nixos.org/manual/nixos/stable/#sec-upgrading | 08:32:40 | |
| thanks | 08:32:46 | |
| looks like that worked. maybe you can recommend updating the community page and manual | 08:34:48 | |
| I appreciate your help | 08:35:03 | |
| We should just update the bootstrap tarball to 24.05 | 08:37:07 | |
| Now it's officially out | 08:37:12 | |
| nzbr (they/it) can you do the thing? | 08:37:20 | |
| (I can't releng) | 08:37:29 | |
| yes, but community page still needs to be updated to 24.05 | 08:38:25 | |
| and manual doesn't show using sudo | 08:38:43 | |