I have lately upgraded ubuntu from 14.04 to 16.04 but i am incurring worse problems now when it comes to dpkg configuration, following is the error that i am getting
dpkg: error processing package hwdata (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Errors were encountered while processing:
hwdata
N: Ignoring file '50unattended-upgrades.ucf-old' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Sub-process /usr/bin/dpkg returned an error code (1)
How could i possibly resolve this error, there are some forums that discussed this error but nothing that which was suggested earlier worked out for me kindly let me know what is the issue with dpkg configuration during the upgrade
/etc/apt/sources.list
and find any duplicate lines and remove them. And if this answer solved your problem, please click the grey checkmark to mark it as "accepted" to get you some reputation. – Kaz Wolfe Dec 20 '16 at 22:26