If you get this error in Debian/Ubuntu on apt-get install/upgrade etc:
dpkg: unrecoverable fatal error, aborting: syntax error: unknown user 'user' in statoverride file
you can solve deleting ‘user’ in the statoverride file:
~ $ sed -i '/user/d' /var/lib/dpkg/statoverride
Now apt-get command should work fine.