Cannot Sync on Ubuntu

Unfortunately, Anki is known to be poorly packaged on most Linux distributions, however I have made a small list of ways of you have to actually install the latest Anki version on any distribution here.
You should find at least one that suits you, although none is really satisfying because you circumnavigate your default package manager. If you really want to stick to a single way to install packages (which is reasonable), and if you use gnome-software to install your packages (the default in Ubuntu (Gnome or Unity), Xubuntu and Lubuntu), be aware that there are extensions to make it compatible with flatpak or snap, meaning you can install with these package managers through gnome-software (it’s not possible with nix as using an imperative way of installing packages is not the way it works).