Disable proxy server for one apt repository

12,088

Solution 1

Just declare in a /etc/apt/apt.conf.d/99proxy file something like this :

Acquire::http::Proxy {
    your.local.first.repository DIRECT;
    your.second.first.repository DIRECT;
};

DIRECT tells apt to use a direct connection to connect to the repository.

Solution 2

This is just @Cédric Julien's answer with (thanks and) the additional syntax for defaulting to an external proxy:

Acquire::http::Proxy "http://proxy:8080";
Acquire::http::Proxy {
    in-house.debian.example.com DIRECT;
    no-protocol-colon-or-slashes.example.com DIRECT;
};
Share:
12,088

Related videos on Youtube

Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    Admin over 1 year

    I have made a local apt repository, but my IT-department caches LAN traffic on the proxy server. Is there a way I could work around this to disable the proxy settings for this local apt repository? in apt.conf or simular?