Comment 3 for bug 1246384

Revision history for this message
Quinn Balazs (qbalazs) wrote : Re: subprocess installed post-removal script returned error exit status 2

This is caused by xserver-common-lts-raring not being correctly removed, and therefore ending up in a nonfunctional state. Editing
 "/var/usr/dpkg/info/xserver-common-lts-raring.postrm" using "sudo nano /var/usr/dpkg/info/xserver-common-lts-raring.postrm" and removing the "dpkg-divert" command entirely from the file. After doing that, you should be able to remove it using "sudo apt-get autoremove". Once it has been removed, you should be able to do everything as normal.

Quinn Balazs