Is there any other way to rescue the system from complete re-installation in this hopeless case?
- Boot from Live USB
mkdir /mnt/recover(create a temp folder)
mount /dev/sdc1 /mnt/recover(mount my root fs to temp folder)
chroot /mnt/recover(to become root of my mounted root fs) but received an error that there is no bin/bash folder
- Copied the bin folder from Live USB to my
chroot /mnt/recoverfinally did work
sudo apt purge lightdm(to remove the faulty lightdm packages)
sudo apt install lightdm(to install lightdm anew, but received an error that repos couldn't be reached)
- Restarted the machine and booted to my system, without lightdm it booted in text mode. But I was finally able to log in normally!
- From here simple
sudo apt install lightdmdid install the display manager.
- Reboot, and my system is back!