2020-03-11

为 apt 添加代理

tech
#apt
#proxy

为 apt 添加代理

J.Gong

2020-03-11

0.21min

为 apt 添加代理

我的上帝啊,这两天都在忙活代理(翻译腔)。

系统全局下的http_proxy似乎对 apt 无效,需要单独设置。

sudo nano /etc/apt/apt.conf.d/proxy.conf

增加代理

Acquire {
  HTTP::proxy "http://127.0.0.1:8080";
  HTTPS::proxy "http://127.0.0.1:8080";
}

© 2025 All rights reserved..

This website uses Astro.build, Mantine and React Bits | deployed on Vercel