While I was trying to build Gedit on Ubuntu 16.04, I followed the prerequisite dependencies and installed them religiously. I noticed that I lost my terminal color, and the preinstalled gedit theme and before that pychess stopped working because of missing dependencies. So I restarted the machine. Now when I try to load, after i pass the Grub menu, the screen start flickering and nothing happens. I definitely broke something with the GTK packages and all the dependencies.
First of all, I didn't follow the rule number one: Never talk about the fight club. Always backup your system.
That being said, I am able to access my machine in init mode 3.
So before doing something stupid, I came to have some advice and also to seek help ...
The idea I come up with is to go inside all the sources files and do a
sudo checkinstall followed with a sudo dpkg -r <package>.
What is the best solution to restore the system without reinstalling everything?
And how in the future can I avoid such situation when I need to install software from the source?
(Is there a good tutorial to explain the compiling process and the good reflexes to have?)