Can't install packages on a repl

i am trying to install a package through the shell (python), I previously tried to install openSSH (by typing SSH in the shell and installing from there) openSSH gave me this error

nix error: building nix env: exit status 1
Output has been trimmed to the last 20 lines
evaluating file ‘/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/development/python-modules/recursive-pth-loader/default.nix’
copied source ‘/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/development/python-modules/recursive-pth-loader/sitecustomize.py’ → ‘/nix/store/plfxxq6siry726sjd7j98k8qrngvyjmc-sitecustomize.py’
instantiated ‘python-recursive-pth-loader-1.0’ → ‘/nix/store/8k0cva16d0rzlaycihnpw4s66arc13kk-python-recursive-pth-loader-1.0.drv’
instantiated ‘bluez-5.65.tar.xz’ → ‘/nix/store/k25pspn05p2nr8mm2d3n58df1nawg3iz-bluez-5.65.tar.xz.drv’
instantiated ‘bluez-5.65’ → ‘/nix/store/z422sbv40mjsxkxyb5dnwmsap5pcwslb-bluez-5.65.drv’
copied source ‘/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/development/interpreters/python/cpython/3.8/no-ldconfig.patch’ → ‘/nix/store/p4qar37zn2892m83b2lkp8fw5dsjkzxy-no-ldconfig.patch’
instantiated ‘tix-8.4.3-tcl8.5.patch’ → ‘/nix/store/apmvsb8wl8zq9xdrgjkph50i1r9pbjyh-tix-8.4.3-tcl8.5.patch.drv’
copied source ‘/nix/store/l6smcclpy9f3v562q2ljb9zjdswg3ma1-nixpkgs-22.11-src/pkgs/development/libraries/tix/duplicated-xlowerwindow.patch’ → ‘/nix/store/bfhd48m318nz4p2qbvnvcr927w8crgsy-duplicated-xlowerwindow.patch’
instantiated ‘tix-8.4.3-tcl8.6.patch’ → ‘/nix/store/mgz61lmanb13ljf7p9a6xkzai1dj0g1j-tix-8.4.3-tcl8.6.patch.drv’
instantiated ‘Tix8.4.3-src.tar.gz’ → ‘/nix/store/awhbahc13syn9yn6qz03gx8p966x6b9l-Tix8.4.3-src.tar.gz.drv’
instantiated ‘tix-8.4.3’ → ‘/nix/store/6cb2ak964xmf219002m13nv4i2c46nsf-tix-8.4.3.drv’
instantiated ‘python-setup-hook.sh’ → ‘/nix/store/zpl23rzbq6cdzk16snipxf3lzdvcw0c9-python-setup-hook.sh.drv’
instantiated ‘Python-3.8.15.tar.xz’ → ‘/nix/store/l4nm2983420y37skbs3kzsyd0vgx39xi-Python-3.8.15.tar.xz.drv’
instantiated ‘python3-3.8.15’ → ‘/nix/store/lvd8gbr56gc0narxjps2ljq7s7rfzvd0-python3-3.8.15.drv’
instantiated ‘python-setup-hook.sh’ → ‘/nix/store/90p9wgwi2mgdq4agmifmmacxq8ayvgzd-python-setup-hook.sh.drv’
instantiated ‘Python-3.9.15.tar.xz’ → ‘/nix/store/8wy79n6wwxav7j2hwq5q10s6wqrhnf1n-Python-3.9.15.tar.xz.drv’
instantiated ‘python3-3.9.15’ → ‘/nix/store/in6s7bfhjsap2fzpp5hjnh71kcgqk4km-python3-3.9.15.drv’
error: ‘openssh_with_kerberos’ has been renamed to/replaced by ‘openssh’
(use ‘–show-trace’ to show detailed location information)

and now this EXACT same error is shown when i try to istall something, how do i fix this (besides remaking the reply entirely)

This is caused by some parts of replit being outdated. In replit.nix, just do as the error says and change openssh_with_kerberos to openssh. (When you install a package from the shell it goes to replit.nix, but can sometimes be outdated, so it is better to just search on search.nixos.org and add it yourself).

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.