Accidentaly removed Python3.6 and upon reboot I cannot access the GUI

A program was giving me trouble with multiple versions of python installed (python2.7 and python3.6) so I decided to remove python3.6 and most programs stopped working. So I decided to reboot, where I was greeted by the terminal. Looking online it recommended reinstalling ubuntu-desktop, so upon doing that and rebooting the system has been stuck on boot with the following prompts having appeared during the boot sequence:

[FAILED] Failed to start Kernel Modules.
[FAILED] Failed to start /etc/rc.local Compatibility.
See ‘systemctl status rc-local.service’ for details.

and with the last prompt being:

Started update UTMP about System Runlevel Changes.ting is enabled.

I was able to ssh into the system but I’m not sure what to do to recover from this now, any help is appreciated

Have no idea only one idea is reinstall the system image again.

I was able to extract the data I needed and reinstalled the system image again.
thanks