I installed Windows 10 in UEFI mode, and after that I installed Ubuntu 16.04 in legacy / BIOS mode.
Now the problem is I can't access my dual boot with GRUB. In both operating systems but I can open individually with UEFI mode and BIOS.
I've run the command
sudo apt-get install grub but no changes occurred.