1 Jun 2024 |
kumkee | In reply to @k900:0upti.me What exactly failed? I got the following errrs | 22:17:08 |
kumkee | In reply to @k900:0upti.me What exactly failed? * I got the following errors:
| 22:17:36 |
kumkee | * I got the following errors (there are more):
$ sudo nixos-rebuild switch --upgrade
unpacking channels...
building Nix...
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by nix-instantiate)
| 22:18:20 |
kumkee | * Hello. I'm trying to upgrade to NixOS 24.05, but failed. Do I have to wait for a new release from NixOS-WSL?
$ sudo vim /etc/nixos/configuration.nix
$ sudo nix-channel --add https://channels.nixos.org/nixos-24.05-small nixos
# liang @ nixos in ~ [10:16:20]
$ sudo nixos-rebuild switch --upgrade
unpacking channels...
building Nix...
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /nix/store/j7rp0y3ii1w3dlbflbxlv4g7hbaaz3bs-nix-2.18.2/lib/libnixexpr.so)
| 22:21:53 |
kumkee | * Hello. I'm trying to upgrade to NixOS 24.05, but failed. Do I have to wait for a new release from NixOS-WSL?
# Changing system.stateVersion to "24.05"
$ sudo vim /etc/nixos/configuration.nix
$ sudo nix-channel --add https://channels.nixos.org/nixos-24.05-small nixos
# liang @ nixos in ~ [10:16:20]
$ sudo nixos-rebuild switch --upgrade
unpacking channels...
building Nix...
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /nix/store/j7rp0y3ii1w3dlbflbxlv4g7hbaaz3bs-nix-2.18.2/lib/libnixexpr.so)
| 22:23:05 |
kumkee | * Hello. I'm trying to upgrade to NixOS 24.05, but failed. Do I have to wait for a new release from NixOS-WSL?
# Changing system.stateVersion to "24.05"
$ sudo vim /etc/nixos/configuration.nix
$ sudo nix-channel --add https://channels.nixos.org/nixos-24.05-small nixos
# liang @ nixos in ~ [10:16:20]
$ sudo nixos-rebuild switch --upgrade
unpacking channels...
building Nix...
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /nix/store/j7rp0y3ii1w3dlbflbxlv4g7hbaaz3bs-nix-2.18.2/lib/libnixexpr.so)
# there are more similar error messages
| 22:23:38 |
kumkee | * Hello. I'm trying to upgrade to NixOS 24.05, but failed. Do I have to wait for a new release from NixOS-WSL?
# Changing system.stateVersion to "24.05"
$ sudo vim /etc/nixos/configuration.nix
$ sudo nix-channel --add https://channels.nixos.org/nixos-24.05-small nixos
# liang @ nixos in ~ [10:16:20]
$ sudo nixos-rebuild switch --upgrade
unpacking channels...
building Nix...
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /nix/store/j7rp0y3ii1w3dlbflbxlv4g7hbaaz3bs-nix-2.18.2/lib/libnixexpr.so)
# ...
# there are more similar error messages
| 22:23:52 |
kumkee | * Hello. I'm trying to upgrade to NixOS 24.05, but failed. Do I have to wait for a new release from NixOS-WSL?
# Changing system.stateVersion to "24.05"
$ sudo vim /etc/nixos/configuration.nix
$ sudo nix-channel --add https://channels.nixos.org/nixos-24.05-small nixos
$ sudo nixos-rebuild switch --upgrade
unpacking channels...
building Nix...
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /nix/store/j7rp0y3ii1w3dlbflbxlv4g7hbaaz3bs-nix-2.18.2/lib/libnixexpr.so)
# ...
# there are more similar error messages
| 22:31:03 |
2 Jun 2024 |
K900 | In reply to @kumkee:matrix.org
I got the following errors (there are more):
$ sudo nixos-rebuild switch --upgrade
unpacking channels...
building Nix...
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by nix-instantiate)
That sounds like store corruption possibly | 04:50:13 |
K900 | Try nix-store --verify --repair --check-contents | 04:50:31 |
| tamar changed their profile picture. | 11:17:40 |
kumkee | In reply to @kumkee:matrix.org
Hello. I'm trying to upgrade to NixOS 24.05, but failed. Do I have to wait for a new release from NixOS-WSL?
# Changing system.stateVersion to "24.05"
$ sudo vim /etc/nixos/configuration.nix
$ sudo nix-channel --add https://channels.nixos.org/nixos-24.05-small nixos
$ sudo nixos-rebuild switch --upgrade
unpacking channels...
building Nix...
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by nix-instantiate)
nix-instantiate: /nix/store/fgr12566n8yfj7jb119chr5vhshvwpym-gcc-12.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /nix/store/j7rp0y3ii1w3dlbflbxlv4g7hbaaz3bs-nix-2.18.2/lib/libnixexpr.so)
# ...
# there are more similar error messages
This is solved by this GitHub comment. | 23:51:08 |
kumkee | In reply to @k900:0upti.me That sounds like store corruption possibly Thanks for the help. It turns out to be the problem with LD_LIBRARY_PATH. Commenting out the following solve the problem.
# sessionVariables.LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib"; | 23:52:50 |
3 Jun 2024 |
K900 | In reply to @kumkee:matrix.org Thanks for the help. It turns out to be the problem with LD_LIBRARY_PATH. Commenting out the following solve the problem.
# sessionVariables.LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib"; Yeah don't ever set LD_LIBRARY_PATH globally | 07:24:28 |
9 Jun 2024 |
| andreas_dev joined the room. | 11:39:33 |
andreas_dev | I still seem to have this issue https://github.com/nix-community/NixOS-WSL/issues/362 , even though it's resolved on main. I'm using Flakes and have my inputs for WSL use main, but I'm thinking it's because I used the 23.11 release tarball from 6 months ago to set up the distro and the fix for the name attribute on the user landed in main after that release.
Am I correct in that assumption?
I could provide my flake.nix, but I won't have access to that Windows machine until next week (and all my other machines are able to run NixOS) | 11:45:53 |
nzbr (they/it) | the copying happens in an activation script, so it should happen every time the distro boots or you switch to a new generation. Therefore, if you have a recent-enough version of the nixos-wsl modules the launchers should be copied from your user profile as well. You can check if they are present in /usr/share/applications . I don't know with what logic wsl will re-scan those directories though, or if there is any way of triggering a scan manually | 18:52:59 |
andreas_dev | In reply to @nzbr:nzbr.de the copying happens in an activation script, so it should happen every time the distro boots or you switch to a new generation. Therefore, if you have a recent-enough version of the nixos-wsl modules the launchers should be copied from your user profile as well. You can check if they are present in /usr/share/applications . I don't know with what logic wsl will re-scan those directories though, or if there is any way of triggering a scan manually Hm, thanks, I'll check those when I have access to the machine. I did try to create one of the shortcuts manually in the Win10 start-menu directory which worked, but got deleted whenever I booted up NixOS in WSL | 19:36:17 |
andreas_dev | These are the WSL inputs, I believe I've updated them last week, so should be new enough
```json
"nixos-wsl": {
"inputs": {
"flake-compat": "flake-compat",
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1716640344,
"narHash": "sha256-AZKQs+KrL70le0RZH8XqZJMc2SahU4LpfEJ2Vd5SWzM=",
"owner": "nix-community",
"repo": "NixOS-WSL",
"rev": "020cd466170204e448b24b246045599fce69ad91",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "main",
"repo": "NixOS-WSL",
"type": "github"
}
},
``` | 19:39:18 |
10 Jun 2024 |
98765abc | Anyone who got this?
usbipd attach --busid 4-2 --wsl
usbipd: info: Using WSL distribution 'nixos' to attach; the device will be available in all WSL 2 distributions.
usbipd: error: WSL kernel is not USBIP capable; update with 'wsl --update'.
| 06:01:57 |
98765abc | The kernel is compiled by myself and usbip is enbaled) 6.6.32-microsoft-standard-WSL2
zgrep ^CONFIG_USBIP_ /proc/config.gz
CONFIG_USBIP_CORE=y
CONFIG_USBIP_VHCI_HCD=y
CONFIG_USBIP_VHCI_HC_PORTS=8
CONFIG_USBIP_VHCI_NR_HCS=1
| 06:03:22 |
11 Jun 2024 |
| tamar changed their profile picture. | 19:22:16 |
12 Jun 2024 |
| Lorenz Leutgeb removed their display name Lorenz Leutgeb. | 00:31:21 |
| Lorenz Leutgeb set their display name to Lorenz Leutgeb. | 00:32:54 |
| @crimsonpanda:matrix.org left the room. | 08:38:52 |
| @alejandrosame:matrix.org left the room. | 13:07:17 |
Emma [it/its] | Download clipboard.png | 20:02:25 |
Emma [it/its] | have i hit a quite obscure WSL bug here? | 20:02:37 |
K900 | Does wsl --help work | 20:02:43 |
Emma [it/its] | yes | 20:02:59 |