I initially had a problem with apt-get update. It stopped on 99%, "waiting for headers". This problem came when attempting to install GeoGebra following instructions at this page.
Trying to solve this problem I deleted the apt folder from /var/cache. Now apt-get doesn't work at all. I have no idea of how to solve this problem. Ubuntu works fine but I'm unable to install new software. Please help!