For me the script was a rollercoaster. This was the first time out of 5 attempts i got it up and running.
None of the errors you are getting are caused by the script. They are python locale or apt errors. I have never been able to reproduce any of those. So, I have no idea why you are getting them. I asked if you changed the locale because I was going to tell you to not change it before running the script. And if you are changing many things before running the script, it makes it even harder to figure out the issue.