How to Restart Remote Desktop Service from Command Line - Fix 'Could not get lock /var/lib/dpkg/lock' Error on Ubuntu/Debian-Troubleshooting RDP Certificate Mismatch Problems

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