Sorry for not being able to properly format my question because I'm using SE Android app, my xubuntu isn't working. I dont know what exactly is the error but I'll try to describe what happened and hopefully you can help me further debug and solve the problem, im on xubuntu 13.10 64 bit.
2 days ago, while trying to make php work, I chmod -R /var
That worked but sudo apt-get install x says that var/lib should have chmod 0700 or something like that so I did chmod 0700 /var/lib and chmod -R 0700 /var/lib. I don't remember the exact permission but I messed /var permissions that's for sure.
Anyway I dont know whether that's a big deal or not. I also messed something else up, apt-get install tasksel, I didn't wait for it to finish installing, I remembered that I could install lamp without tasksel, so I abandoned installation ctrl-z.
Right after ctrl-z, I got that red icon next to the clock saying that this error usually occurs when a package doesn't finish installing dependencies. I tried updating the packages didn't work.
Apt-get no longer works, I cannot install nor remove anything var is locked or something. It's the same error you get when you try to install something from terminal while synaptic package manager is opened.
I tried restarting the pc thinking that some background process is running, now xubuntu doesn't work, it boots and everything I see the xubuntu blue screen loading but I dont see the login screen afterwards, just a black screen (not a tty).
I tried reinstalling, but there's no (reinstall option) in the live cd, so I'd have to format the hard drive, I dont want to do that. I have so many stuff.
If I go to tty and fix the mess I made in var, would it fix it? If so then what are the different permissions for folders and files in var?