Thanks for your reply.
My GPU is GTX 1660 Ti which is not supported by nvidia-384, nvidia-driver-390 that uses cuda 9.x as their runtime. I indeed tried installing the following drivers nvidia-driver-418, nvidia-driver-430, nvidia-driver-435 which all uses cuda 10.x, but the same issue emerged.