When I was updating Ubuntu on my laptop today, both Synaptic and apt-get update returned the error message Sub-process gzip returned an error code (1). Since it took me a while to figure out what was going on, I thought I should share what I found and also the very simple solution.