I'm working on setting up a different Ubuntu machine with a different Nvidia card. When I tried to use your install-gpu.sh on this new setup, it died on the first line of the script.
sudo apt-get update && apt-get --assume-yes upgrade
My install required that I sudo twice,
sudo apt-get update && sudo apt-get --assume-yes upgrade
In my setup, sudo only holds for the first command and I have to re-sudo the second, even if it is chained through a &&. For example:
sudo touch /iamsam && rm /iamsam
rm: remove write-protected regular empty file '/iamsam'? y
rm: cannot remove '/iamsam': Permission denied
but the command works if I put a sudo before both commands. sudo touch /iamsam && sudo rm /iamsam works, but it requires a second sudo.
Is this due to a difference in our setups .. do you really only have to sudo once?