When upgrading one of my development servers from Ubuntu 14.04 LTS to 16.04 LTS, I encountered a fun little error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte.
Googling gave me an AskUbuntu post that suggested I look in /etc/apt/sources.list.d/ for a bad character. I decided I’d just
rm * the contents of the directory and save myself time. That didn’t do it. Then I remembered to actually check the upgrade log in /var/log/dist-upgrade and found a mention of Wowza. I simply uninstalled Wowza, and the upgrade ran correctly.
I recommend a simple
apt-get remove wowza and tap that
tab button to get rid of your Wowza (keeping the configs) and reinstall after your upgrade is complete.