We need the latest version possible of MongoDB to support vectors that does not imply using Atlas.
sudo apt install curl -y mongodb-mongosh mongodb-org-database
Get the latest version of .deb from https://www.mongodb.com/try/download/community-edition/releases/archive
At the time of this blog it’s Ubuntu 24.04 x64 -> Server Package: mongodb-org-server_8.3.1_amd64.deb
Before installing it thought make sure the default distribution version works and starts with systemctl.
I has to add the following lines to the /etc/default/mongod
GLIBC_TUNABLES: glibc.cpu.hwcaps=-SHSTK
GLIBC_TUNABLES=glibc.pthread.rseq=1
This apparently has something to do with and issue in the 6.9+ kernels and Mongo.
Now install the .deb package that you downloaded and it will upgrade from 8.0.x to which ever later version you downloaded.
Restart mongo