I suggest try to find out where it breaks… from the various replies and my case included, it breaks at the unzip. So you might need to run it line by line after unzip. But see for yourself where it breaks
The change in Jupiter config won’t work if you do it line by line. I used VIM to add the two amendments in Jupiter_notebook_Config.py explained here Paperspace setup help
when running line by line, NVIDIA amd64.deb didnt work earlier saying fetch keys first. So I ran the fetch keys statement followed by sudo dpkg amd64.deb statement.