cuDNN found but version can't be deduced

Hi,
I am not sure I am missing any step. It may be because of multiple installations.
I think a used the tar file method a while ago and debian file method recently.
How do I roll back installations so I can re-install? I on Ubuntu 18.04.

Thanks