sudo ln -sf /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.5.0 /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_train.so.8
That's means your file will be linked to 8.5.0. To solve this kinds of Problems, you should try to link every error message to the correct one.
"link" means link A to B .
After finish this job, you can continue to input "sudo ldconfig", and press your enter key on the keyboard, you'll find every it was solved.