Fix pip Externally Managed Environment Errors - Jenkins Docker Volume Permission Denied Fix-Git Fatal: Refusing to Merge Unrelated Histories – Workaround

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.