Teste isso:
Abra um terminal. Ctrl + Alt + T
Execute:
$ sudo -i
# nano /etc/bash.bashrc
Coloque as seguintes linhas no arquivo:
export http_proxy=http://username:[email protected]:port/
export https_proxy=https://username:[email protected]:port/
export ftp_proxy=http://username:[email protected]:port/
Ctrl + O , salve o arquivo. Ctrl + X , perto do nano.
$ sudo -i
# nano /etc/environment
Coloque as seguintes linhas no arquivo
http_proxy=http://username:[email protected]:port/
https_proxy=https://username:[email protected]:port/
ftp_proxy=http://username:[email protected]:port/
Ctrl + O , salve o arquivo. Ctrl + X , perto do nano.
$ sudo -i
# nano /etc/apt/apt.conf
Coloque as seguintes linhas no arquivo:
Acquire::http::Proxy "http://username:[email protected]:port";
Acquire::https::Proxy "https://username:[email protected]:port";
Acquire::ftp::Proxy "http://username:[email protected]:port";
Ctrl + O , salve o arquivo. Ctrl + X , perto do nano.