I wanted to make VirtualBox kernel module working so
Upgraded kernel from 6.6.7 -> 6.9.9.

Two libraries were missing ( libelf1t64 and libssl3t64 ) so
I begun to upgrade the ubuntu from 23.10 to 24.02 ModuleNotFoundError: No module named 'apt_pkg'

apt now is broken and I can’t add a PPA to install a python3.8 or build from source as I can’t resolve dependencies in package manager.

only python3.11 and python3.12 are installed