dpkg: unrecoverable fatal error, aborting: statoverride file contains empty line E: Sub-process /usr/bin/dpkg returned an error code (2) code example

Example: dpkg: unrecoverable fatal error, aborting: files list file for package 'libhdf5-dev' contains empty filename

sudo apt-get download fonts-tlwg-kinnari

sudo dpkg -c /var/cache/apt/archives/fonts-tlwg-kinnari_1%3a0.5.1-3_all.deb  | awk '{if ($6 == "./") { print "/."; } \
else if (substr($6, length($6), 1) == "/") \
{print substr($6, 2, length($6) - 2); } \
else { print substr($6, 2, length($6) - 1);}}' > /var/lib/dpkg/info/fonts-tlwg-kinnari.list

Tags:

Misc Example