From a duplicate here is the failure when installing the package:
Setting up modemmanager (1.4.10-1) ...^M
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused^M
invoke-rc.d: unknown initscript, /etc/init.d/modemmanager not found.^M
dpkg: error processing package modemmanager (--configure):^M
subprocess installed post-installation script returned error exit status 100^M
From a duplicate here is the failure when installing the package:
Setting up modemmanager (1.4.10-1) ...^M upstart: Connection refused^M d/modemmanager not found.^M
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/
invoke-rc.d: unknown initscript, /etc/init.
dpkg: error processing package modemmanager (--configure):^M
subprocess installed post-installation script returned error exit status 100^M