UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x8b in position 1: invalid start byte

U

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.

About the author

Orlando

I'm a software developer by day, and writer by night. I also write code at night, and occasionally words by day. Really, the main takeaway is I enjoy typing on a keyboard a lot.

Add Comment

By Orlando

Orlando

I'm a software developer by day, and writer by night. I also write code at night, and occasionally words by day. Really, the main takeaway is I enjoy typing on a keyboard a lot.

Get in touch

You can find me on Github and Goodreads.

Fork me on GitHub

Recent Posts

Recent Comments

Archives

Categories