Unfortunately my little Raspberry Pi suffered a power failure mid-way running the ‘sudo apt-get dist-upgrade’ command. I now only boot into the GUI with a sad face
I still have SSH access and it looks like the root / file system is being mounted in read-only mode.
I tried re-running the command ‘sudo apt-get dist-upgrade’ but get the following output:
osmc@osmc:~$ sudo apt-get dist-upgrade
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
I then tried the suggested command ‘sudo dpkg --configure -a’ with the following output:
osmc@osmc:~$ sudo dpkg --configure -a
dpkg: error: unable to access dpkg status area: Read-only file system
Then tried remounting using:
sudo umount /
sudo umount /dev/mmcblk0p8
sudo mount -t ext4 -o rw,remount -force /dev/mmcblk0p8 /
But the system still complains about the file system being read-only.
I have tried looking in /var/log for error logs, but ‘messages’ doesn’t exist - is there somewhere else I can look?
Being new to Linux, I would be most grateful if anyone could give me a few pointers to help steer me in the right direction