Setting up CUDA/TensorRT manually on Jetson AGX Xavier

You probably want to uninstall the packages first if you are having issues with them.

Also, SDK Manager can install CUDA/cuDNN/TensorRT without reflashing. You can de-select the flashing step and just choose to install the CUDA/cuDNN/TensorRT components.