Skip to content

`GLIBC_2.33' not found #6665

Closed
Closed

Description

@Maternowsky

Im trying to install the nixos multiuser installation and I ran into this error while installing. I don't know how to get the correct version of GLIBC so i don't have this error.

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo /nix/store/6g4fla3vkcxihph282a0v3cd10709y7c-nix-2.9.1/bin/nix-store --load-db

to load data for the first time in to the Nix Database

/nix/store/6g4fla3vkcxihph282a0v3cd10709y7c-nix-2.9.1/bin/nix-store: /nix/store/nprym6lf8lzhp1irb42lb4vp8069l5rj-glibc-2.32-54/lib/libc.so.6: version `GLIBC_2.33' not found (required by /usr/local/lib/libsodium.so.23)

---- oh no! --------------------------------------------------------------------
Jeeze, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.

:(

If you have a problem with a specific package or NixOS,
you probably want to file an issue at https://github.com/NixOS/nixpkgs/issues.

Activity

  1. Kha commented on Jun 14, 2022

    @Kha
    Contributor

    You probably have a conflicting entry in LD_PRELOAD, LD_LIBRARY_PATH, /etc/ld.so.preload, ..., see e.g. #6563

  2. Maternowsky commented on Jun 16, 2022

    @Maternowsky
    Author

    How do I access LD_PRELOAD and LD_LIBRARY_PATH to sort it out? Im new to linux so I found out these are libraries that load certain things first but have no idea how to edit a conflicting entry.

  3. Maternowsky commented on Jun 18, 2022

    @Maternowsky
    Author

    does nixOS not work with newer versions of glibc? I have 2.34 running

  4. Kha commented on Jun 18, 2022

    @Kha
    Contributor

    How do I access LD_PRELOAD and LD_LIBRARY_PATH to sort it out? Im new to linux so I found out these are libraries that load certain things first but have no idea how to edit a conflicting entry.

    Ideally these should be empty. Does env list any of them, or does /etc/ld.so.preload (or maybe similar) exist?

  5. Maternowsky commented on Jun 18, 2022

    @Maternowsky
    Author
    [work@fedora ~]$ env
    SHELL=/bin/bash
    SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1684,unix/unix:/tmp/.ICE-unix/1684
    COLORTERM=truecolor
    HISTCONTROL=ignoredups
    XDG_MENU_PREFIX=gnome-
    PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
    HISTSIZE=1000
    HOSTNAME=fedora
    SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
    XMODIFIERS=@im=ibus
    DESKTOP_SESSION=gnome
    EDITOR=/usr/bin/nano
    PWD=/home/work
    LOGNAME=work
    XDG_SESSION_DESKTOP=gnome
    XDG_SESSION_TYPE=wayland
    SYSTEMD_EXEC_PID=1716
    XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.QL0NN1
    GDM_LANG=en_US.UTF-8
    HOME=/home/work
    USERNAME=work
    LANG=en_US.UTF-8
    LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:
    XDG_CURRENT_DESKTOP=GNOME
    VTE_VERSION=6602
    WAYLAND_DISPLAY=wayland-0
    GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/1c6ac190_7c07_4844_acc1_8870f51f301d
    MOZ_GMP_PATH=/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed
    GNOME_SETUP_DISPLAY=:1
    XDG_SESSION_CLASS=user
    TERM=xterm-256color
    LESSOPEN=||/usr/bin/lesspipe.sh %s
    USER=work
    GNOME_TERMINAL_SERVICE=:1.199
    DISPLAY=:0
    SHLVL=1
    QT_IM_MODULE=ibus
    CVS_RSH=ssh
    LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib:/usr/local/lib:
    XDG_RUNTIME_DIR=/run/user/1000
    DEBUGINFOD_URLS=https://debuginfod.fedoraproject.org/ 
    which_declare=declare -f
    XDG_DATA_DIRS=/home/work/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/
    PATH=/home/work/.cabal/bin:/home/work/.ghcup/bin:/home/work/.local/bin:/home/work/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
    GDMSESSION=gnome
    DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
    MAIL=/var/spool/mail/work
    BASH_FUNC_which%%=() {  ( alias;
     eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
    }
    _=/usr/bin/env
    OLDPWD=/home/work/Downloads
    [work@fedora ~]$ echo $LD_PRELOAD
    
    [work@fedora ~]$ echo $LD_LIBRARY_PATH
    /usr/local/lib:/usr/local/lib:/usr/local/lib:
    [work@fedora ~]$ 
    [work@fedora ~]$ /etc/ld.so.preload
    bash: /etc/ld.so.preload: No such file or directory
    [work@fedora ~]$ 
    

    i dont see it anywhere in env

  6. Kha commented on Jun 18, 2022

    @Kha
    Contributor

    Yes, that's NixOS/nixpkgs#327854. I don't know why you would have LD_LIBRARY_PATH set, but try unsetting it before restarting the installation. But you really want to get rid of it for good as the issue will likely repeat for any Nix application afterwards.

  7. Maternowsky commented on Jun 18, 2022

    @Maternowsky
    Author
    [work@fedora ~]$ unset LD_LIBRARY_PATH
    [work@fedora ~]$ echo $LD_LIBRARY_PATH
    
    [work@fedora ~]$ curl -L https://nixos.org/nix/install --insecure | sh
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    100  4053  100  4053    0     0   3473      0  0:00:01  0:00:01 --:--:-- 11352
    downloading Nix 2.9.1 binary tarball for x86_64-linux from 'https://releases.nixos.org/nix/nix-2.9.1/nix-2.9.1-x86_64-linux.tar.xz' to '/tmp/nix-binary-tarball-unpack.JL6ZvP34p0'...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 27.4M  100 27.4M    0     0  6448k      0  0:00:04  0:00:04 --:--:-- 6449k
    Note: a multi-user installation is possible. See https://nixos.org/manual/nix/stable/installation/installing-binary.html#multi-user-installation
    performing a single-user installation of Nix...
    copying Nix to /nix/store...
    
    installing 'nix-2.9.1'
    building '/nix/store/cpfxq2aax3j7bk61lxz2w633pd4jn4fr-user-environment.drv'...
    unpacking channels...
    modifying /home/work/.bash_profile...
    
    Installation finished!  To ensure that the necessary environment
    variables are set, either log in again, or type
    
      . /home/work/.nix-profile/etc/profile.d/nix.sh
    
    in your shell.
    

    Ok i think i got it to work this time unsetting it. Will the unset command get rid of it permanently? If not does that mean i need to unset it every time i run the nix shell? Thanks for your help so far I appreciate it.

  8. Maternowsky commented on Jun 18, 2022

    @Maternowsky
    Author
    [work@fedora ~]$ nix
    bash: nix: command not found...
    [work@fedora ~]$ nix-env --version
    bash: nix-env: command not found...
    [work@fedora ~]$ cd /nix
    [work@fedora nix]$ nix
    bash: nix: command not found...
    [work@fedora nix]$ nix-env --version
    bash: nix-env: command not found...
    [work@fedora nix]$ 
    

    I cant tell if nix is installed properly. I cant use any commands

  9. Maternowsky commented on Jun 18, 2022

    @Maternowsky
    Author

    I restarted my computer and everything seems like it is running I just need to learn how to use it. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions