I'm getting this following error while I'm trying to install or uninstall any file. I have tried almost every solution I found on internet but still showing the same error.
Please do not say to install ubuntu again. I have lots of files which cannot be retrieved easily.
dpkg: unrecoverable fatal error, aborting: files list file for package 'avahi-autoipd' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2)
I'm also getting so many warning related to dpkg:
dpkg: warning: files list file for package 'linux-firmware' missing; assuming package has no files currently installed dpkg: warning: files list file for package
i have tried the following
sudo mv /var/lib/dpkg/info/linux* ./ mv: cannot stat '/var/lib/dpkg/info/linux*': No such file or directory
sudo apt-get update ---- works fine sudo apt-get upgrade ---- gives dpkg error(above)