Can't update or install anything. Ubuntu 3.11.0.14

Solution 1:

Found the answer on Linux Questions, turned out to be an entry in the line in a file under /etc/apt/apt.conf/ called 01proxy

Acquire::http::Proxy "http://"hostname":3142";

I commented out the line and now everything is OK