
Fix 'pip install' Permission Denied on Ubuntu
When you run pip install somepackage on Ubuntu and see a Permission denied

When you run pip install somepackage on Ubuntu and see a Permission denied

After upgrading pip, you might see errors like PermissionError: [Errno 13] Permission denie...

When Nginx returns a 502 Bad Gateway or logs upstream connection refused

You run git stash and see: fatal: Unable to create 'path/.git/index.lock...

When running git pull, you may see an error like:
fatal: Unable to create ...

You run git push and get: ! [rejected] main -> main (non-fast-forward)