If you've successfully installed Ubuntu, then you will need to manually edit the boot command in the grub screen in order to boot into the OS before you can update grub. Alternatively, you could boot into recovery mode and edit the grub config / update grub from there.