Linux is the best OS for Shopware 6. Thus, you can install it on Ubuntu. Note that Windows is not supported.