I can boot into ubuntu only after I enter the "advanced options for ubuntu" and go into recovery mode where i need to select use the "repair broken packeges" option. The problem is that I want to boot on windows 10 but it doesn't apper as an option on grub. I have tried using terminal commands but when I reboot the computer it just crashes in a purple screen and I can't do anything else than shutting down my laptop. After shutting it down, the grub us not updated and I have to do the steps all over again. I would very much appreciate if someone could help me. Thanks!
And btw I don't mind having to uninstall ubuntu in order to get back the option of windows 10, or having to uninstall grub.
boot-repair
is the easiest first option to try: https://askubuntu.com/questions/1104855/how-to-make-grub-menu-appear-instead-grub-minimal-bash-like-in-booting/1105737#1105737 – WinEunuuchs2Unix Jul 14 '19 at 15:07