Raspbian 10 and SQLite 3.27.2

Hello,
I am running Raspbian 10 and I upgraded to Home Assistant Core 2022.6.2.

I get:

ERROR (Recorder) [homeassistant.components.recorder.util] Version 3.27.2 of SQLite is not supported; minimum supported version is 3.31.0. Starting with Home Assistant 2022.6 this prevents the recorder from starting. Please upgrade your database software

I tried to use:

sudo apt-get update
sudo apt-get -y upgrade

but I get no SQLite updates.

What can I do?

Thanks!