【Ubuntu终端挂代理】安装docker一直time out的解决方案

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!

顺利解决

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值