I am unable to use the apt-get command to install any packages on my pi.
I started trying to install python-pip using
sudo apt-get install python-pip
which results in the error
dpkg: unrecoverable fatal error, aborting: files list file for package 'libc6:armhf' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2)
I tried some other packages, but none worked. They all result in the same error.
After attempting several fixes from Google, I have been unable to resolve the issue.