Fail to install nb_conda

I was trying to create a new environemt on fedora38 with python 3.9 today and I couldn’t install nb_conda. I got a error says the jupyter-nbextension and jupyter-serverextension are not found (error message attached below). I saw a similar post online says using notebook version below 7.0 will solve this issue, so I did “pip uninstall notebook”, “pip install notebook==6.5”. After that nb_conda was successfully installed but when I open notebook from another environment, I can’t connet to the kernal to the new environment.

reparing transaction: done
Verifying transaction: done
Executing transaction: - /home/sss/.conda/envs/test/bin/.nb_conda-post-link.sh: line 2: /h
ome/sss/.conda/envs/test/bin/jupyter-nbextension: No such file or directory
/home/sss/.conda/envs/test/bin/.nb_conda-post-link.sh: line 3: /home/sss/.conda/envs/tes
t/bin/jupyter-serverextension: No such file or directory

done
ERROR conda.core.link:_execute(740): An error occurred while installing package ‘conda-forge
::nb_conda-2.2.1-unix_6’.
Rolling back transaction: done

LinkError: post-link script failed for package conda-forge::nb_conda-2.2.1-unix_6
location of failed script: /home/sss/.conda/envs/test/bin/.nb_conda-post-link.sh
==> script messages <==
/home/sss/.conda/envs/test/bin/.nb_conda-post-link.sh: line 2: /home/sss/.conda/envs/tes
t/bin/jupyter-nbextension: No such file or directory
/home/sss/.conda/envs/test/bin/.nb_conda-post-link.sh: line 3: /home/sss/.conda/envs/tes
t/bin/jupyter-serverextension: No such file or directory

==> script output <==
stdout:
stderr:
return code: 127

()