First I installed Windows on just one partition (no others were created) following one partition windows installation, because I wanted to maximize the number of possible primary partitions.
When I installed ubuntu I got:
grub-efi-amd64-signed failed installation /target/
So grub failed to install.
On all installations I used lagacy support enabled on UEFI mode on a HP laptop.
How to solve it?