Which OS is the most secure when I want to use a crypto-wallet and make transactions? I heard that Ubuntu, is it right?

No operating system is that secure. Use hardware wallets as everyone suggested
Every OS has flaws. Also don't let your near internet if you want security and don't want to lose :p