1. 首页
  2. 数据库
  3. 其它
  4. ubuntu18.04使用脚本为虚拟机配置apt代理

ubuntu18.04使用脚本为虚拟机配置apt代理

上传者: 2021-01-30 02:11:02上传 PDF文件 19.55KB 热度 17次
设置apt代理需要修改/etc/apt/apt.conf 脚本内容如下: # file 1.sh #!/bin/bash PROXY_IP_PORT=$1 if [ -z ${/etc/apt/apt.conf} ];then echo Please enter the Proxy IP and Port. exit 1 fi sudo sh -c 'echo Acquire::http::proxy \http://127.0.0.1:8000/\; Acquire::ftp::proxy \ftp://127.0.0.1:8000/\; Acquire::h
下载地址
用户评论