I was running ubuntu 16.04 and windows 7 on a dual boot system. Grub was properly showing entries for both OSes. Due to some issue I had to re-install windows, boot loader of which took over grub on MBR location. I reinstalled grub on MBR following below link: http://www.av8n.com/computer/htm/grub-reinstall.htm but got that 'Minimal Bash line editing...' grub screen after reboot. It seemed like grub was unable to locate any OS installation. I further followed Recovering GRUB after installing Windows 7? tutorial. But 'sudo update-grub' gives this error: libsudo_util.so.0: cannot open shared object file: No such file or directory
also tried 'boot repair' tool but it gives this error: "enable a repository containing the [linux] packages in the software sources of ............16.04LTS(sda7)"
During original installation, I first installed Win7, and then ubuntu16.04 for which I created only 3 partitions: /, /home and swap area. Then for grub, gave location /sda. /dev/sda7 is my "/" directory and /dev/sda5 is my "/home". Later I also installed another kernel (for learning purpose) in my /home directory (as 'Linux' is being shown as 'type' for both /home and / in below image)
Please help. thanks in advance.