Fix 'git pull failed index.lock file exists' Error - How to Fix Nginx Configuration Test Failed Error-Fix pip Externally Managed Environment Errors

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.