Ubuntu is a deb based system for all releases using the year.month format (eg. Ubuntu 24.04 LTS Desktop), but includes snap packages as a secondary choice.
Ubuntu Core releases are snap based products (eg. Ubuntu Core 24, a specialist version of Ubuntu 24.04 LTS Server), with these systems limited to snap packages only.
Flatpaks are not forbidden, but any install of a modern Ubuntu system does NOT include any flatpaks by default, and no flatpak command/utilities are included either.
Some no-longer supported flavors did include flatpak commands by default; but no flatpak packages were included; only the capacity to use flatpak
commands and add packages post-install yourself.
If you’re using a modern Ubuntu system with flatpaks, you’ll have added them yourself via package installs.
You’ll have added them, you can view the manifest file you can obtain when you download a Ubuntu ISO (eg. the file for the Lubuntu system I’m using currently would be found here) which can pretty quickly show the deb packages included on the ISO, plus the snap packages also found on ISO/media (at the bottom), a search will show no flatpak mention in that manifest file thus not found on ISO I used to install my system.
Yes flatpak packages are another way to install & run software; you are correct there, and myself I like more alternatives, even if I’ve almost never needed to use a flatpak.
[ I provided a link to a plucky manifest; a quick check and this install was made with a questing daily, so that technically isn’t what I installed; but the daily I used no longer exists online for me to provide; the plucky I provided far closer than the modern questing daily ]
If I wanted to explore why flatpaks were on this system (and they’re not), I’d probably start with grep flatpak /var/log/apt/history.log
and view any results (none here) then search command history for clues (or use flatpak list
if I wanted to know what I was looking for). My system is actually more involved, as I dirty install this on occasion (ie. non-destructive reinstall) which means some stuff from prior installs (which isn’t found in system logs as they start from last install) is still located on my disk. You need to be aware of your systems history for specific clues; myself I keep some of my history in text files I create on this system.