/sbin/ldconfig.real: /usr/local/cuda/lib64/libcudnn.so.7 is not a symbolic link This may happen when you run sudo ldconfig after copying cuDNN files. After installing cuDNN, copying the extracted files to /usr/lib/cuda/lib64 and creating the symlinks, things may go wrong with the symlinks. So go to /usr/local/cuda/lib64/ and run ls -lha libcudnn* You should see two symlinks (bold teal) and one s..