Anki runing on Linux Mint

I’m getting this error when I try to open the preferences menu

An error has occurred. Please go to Tools > Check Database to see if this fixes the problem.
If the problem persists, please report it on our help page. Copy and paste the information below into your report.
Anki 2.1.15 (442df9d6) Python 3.10.4 Qt 5.15.3 PyQt 5.15.6
Platform: Linux
Flags: frz=False ao=False sv=2

Caught exception:
File “/usr/share/anki/aqt/”, line 882, in onPrefs“Preferences”, self)
File “/usr/share/anki/aqt/”, line 82, in open
instance = creator(*args)
File “/usr/share/anki/aqt/”, line 25, in init
File “/usr/share/anki/aqt/”, line 80, in setupCollection
<class ‘TypeError’>: setValue(self, int): argument 1 has unexpected type ‘float’

Versão 2.1.15 (442df9d6)
Qt 5.15.3 PyQt 5.15.6

Your version of Anki is outdated. Please see this post.