dpkg: error: unable to access dpkg status area: Read-only file system

Solution 1:

Try using:

sudo mount -o remount /dev/sda1

If sda1 is your hard disk.

Solution 2:

Try deleting the lock file i.e

/var/lib/dpkg/lock

and then run

dpkg --reconfigure -a

This error;

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 

causes when software upgrade is interrupted.

You can also follow this link!

Solution 3:

try this

sudo mount / -o remount,rw 

then run:

sudo dpkg --configure -a