Nvidia driver doubt

Hey guys , I just want to update my Nvidia driver ,to install PyTorch with cuda 9. I use Ubuntu 16.04 . Can you please direct me to some working-without-crashing steps.(I have crashed it a lot of times)

I have cuda 9 installed
My driver isn’t good enough to use it , yet .
So any suggestions would be appreciated.

Thank you .!