Run
Code:
awk '!/^Start|^Commandl|^End|^Upgrade:|^Error:/ { gsub( /\([^()]*\)/ ,"" );gsub(/ ,/," ");sub(/^Install:/,""); print}' /var/log/apt/history.log
copy the last line of output (it may wrap)
Code:
sudo apt-get remove [packageshere]
replace [packageshere] with the last line
http://ubuntuforums.org/showthread.php?t=2133328&p=12593286#post12593286