Trouble upgrading NixOS to 23.11

Hi everyone. I noticed there’s a new version of NixOS (23.11) and I’m still on 23.05. Now, I ran the nix-channel --list command to see on which version I was (showed 23.05) and I then added the channel 23.11 with the command: nix-channel --add nixos-23.11 release nixos-23.11.4195.809cca784b9f nixos

When I check again on which channel I’m on, it says I’m on 23.11.

So far so good. Then I ran the command sudo nix-collect-garbage -d in the console and it deleted a bunch of stuff. When I reboot, I can still see all the older generations of NixOS, nothing was deleted. No errors generated. I didn’t try logging into one of them to see if they were working.

I also did a sudo nixos-rebuild switch --upgrade but ended with errors.

When rebooting the computer, I can see no new generations was created. Here is a photo of what I’m currently running on.

Thank you.

Yes, but you didn’t sudo nix-channel --update, so the channel wasn’t actually updated; you just changed the URL it’s downloaded from.

Not quite. You didn’t do a nixos-rebuild, so the boot loader information wasn’t updated. The nix-collect-garbage command does not update your boot loader. After deleting old generations, you’ll have broken boot menu entries pointing to the deleted generations until you nixos-rebuild again.

Now you’ve finally caused the new channel to be downloaded with the --upgrade flag (which essentially just automatically runs nix-channel --update), and if this had completed, everything would be good. But you encountered an error saying that hip has been removed and you have to edit your configuration.nix to use rocmPackages.clr before you can update.

1 Like

Sorry. Can you elaborate on that (the rocmPackages.clr part)? I’m not as advanced and knowledgeable as you. For the nix-channel --update command, I ran it after I made this post and didn’t update it. Sorry.

I’d have to see your configuration.nix. Somewhere, you’re using a package, apparently called hip, which has been removed. The error message suggests that you’re supposed to use rocmPackages.clr instead now. That’s all I know.

1 Like

So just:
systemd.tmpfiles.rules = [ “L+ /opt/rocmPackages.clr” ];

Thank you @ElvishJerricco.

After rebuilding the OS, it’s not the proper command to replace hip.

I added rocmPackages.clr in the list of packages I have like I did for any other software since it’s what’s written in the package search of NixOS. Minecraft Java doesn’t work. This is from the log.

Prism Launcher version: 8.0 (nixpkgs)

Launched instance in online mode

authserver.mojang.com resolves to:
[3.162.3.54, 3.162.3.13, 3.162.3.92, 3.162.3.93]

session.minecraft.net resolves to:
[13.107.213.35, 13.107.246.35, 2620:1ec:bdf::35, 2620:1ec:46::35]

textures.minecraft.net resolves to:
[13.107.213.35, 13.107.246.35, 2620:1ec:46::35, 2620:1ec:bdf::35]

api.mojang.com resolves to:
[13.107.246.35, 13.107.213.35, 2620:1ec:bdf::35, 2620:1ec:46::35]

Minecraft folder is:
/home/martin/.local/share/PrismLauncher/instances/Minecraft 1.20.1/.minecraft

Java path is:
/nix/store/qjcx43a8fcgybb2bnxc4vcprb42zf6hx-openjdk-17.0.7+7/bin/java

Java is version 17.0.7, using 64 (amd64) architecture, from N/A.

AMD Ryzen 7 7700 8-Core Processor
Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] (rev c3)

Subsystem: Sapphire Technology Limited Pulse Radeon RX 6800

Kernel driver in use: amdgpu

OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.9

Main Class:
net.fabricmc.loader.impl.launch.knot.KnotClient

Native path:
/home/martin/.local/share/PrismLauncher/instances/Minecraft 1.20.1/natives

Traits:
traits FirstThreadOnMacOS
traits XR:Initial

Libraries:
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-glfw-natives-linux/3.3.2/lwjgl-glfw-natives-linux-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-glfw/3.3.2/lwjgl-glfw-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-jemalloc-natives-linux/3.3.2/lwjgl-jemalloc-natives-linux-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-jemalloc/3.3.2/lwjgl-jemalloc-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-natives-linux/3.3.2/lwjgl-natives-linux-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-openal-natives-linux/3.3.2/lwjgl-openal-natives-linux-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-openal/3.3.2/lwjgl-openal-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-opengl-natives-linux/3.3.2/lwjgl-opengl-natives-linux-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-opengl/3.3.2/lwjgl-opengl-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-stb-natives-linux/3.3.2/lwjgl-stb-natives-linux-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-stb/3.3.2/lwjgl-stb-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-tinyfd-natives-linux/3.3.2/lwjgl-tinyfd-natives-linux-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl-tinyfd/3.3.2/lwjgl-tinyfd-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/org/lwjgl/lwjgl/3.3.2/lwjgl-3.3.2.jar
/home/martin/.local/share/PrismLauncher/libraries/com/github/oshi/oshi-core/6.4.5/oshi-core-6.4.5.jar
/home/martin/.local/share/PrismLauncher/libraries/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar
/home/martin/.local/share/PrismLauncher/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
/home/martin/.local/share/PrismLauncher/libraries/com/google/guava/guava/32.1.2-jre/guava-32.1.2-jre.jar
/home/martin/.local/share/PrismLauncher/libraries/com/ibm/icu/icu4j/73.2/icu4j-73.2.jar
/home/martin/.local/share/PrismLauncher/libraries/com/mojang/authlib/6.0.52/authlib-6.0.52.jar
/home/martin/.local/share/PrismLauncher/libraries/com/mojang/blocklist/1.0.10/blocklist-1.0.10.jar
/home/martin/.local/share/PrismLauncher/libraries/com/mojang/brigadier/1.2.9/brigadier-1.2.9.jar
/home/martin/.local/share/PrismLauncher/libraries/com/mojang/datafixerupper/6.0.8/datafixerupper-6.0.8.jar
/home/martin/.local/share/PrismLauncher/libraries/com/mojang/logging/1.1.1/logging-1.1.1.jar
/home/martin/.local/share/PrismLauncher/libraries/com/mojang/patchy/2.2.10/patchy-2.2.10.jar
/home/martin/.local/share/PrismLauncher/libraries/com/mojang/text2speech/1.17.9/text2speech-1.17.9.jar
/home/martin/.local/share/PrismLauncher/libraries/commons-codec/commons-codec/1.16.0/commons-codec-1.16.0.jar
/home/martin/.local/share/PrismLauncher/libraries/commons-io/commons-io/2.13.0/commons-io-2.13.0.jar
/home/martin/.local/share/PrismLauncher/libraries/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
/home/martin/.local/share/PrismLauncher/libraries/io/netty/netty-buffer/4.1.97.Final/netty-buffer-4.1.97.Final.jar
/home/martin/.local/share/PrismLauncher/libraries/io/netty/netty-codec/4.1.97.Final/netty-codec-4.1.97.Final.jar
/home/martin/.local/share/PrismLauncher/libraries/io/netty/netty-common/4.1.97.Final/netty-common-4.1.97.Final.jar
/home/martin/.local/share/PrismLauncher/libraries/io/netty/netty-handler/4.1.97.Final/netty-handler-4.1.97.Final.jar
/home/martin/.local/share/PrismLauncher/libraries/io/netty/netty-resolver/4.1.97.Final/netty-resolver-4.1.97.Final.jar
/home/martin/.local/share/PrismLauncher/libraries/io/netty/netty-transport-classes-epoll/4.1.97.Final/netty-transport-classes-epoll-4.1.97.Final.jar
/home/martin/.local/share/PrismLauncher/libraries/io/netty/netty-transport-native-epoll/4.1.97.Final/netty-transport-native-epoll-4.1.97.Final-linux-aarch_64.jar
/home/martin/.local/share/PrismLauncher/libraries/io/netty/netty-transport-native-epoll/4.1.97.Final/netty-transport-native-epoll-4.1.97.Final-linux-x86_64.jar
/home/martin/.local/share/PrismLauncher/libraries/io/netty/netty-transport-native-unix-common/4.1.97.Final/netty-transport-native-unix-common-4.1.97.Final.jar
/home/martin/.local/share/PrismLauncher/libraries/io/netty/netty-transport/4.1.97.Final/netty-transport-4.1.97.Final.jar
/home/martin/.local/share/PrismLauncher/libraries/it/unimi/dsi/fastutil/8.5.12/fastutil-8.5.12.jar
/home/martin/.local/share/PrismLauncher/libraries/net/java/dev/jna/jna-platform/5.13.0/jna-platform-5.13.0.jar
/home/martin/.local/share/PrismLauncher/libraries/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar
/home/martin/.local/share/PrismLauncher/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar
/home/martin/.local/share/PrismLauncher/libraries/org/apache/commons/commons-compress/1.22/commons-compress-1.22.jar
/home/martin/.local/share/PrismLauncher/libraries/org/apache/commons/commons-lang3/3.13.0/commons-lang3-3.13.0.jar
/home/martin/.local/share/PrismLauncher/libraries/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
/home/martin/.local/share/PrismLauncher/libraries/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar
/home/martin/.local/share/PrismLauncher/libraries/org/apache/logging/log4j/log4j-api/2.19.0/log4j-api-2.19.0.jar
/home/martin/.local/share/PrismLauncher/libraries/org/apache/logging/log4j/log4j-core/2.19.0/log4j-core-2.19.0.jar
/home/martin/.local/share/PrismLauncher/libraries/org/apache/logging/log4j/log4j-slf4j2-impl/2.19.0/log4j-slf4j2-impl-2.19.0.jar
/home/martin/.local/share/PrismLauncher/libraries/org/joml/joml/1.10.5/joml-1.10.5.jar
/home/martin/.local/share/PrismLauncher/libraries/org/slf4j/slf4j-api/2.0.7/slf4j-api-2.0.7.jar
/home/martin/.local/share/PrismLauncher/libraries/net/fabricmc/intermediary/1.20.4/intermediary-1.20.4.jar
/home/martin/.local/share/PrismLauncher/libraries/org/ow2/asm/asm/9.6/asm-9.6.jar
/home/martin/.local/share/PrismLauncher/libraries/org/ow2/asm/asm-analysis/9.6/asm-analysis-9.6.jar
/home/martin/.local/share/PrismLauncher/libraries/org/ow2/asm/asm-commons/9.6/asm-commons-9.6.jar
/home/martin/.local/share/PrismLauncher/libraries/org/ow2/asm/asm-tree/9.6/asm-tree-9.6.jar
/home/martin/.local/share/PrismLauncher/libraries/org/ow2/asm/asm-util/9.6/asm-util-9.6.jar
/home/martin/.local/share/PrismLauncher/libraries/net/fabricmc/sponge-mixin/0.12.5+mixin.0.8.5/sponge-mixin-0.12.5+mixin.0.8.5.jar
/home/martin/.local/share/PrismLauncher/libraries/net/fabricmc/fabric-loader/0.15.3/fabric-loader-0.15.3.jar
/home/martin/.local/share/PrismLauncher/libraries/com/mojang/minecraft/1.20.4/minecraft-1.20.4-client.jar

Native libraries:

Mods:
[✘] connectedglass-1.1.10-fabric-mc1.20.4.jar (disabled)
[:heavy_check_mark:] fabric-api-0.94.1+1.20.4
[✘] fusion-1.1.0c-fabric-mc1.20.2.jar (disabled)
[✘] indium-1.0.28+mc1.20.4.jar (disabled)
[:heavy_check_mark:] iris-mc1.20.4-1.6.14
[:heavy_check_mark:] sodium-fabric-mc1.20.3-0.5.5
[✘] supermartijn642corelib-1.1.16a-fabric-mc1.20.3.jar (disabled)

Params:
–username --version 1.20.4 --gameDir /home/martin/.local/share/PrismLauncher/instances/Minecraft 1.20.1/.minecraft --assetsDir /home/martin/.local/share/PrismLauncher/assets --assetIndex 12 --uuid --accessToken --userType --versionType release

Window size: max (if available)

Launcher: standard

Java Arguments:
[-Xms512m, -Xmx4096m, -Duser.language=en]

Minecraft process ID: 16322

/nix/store/qjcx43a8fcgybb2bnxc4vcprb42zf6hx-openjdk-17.0.7+7/bin/java: /nix/store/whypqfa83z4bsn43n4byvmw80n4mg3r8-glibc-2.37-45/lib/libc.so.6: version GLIBC_2.38' not found (required by /nix/store/1z9fhkxbyc1nhir2wsini4ngyd9krqdy-libX11-1.8.7/lib/libX11.so.6) /nix/store/qjcx43a8fcgybb2bnxc4vcprb42zf6hx-openjdk-17.0.7+7/bin/java: /nix/store/whypqfa83z4bsn43n4byvmw80n4mg3r8-glibc-2.37-45/lib/libc.so.6: version GLIBC_2.38’ not found (required by /nix/store/fk1vd41g33xbr7s41gjsj1lw5vkqm6c9-libxcb-1.16/lib/libxcb.so.1)
/nix/store/qjcx43a8fcgybb2bnxc4vcprb42zf6hx-openjdk-17.0.7+7/bin/java: /nix/store/whypqfa83z4bsn43n4byvmw80n4mg3r8-glibc-2.37-45/lib/libc.so.6: version GLIBC_2.38' not found (required by /nix/store/pif5zrk918q95gpq6bf05h0h583f65kq-libXcursor-1.2.1/lib/libXcursor.so.1) /nix/store/qjcx43a8fcgybb2bnxc4vcprb42zf6hx-openjdk-17.0.7+7/bin/java: /nix/store/whypqfa83z4bsn43n4byvmw80n4mg3r8-glibc-2.37-45/lib/libc.so.6: version GLIBC_2.38’ not found (required by /nix/store/b1bljpwd1i0jiq5yf12sj9fqf6x9pcw3-libGL-1.7.0/lib/libEGL.so.1)
/nix/store/qjcx43a8fcgybb2bnxc4vcprb42zf6hx-openjdk-17.0.7+7/bin/java: /nix/store/whypqfa83z4bsn43n4byvmw80n4mg3r8-glibc-2.37-45/lib/libc.so.6: version GLIBC_2.38' not found (required by /nix/store/9svs0h9vilivn8rmsh997mhkv682g20l-systemd-minimal-libs-254.6/lib/libsystemd.so.0) /nix/store/qjcx43a8fcgybb2bnxc4vcprb42zf6hx-openjdk-17.0.7+7/bin/java: /nix/store/whypqfa83z4bsn43n4byvmw80n4mg3r8-glibc-2.37-45/lib/libc.so.6: version GLIBC_2.38’ not found (required by /nix/store/b1bljpwd1i0jiq5yf12sj9fqf6x9pcw3-libGL-1.7.0/lib/libGLdispatch.so.0)
/nix/store/qjcx43a8fcgybb2bnxc4vcprb42zf6hx-openjdk-17.0.7+7/bin/java: /nix/store/whypqfa83z4bsn43n4byvmw80n4mg3r8-glibc-2.37-45/lib/libc.so.6: version GLIBC_2.38' not found (required by /nix/store/b1bljpwd1i0jiq5yf12sj9fqf6x9pcw3-libGL-1.7.0/lib/libGLX.so.0) /nix/store/qjcx43a8fcgybb2bnxc4vcprb42zf6hx-openjdk-17.0.7+7/bin/java: /nix/store/whypqfa83z4bsn43n4byvmw80n4mg3r8-glibc-2.37-45/lib/libc.so.6: version GLIBC_2.38’ not found (required by /nix/store/vs59jyccp7lzshnsqarpgxmmlaw3kgpf-libcap-2.69-lib/lib/libcap.so.2)
Process exited with code 1.
Clipboard copy at: 06 Feb 2024 20:26:09 -0500

Ok, it works now. I went into the settings of Prismlauncher, checked the Java Installation setting and hit auto detect. It’s fixed.