this is just from memory so it may be wrong, but can't twrp back up to an sdcard? From there you can probably unpack the files on your ubuntu machine to make sure they made it.
Is your device rooted already? If it is, then you can copy the entire disk to a Linux PC using dd. If it's not rooted then your only option is to copy your personal files and nothing else.
Universal Android debloater is a pretty safe tool to use if in recommended option. So I don't think there is a need for a backup. However since UAD uses adb to disable things if your os breaks, you can restore the last disabled packages via fastboot.
For backups, can't twrp backups be copied via USB? If your phone is famous enough you can find stock images on its site or on XDA developer website.
However, do note that QFIL tool is a very powerful tool and it's very easy to softbrick the device if you don't know what you are doing. Find a video for your device to be double sure.
Any kind of backup of apps and their data requires root.
If you don't have root, rooting will wipe all data.
TWRP used to be able to create an image of your system, but the practicality of that is long gone (not sure if it can still do it).
The most pragmatic approach is to root, install Swift Backup or Neo Backup. Have it backup your apps/Config to a local folder. Then have that folder synced to a home machine using a network sync tool like FolderSync, Syncthing, etc.
If you want an image to restore so you can revert, it can be done. I'm just not sure of the use-case anymore with the size of partitions.
Long ago I used an automatic imaging process weekly, back when partitions where much smaller. I never once used one of those image backups.