RaspberryPi: apt-get error: dpkg: unrecoverable fatal error, aborting: files list file for package ‚dmsetup‘ is missing final newline
When trying to install redis-server on my RaspberryPi using
sudo apt-get install redis-server
I ran into the following error:
dpkg: unrecoverable fatal error, aborting: files list file for package 'dmsetup' is missing final newline
Which left me confused. Trying to re-install package dmsetup did not work (or help) at all, neither did apt-get update. Even apt-get upgrade failed with the identical error message. When searching for the message I came across this topic over at the Ubuntu forums, of which the solution in post #3 helped to solve my problem.
So, in my case, I did a
sudo nano /var/lib/dpkg/info/dmsetup.list
(replace ‚dmsetup‘ with the package name in your error message, if different). It contained a bunch of crazy characters, so I just removed them all.
Finally save the file and you’re good to go. Leave me a comment below if it helped or if you needed to take additional steps. Thank you!
loading...
Ähnliche Beiträge
- [Solved] PDF995: Document in queue, Word is crashing 10. August 2013
- [Magento] dbModel read resource does not implement Zend_Db_Adapter_Abstract 5. Dezember 2012
- Der Webgains Webservice – ein Beispiel in PHP 6. März 2010