-r (Recursive Deletion): With -r(or -R) option rm command performs a tree-walk and will delete all the files and sub-directories recursively of the parent directory. At each stage it deletes everything it finds. Normally, rm wouldn’t delete the directories but when used with this option, it will delete.
michel@michel-Predator-G9-793:~$ sudo apt remove flatpak --purge
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd
De statusinformatie wordt gelezen... Klaar
Pakket 'flatpak' is niet geïnstalleerd, en wordt dus niet verwijderd
0 opgewaardeerd, 0 nieuw geïnstalleerd, 0 te verwijderen en 3 niet opgewaardeerd. michel@michel-Predator-G9-793:~$ sudo rm -r ~/flatpak ~/.local/share/flatpak /usr/share/flatpak
rm: kan '/home/michel/flatpak' niet verwijderen: Bestand of map bestaat niet
rm: kan '/home/michel/.local/share/flatpak' niet verwijderen: Bestand of map bestaat niet
rm: kan '/usr/share/flatpak' niet verwijderen: Bestand of map bestaat niet
At the end it says file or folder does not exist, the files are still there in /var/lib/flatpak/runtime/
I am not sure if any of those are going to throw additional errors- but let's try installing them to find out: sudo apt install qt5-image-formats-plugins libminizip1 libxxhash0 qtbase-abi-5-11-3 libegl1-mesa libxcb-xtest0
Your solution gave me just gave me bunch of errors, after me trying I was quite annoyed if I do say so myself but then the terminal told me to run sudo apt --fix-broken install and it fixed everything. I now learned another thing in Linux.
My installation got broke as well, had to reinstall the zorin os as well. Not sure if it had to do with the steps i followed or with the ppa i used to install nvidia drivers.