I am running tor browser in my Ubuntu 14.04 and and after successful connection I used socks proxy which is 127:0.0.1:9150 in my browser and it worked fine. But when I put Acquire::socks::proxy "socks://127.0.0.1:9150/"; in apt.conf it's not working at all. How can I use apt-get with socks? Please help me. Thank you.
I'd suggest that you install the package
apt-transport-tor. This allows you to download packages anonymously.