I found the solution here. Just paste the following line of code in the beginning and restart the runtime; you should be good to go:
!apt install --allow-change-held-packages libcudnn8=8.4.1.50-1+cuda11.6
1 Like