Cannot upgrade or install

I just installed 16.04 on the uSD card for my RPi3 and it seems to work well but I now get the following error every time I try to upgrade or try to install new software:

dpkg: unrecoverable fatal error, aborting:
files list file for package ‘fonts-tlwg-purisa-ttf’ is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

I have updated the sources-list and other recommendations and searched in vain here and on google for a fix for this to no avail. Please help.

Hi @wh7qq,

In some cases the list may be corrupted.
Have you tried manually reinstalling the affected package?

eg:
move the info dir containing corrupted data out, and create a new ‘info’ dir
cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info

try update.

Maybe it helps:

and

http://www.linuxquestions.org/questions/linux-newbie-8/dpkg-interrupted-errors-missing-file-newline-4175505993/

:slight_smile:

1 Like

@Swart—Thanks so much…I was about to give up on this . I ran the code you suggested and then did apt-get upgrade…it took forever and needed lots of hand holding for config file changes but in the final analysis, it did the trick. I am now able to update, upgrade and install.

1 Like

@wh7qq
It’s nothing! :slight_smile:

Now things are working out there? :relaxed: