The nvidia-common script error is caused by: /usr/bin/python: error while loading shared libraries: /lib/i386-linux-gnu/libz.so.1: invalid ELF header
Other scripts also fail with that error in your log, so this issue is not specific to nvidia-common package. Reassigning to zlib1g.
I suggest you reinstall zlib1g to rule out the possibility of a corrupt file.
The nvidia-common script error is caused by: linux-gnu/ libz.so. 1: invalid ELF header
/usr/bin/python: error while loading shared libraries: /lib/i386-
Other scripts also fail with that error in your log, so this issue is not specific to nvidia-common package. Reassigning to zlib1g.
I suggest you reinstall zlib1g to rule out the possibility of a corrupt file.