Ubutu18内网代理

/etc/apt/sources.list

  • X86镜像站
  1. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
  2. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
  3. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
  4. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
  5. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
  6. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
  7. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
  8. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
  9. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
  10. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
  11. deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  12. deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  13. deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  14. deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  15. deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  16. deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  17. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  18. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  19. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  20. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  • ARM
  1. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
  2. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
  3. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe
  4. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
  5. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
  6. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
  7. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe
  8. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
  9. deb http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted
  10. deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted
  11. deb http://mirrors.aliyun.com/ubuntu-ports/ bionic universe
  12. deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates universe
  13. deb http://mirrors.aliyun.com/ubuntu-ports/ bionic multiverse
  14. deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates multiverse
  15. deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
  16. deb http://mirrors.aliyun.com/ubuntu-ports bionic-security main restricted
  17. deb http://mirrors.aliyun.com/ubuntu-ports bionic-security universe
  18. deb http://mirrors.aliyun.com/ubuntu-ports bionic-security multiverse

要上网的内网机器添加如下配置

  1. cat << Rainy > /etc/apt/apt.conf
  2. Acquire::http::Proxy "http://200.100.128.222:18888/";
  3. Acquire::https::Proxy "https://200.100.128.222:18888/";
  4. Rainyx`
  1. # 临时添加就好
  2. export http_proxy=http://172.217.1.246:18888 && export https_proxy=https://172.217.1.246:18888