So I did something I was not supposed to by executing a command from the terminal (was having problems installing programs), and messed up the system. Can't install any programs and the upgrade command(among many others) won't work either. Software center and Libreoffice Calc have disappeared.
My problems had started after trying to install Java and OpenJDK. But they're trivial at this point i guess.
This is the output of the sudo apt-get install -f command:
This is the output of the sudo apt-get update command:
Is it practically possible to rescue the system from here ? Everything that is installed so far is working fine (firefox, wine etc.). I've tried a lot of things to no avail.