Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

apt-get dpkg error: files list file for package `*’ is missing final newline

Leer en espanol
apt-get dpkg error: files list file for package `*’ is missing final newline

Table of contents

bashdpkg: serious warning: files list file for package `libcurl3′ missing, assuming package has no f ===

Sometimes when trying to update a package or install it we may see the following error:

Bash
dpkg: serious warning: files list file for package `libcurl3′ missing, assuming package has no files currently installed.

dpkg: unrecoverable fatal error, aborting:

files list file for package `apache2.2-common’ is missing final newline

E: Sub-process /usr/bin/dpkg returned an error code (2)

To solve this error, using the package as an example apache2.2-common Which is what is giving me problems. The only thing we would have to do is delete the file or move it to another directory.

Bash
rokitoh@red-orbita :# rm -r /var/lib/dpkg/info/apache2.2-common.list
rokitoh@red-orbita :# mv /var/lib/dpkg/info/apache2.2-common.list /home/rokitoh

We install/update the package again.

Regards, rokitoh
:wq!

Comments