Cannot 'nixos-rebuild': "...aws-crt-pp.so: file too short"

Hi all,

I just installed nixos 23.11.4080.fb0c047e30b6 (Tapir).

When I try run nixos-rebuild test, I would expect the new configuration.nix to be tested, but I got the following message:

nix-build: error while loading shared libraries: /nix/store/<omitted-hash>-aws-crt-cpp-0.20.3/lib/libaws-crt-cpp.so: file too short
building Nix...
nix-instantiate: error while loading shared libraries: /nix/store/<omitted-hash>-aws-crt-cpp-0.20.3/lib/libaws-crt-cpp.so: file too short
nix-instantiate: error while loading shared libraries: /nix/store/<omitted-hash>-aws-crt-cpp-0.20.3/lib/libaws-crt-cpp.so: file too short
nix-instantiate: error while loading shared libraries: /nix/store/<omitted-hash>-aws-crt-cpp-0.20.3/lib/libaws-crt-cpp.so: file too short
nix-store: error while loading shared libraries: /nix/store/<omitted-hash>-aws-crt-cpp-0.20.3/lib/libaws-crt-cpp.so: file too short
warning: don't know how to get latest Nix
nix-instantiate: error while loading shared libraries: /nix/store/<omitted-hash>-aws-crt-cpp-0.20.3/lib/libaws-crt-cpp.so: file too short
nix-build: error while loading shared libraries: /nix/store/<omitted-hash>-aws-crt-cpp-0.20.3/lib/libaws-crt-cpp.so: file too short

Similar error when I try nix-channel.

Could someone please help me in fixing it?

1 Like