GrowGen | 整

为 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";
}

J.Gong

相关文章

Tags

tech
apt
proxy

© 2025 我的技术博客. 保留所有权利.

使用 Astro.build + Mantine 构建 | 部署在 Vercel