Ubuntu booted to tty. No GUI. "pkcs#7 signature not signed with a trusted key"
While running ubuntu 18.04, I was running out of ram. So I decided to end some programs from the system monitor. But I ended some essential service then blank screen appears. I rebooted the system and it led me to tty. For those who don`t know, tty stands for Teletype. It is basically a non-graphical version of the whole system. I can still login and access the terminal but no GUI.
Before , I got an error of pkcs#7 signature not signed with a trusted key. I ran dpkg--Repair broken packages (something I have found on forums) from recovery mode. But the error was not solved. Only the above stated line was gone.
Edit:- After a lot of searching, I tried to reinstall gdm3 and it solved the error. You can check my answer below.
41 Answer
I found the solution. I reinstalled and reconfigured gdm3 and it automatically started.
Reinstall gdm3:-sudo apt-get install --reinstall gdm3sudo dpkg-reconfigure gdm