I made a stupid mistake of complete deleting python 3.10 from my laptop with Ubuntu 20.04, when I tried to update it to 22.04 version. After doing this, I can only access tty1 mode (i.e. a black screen with a very few available options).
I tried to reinstall ubuntu-desktop as it was recommended, but unfortunately this didn't work and raised an error - kind of cannot find it or smth like that.
I saw posts with similar problems, like this - Cannot connect to the Internet after removing python3 from Xubuntu, but not pretty sure how to manually install missing dependencies to get access to the internet via tty1 from USB.
Could you, please, help me to fix this error and assist with instalation of required packages in this tty1 mode.