Hello i was installing wine and accidentally installed the wrong one focal and lunar versions so I tried uninstalling through a variety of ways and found myself uninstalling critical packages and dependencies. I mistakingly used sudo apt autoremove and it removed alot of packages then i restarted my pc and now the desktop is gone and I can only boot into the empty black screen tty1 screen asking for my username and password. I was able to login and tried to install gnome again but it says
sudo apt install --reinstall gdm3
the following have unmet dependencies
gdm3: gome-session
gnome-settings-daemon
gnome-shell
E: Unable to correct problems, you have held broken packages