How to Fix Remote Desktop Authentication Errors - How to Fix Windows Terminal Port Already Allocated Error-Fix 'Could not get lock /var/lib/dpkg/lock' Error on Ubuntu/Debian

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