Setting up ruby1.8 (1.8.7.352-2) ...^M
update-alternatives: error: alternative ri can't be slave of ruby: it is a master alternative.^M
dpkg: error processing ruby1.8 (--configure):^M
subprocess installed post-installation script returned error exit status 2^M
From the log file:
Setting up ruby1.8 (1.8.7.352-2) ...^M alternatives: error: alternative ri can't be slave of ruby: it is a master alternative.^M
update-
dpkg: error processing ruby1.8 (--configure):^M
subprocess installed post-installation script returned error exit status 2^M