Preferences error, can't open it

Hello, I am a Anki user on linux and I have an issue, I can’t sync and I recieve this message:
Your Anki client does not support the new timezone handling yet. Please ensure your Anki is up to date.
So I looked it up and I found that I have to change a feature in preferences, but preferences won’t open doesn’t work either and I receive this message:
Anki 2.1.15 (442df9d6) Python 3.10.12 Qt 5.15.3 PyQt 5.15.6
Platform: Linux
Flags: frz=False ao=False sv=1

Caught exception:
File “/usr/share/anki/aqt/main.py”, line 882, in onPrefs
aqt.dialogs.open(“Preferences”, self)
File “/usr/share/anki/aqt/init.py”, line 82, in open
instance = creator(*args)
File “/usr/share/anki/aqt/preferences.py”, line 25, in init
self.setupCollection()
File “/usr/share/anki/aqt/preferences.py”, line 80, in setupCollection
f.lrnCutoff.setValue(qc[‘collapseTime’]/60.0)
<class ‘TypeError’>: setValue(self, int): argument 1 has unexpected type ‘float’

I then checked Database but it didn’t do anything, also most of the advice I could find told me that I should delete anki and get the latest version which I did and I am now on the version: 24.04.1 Qt6. But this didn’t work either. Also I saw that I should go to the preferences.py file to change some code lines but this file could not be found. I have been looking for three hours so I really need help please, thank you for your time and your advice!

The preference error is a known issue with this outdated version (likely distributed through package managers), that does not occur in recent versions. Also the timeline problem should be fixed in newer versions.

Please describe your problem with the most recent version (what does not work?).

2 Likes