如何在代理后面运行 apt-cacher-ng?

blu*_*ast 5 proxy ubuntu apt-cache

apt-cacher-ng 我在文档中找不到如何配置代理设置。

是否可以apt-cacher-ng在代理后面运行?如何?

小智 4

您可以将以下内容添加到/etc/apt-cacher-ng/acng.conf

Proxy: http://myproxy.net:1234
Run Code Online (Sandbox Code Playgroud)

如本示例配置文件中所述:

# The specification of another HTTP proxy which shall be used for downloads.
# It can include user name and password but see the manual for limitations.
#
# Default: uses direct connection
#
# Proxy: http://www-proxy.example.net:3128
# Proxy: https://username:proxypassword@proxy.example.net:3129
Run Code Online (Sandbox Code Playgroud)