Unable to upgrade in ubuntu

I got the answer from http://rickfoosusa.blogspot.com/2012/04/howto-ubuntu-unknown-user-in.html

When I typed

$ grep 'smmsp' /var/lib/dpkg/statoverride

I got this

root smmsp 2755 /usr/lib/sm.bin/sendmail

So I removed it using sed as follows

$ sudo sed -i '/smmsp/d' /var/lib/dpkg/statoverride

Now $ sudo apt-get upgrade works perfectly.