Thanks for your report.
The relevant error is --- Removing remote-tty ... Stopping remote-tty console manager:cd: 56: can't cd to /var/run/remote-tty/pid invoke-rc.d: initscript remote-tty, action "stop" failed. dpkg: error processing remote-tty (--remove): subprocess installed pre-removal script returned error exit status 2
Thanks for your report.
The relevant error is remote- tty/pid
---
Removing remote-tty ...
Stopping remote-tty console manager:cd: 56: can't cd to /var/run/
invoke-rc.d: initscript remote-tty, action "stop" failed.
dpkg: error processing remote-tty (--remove):
subprocess installed pre-removal script returned error exit status 2