I was recently updating my Pi when I accidentally interrupted the process by shutting down my notebook. I cannot login now and when I tried to reboot the Pi is going into an emergency mode. After entering this mode I tried sudo dpkg --configure -a
which showed me a page where it asked me to choose a new php.ini or keep the old one. When I chose to keep the old one, the program returned to the prompt and then wouldn't accept any commands.
I followed a thread where it asked the OP to remove the SD card and do a fsck
check on another linux machine, which I did. It removed a few bad clusters but this did not help. Also in the emergency mode when I key in systemctl default
it does not go back to a normal boot mode and instead shows hangup
on the prompt and then does not accept any further commands.
How do I resolve this?