I just did a apt-get upgrade today (20161018) and it looks like there is a issue with the raspberrypi-sys-mods post install script. I think there is a missing "fi" before line 45 in the raspberrypi-sys-mods.postinst script.
Here's the console output:
Setting up raspberrypi-sys-mods (20161018+1) ...
/var/lib/dpkg/info/raspberrypi-sys-mods.postinst: 49: /var/lib/dpkg/info/raspberrypi-sys-mods.postinst: Syntax error: ";;" unexpected (expecting "fi")
dpkg: error processing package raspberrypi-sys-mods (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
- Bob Anton