According to the settings on the Internet, the settings under
export http_proxy=http://yourproxyaddress:proxypor
~ ./.bash.rc were unsuccessful.
The final solution is as follows:
create a file apt-proxy-conf (optional name) under /etc/apt/, and edit the content as follows:
Acquire::http::proxy "http://proxy3.bj.petrochina:8080/"; Acquire::ftp::proxy "ftp://proxy3.bj.petrochina:8080/"; Acquire::https::proxy "https://proxy3.bj.petrochina:8080/";
Update execution:
sudo apt-get update -c apt-proxy-conf