MuseScore
Also on WindowsWrites, plays back and prints sheet music.
Installs from Flathub.
Good news: MuseScore runs on Linux. It's the same app you use on Windows, and TuxPick installs it for you from Flathub.
Install MuseScore with TuxPickIt works on Ubuntu 22.04 and 24.04, and on systems built on them like Zorin OS and Pop!_OS.