Ubuntu boot repair

If you have a dual boot laptop like me and every time you install ubuntu or windows anew you will need to repair boot or update boot.
To do this in a clean way start an ubuntu live session by booting from usb, install boot repair .
When you run it will repair grub. After that boot into your ubuntu and run sudo update-grub

Note: update grub does not work if you are in a live session, your ubuntu partition needs to be mounted.