When i try to install something, i m getting below warning:
dpkg: error: reading package info file '/var/lib/dpkg/updates/0228': Is a directory
I searched some in the forum(for example-->dpkg: error: reading package info file /usr/local/var/lib/dpkg/status) and tried the steps which are given based on the issues that are similar to me. But nothing helped to solve this issue. Can anyone help me on this problem?
Note: Im using Ubuntu 16.04.5 LTS
Log Snippets:
ubuntu@ubuntu:/var/lib/dpkg/updates$ rmdir /0228
rmdir: failed to remove '/0228': No such file or directory
ubuntu@ubuntu:/var/lib/dpkg/updates$ sudo dpkg --configure -a
dpkg: error: reading package info file '/var/lib/dpkg/updates/0228': Is a directory
ubuntu@ubuntu:/var/lib/dpkg/updates$ sudo apt-get -f install
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
ubuntu@ubuntu:/var/lib/dpkg/updates$ sudo apt-get --fix-missing install
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
ubuntu@ubuntu:/var/lib/dpkg/updates$ sudo apt-get clean
ubuntu@ubuntu:/var/lib/dpkg/updates$ sudo apt-get update
Ign:1 cdrom://Ubuntu 16.04.5 LTS _Xenial Xerus_ - Release amd64 (20180731) xenial InRelease
Hit:2 cdrom://Ubuntu 16.04.5 LTS _Xenial Xerus_ - Release amd64 (20180731) xenial Release
Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:6 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:7 http://dl.google.com/linux/chrome/deb stable Release
Hit:8 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:9 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
** (appstreamcli:9579): CRITICAL **: Error while moving old database out of the way.
AppStream cache update failed.
Reading package lists... Done
ubuntu@ubuntu:/var/lib/dpkg/updates$ sudo apt-get upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
ubuntu@ubuntu:/var/lib/dpkg/updates$ sudo apt-get dist-upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
ubuntu@ubuntu:/var/lib/dpkg/updates$ sudo apt-get clean
ubuntu@ubuntu:/var/lib/dpkg/updates$ sudo apt-get autoremove
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
ubuntu@ubuntu:/var/lib/dpkg/updates$ sudo dpkg --configure -a
dpkg: error: reading package info file '/var/lib/dpkg/updates/0228': Is a directory