I suggest downloading and using Electrum Appimage instead of manual from Python sources.
This is more simple to use and it should work fine for Ubuntu and Debian based Linux OS.
Appimage is similar like portable apps in wind0ws OS.
Appimage loads slow though. But yep it works still, I'm not sure how it syncs and is the Appimage going to grow in size?
It's only slow when you open since it needs to extract some files/binary. But it's size shouldn't be changed at all since Electrum (AppImage version) still store it's data on
~/.electrum.
The developers of electrum I think is aware that more Linux users are into Debianbase which means they need to release a deb package with its dependencies along with it. This has to be necessary already for the adoption.
FWIW, Electrum already exist on Debian repository for many years though. See
https://packages.debian.org/bookworm/python3-electrum.