I was installing a package from source and checkinstall produced
dpkg:error: reading package info file '/usr/local/var/lib/dpkg/status': Is a directory
The "status" directory was missing i went and made the directory but dont know how to make the info file. I may have some backups but not sure which one to use. From what i've been reading I think dpkg has been corrupted sort of.
phantom@AsusK53E:~$ tree -d /usr/local/var/lib/dpkg /usr/local/var/lib/dpkg ├── alternatives ├── info ├── methods │ ├── disk │ ├── floppy │ ├── ftp │ ├── mnt │ └── multicd ├── parts ├── status └── updates 11 directories
Copied the status and availalbe files from /var/lib/dpkg to /usr/local/var/lib/dpkg and the checkinstall completed without error.