Every once in a while I see users having issues to update due to errors like this:
E:Type 'ain' is not known on line 1 in source list /etc/apt/sources.list.d/some-ppa.list'
with varying types/line numbers/source list files (often after removing a PPA).
How can such an error be fixed?