Sub-process /usr/bin/dpkg returned an error code (1)

See some basic pre-installation advice here: Before you install