I cannot upgrade my server

I also get this error at times

odk@hq-odk-test:~/Downloads/kobo-install$ sudo python3 run.py --update
fatal: not a git repository (or any of the parent directories): .git
An error has occurred