hxb@P17:~/Desktop/HXB_projects/apollo$ echo $http_proxy
hxb@P17:~/Desktop/HXB_projects/apollo$ echo $https_proxy
hxb@P17:~/Desktop/HXB_projects/apollo$ sudo export http_proxy=http://127.0.0.1:7890
sudo: export: command not found
hxb@P17:~/Desktop/HXB_projects/apollo$ export http_proxy=http://127.0.0.1:7890
hxb@P17:~/Desktop/HXB_projects/apollo$ export https_proxy=http://127.0.0.1:7890
hxb@P17:~/Desktop/HXB_projects/apollo$ echo $http_proxy
http://127.0.0.1:7890
hxb@P17:~/Desktop/HXB_projects/apollo$ echo $https_proxy
http://127.0.0.1:7890
hxb@P17:~/Desktop/HXB_projects/apollo$ bash docker_install.sh
之后
lease run the scripts again!
hxb@P17:~/Desktop/HXB_projects/apollo$ bash docker_install.sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version (4:9.3.0-1ubuntu2).
gcc is already the newest version (4:9.3.0-1ubuntu2).
make is already the newest version (4.2.1-1.2).
net-tools is already the newest version (1.60+git20180626.aebd88e-1ubuntu1).
can-utils is already the newest version (2018.02.0-1ubuntu1).
cutecom is already the newest version (0.30.3-1build1).
cmake is already the newest version (3.16.3-1ubuntu1.20.04.1).
curl is already the newest version (7.68.0-1ubuntu2.23).
gedit is already the newest version (3.36.2-0ubuntu1).
git is already the newest version (1:2.25.1-1ubuntu3.13).
unzip is already the newest version (6.0-25ubuntu1.2).
vim is already the newest version (2:8.1.2269-1ubuntu5.23).
The following packages were automatically installed and are no longer required:
ibus-data python3-ibus-1.0
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 125 not upgraded.
docker is OK!
顺利解决