There seems to be a configuration error in your /etc/environment file which you will need to resolve manually.
Setting up install-info (4.13a.dfsg.1-6ubuntu3) ...^M
/etc/environment: line 4: unexpected EOF while looking for matching `"'^M
dpkg: error processing install-info (--configure):^M
subprocess installed post-installation script returned error exit status 2^M
Errors were encountered while processing:^M
install-info^M
There seems to be a configuration error in your /etc/environment file which you will need to resolve manually.
Setting up install-info (4.13a. dfsg.1- 6ubuntu3) ...^M
/etc/environment: line 4: unexpected EOF while looking for matching `"'^M
dpkg: error processing install-info (--configure):^M
subprocess installed post-installation script returned error exit status 2^M
Errors were encountered while processing:^M
install-info^M