Strange error 'libjpeg-dev' is missing final newline

Hi

after a power failure shutown osmc crashed somehow.

Not recovering by itself.

Tried reinstall
error showing:

After this operation, 0 B of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = “de_DE.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
dpkg: unrecoverable fatal error, aborting:
files list file for package ‘libjpeg-dev’ is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

files list file for package ‘libjpeg-dev’ is missing final newline

Can not solve it

any hints?

Thanks T

As you’ve probably guessed, there has been a file system corruption caused by the power outage.You might be able to fix it if it’s only a few things, but generally you’ll end up backing up your settings and reinstalling.

  1. You can try to reset the locale by running sudo dpkg-reconfigure locales
  2. You can try to reinstall the libjpeg-dev package with sudo apt-get install --reinstall libjpeg-dev

Reinstall of what? Was it a full (image) reinstall or something else?