Dependency failed for /boot/efi [duplicate]

Solution 1:

It looks like that /etc/fstab file is corrupted. So, try to fix it. If you have any other operating system installed or livecd of GNU/Linux, then boot it and mount the root filesystem of ubuntu. Now open /etc/fstab file using a text editor. As your EFI partition is not mounting, find the line which contains "/boot/efi" at the middle. Now remove "UUID=...." but do not remove whitespaces. Replace that with /dev/sda1. Note that it you have replaced sda1 with the partition id of your efi partition. If you have one SSD or HDD, it should start with sda. If it still not working, replace sda1 with sda2 then sda3... in this pattern.