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
As we don’t have much to work with (error messages from apt/dpkg or anything), at first, try:
apt clean apt -f install
and post results.
I have rebooted into recovery mode and after connecting to a network it seems that with some warnings, it begun upgrading.
There was a serious security vulnerability previous to Python 3.11 if I recall correctly. You can use pyenv to manage Python versions though: https://github.com/pyenv/pyenv