On Ubuntu 16.04, I initially had the nvidia-375 driver installed. However, this was giving me some strange pixelated borders on windows, as in here.
So, I followed the instruction from the top answer, which involved deleting all nvidia drivers, and then installing the nvidia-367 driver. To do this, I first ran 'sudo apt-get remove --purge nvidia*'. After checking "Additional Drivers" in "Ubuntu Software Centre", I noticed that there were no longer nvidia drivers, as expected. Then, I ran 'sudo apt-get install nvidia-367'.
However, after this, the pixelated borders still remained. I checked "Additional Drivers" in "Ubuntu Software Centre", and there were now two drivers installed: nvidia-375 and nvidia-340. But I only asked my system to install nvidia-367...
So, why did it install these two additional drivers, and not the one I requested it to install? Neither of these two drivers seem to solve the problem with the pixelated borders.