When I power on my Ubuntu PC, it doesn't load.Then I go to Ubuntu recovery mode and try the below command:
$ sudo service lightdm restart
--bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter No such file or directory
Whenever I apply sudo
command,it always shows the above error.
The below answer recommends me to boot from live disk and then chroot into the installed Ubuntu partition.I tried that, but still the same error message exists,
ubuntu@ubuntu:~$ sudo mount /dev/sda3 /mnt
ubuntu@ubuntu:~$ sudo chroot /mnt
bash: groups: command not found
root@ubuntu:/# sudo apt-get install --reinstall coreutils
bash: /usr/lib/command-not-found: /usr/bin/python3: bad interpreter: No such file or directory
root@ubuntu:/#