Proxy authentication with terminal Ubuntu 14.04

Test this:

sudo su -
apt-get update
apt-get install ntlmaps

Configure it: domain, username, password, proxyserver.net, port

Files: /etc/bash.bashrc

export http_proxy=http://127.0.0.1:5865
export https_proxy=http://127.0.0.1:5865
export ftp_proxy=http://127.0.0.1:5865

/etc/environment

http_proxy=http://127.0.0.1:5865
https_proxy=http://127.0.0.1:5865
ftp_proxy=http://127.0.0.1:5865

/etc/apt/apt.conf (create the file if it does not exist)

Acquire::http::Proxy "http://127.0.0.1:5865";
Acquire::https::Proxy "http://127.0.0.1:5865";
Acquire::ftp::Proxy "http://127.0.0.1:5865";

What you did (export http_proxy=http://name:password@proxy_server:port/) is actually pretty close to what works for me:

http_proxy="http://name:password@proxy_server:port/"
export http_proxy

I hope this works for you, too. ;)