Not sure what happened to me. I did upgrade at one point, but I have installed cuda and did it following the page exactly, but for ever reason nvcc wasn’t added to the path. Not sure if that is the desired effect?
I added code below to .bashrc and it works.
export PATH=$PATH:/usr/local/cuda-12.2/bin
Obviously probably want something else added long term so it updates when versions change?