Jump to content
Bicrypto Mobile - Mobile App for Bicrypto 3.2.1 ×
Bicrypto v4.6.0 + All Plugins ×
Rent Bicrypto (latest) with All Plugins + Hosting for Bicrypto = 40 Euro/month ×

Recommended Posts

Posted

При работе с менеджером deb-пакетов Advanced Packaging Tool (APT) в корпоративных сетях может потребоваться взаимодействие с внутренними прокси-серверами, предоставляющими доступ в Интернет. Здесь описаны основные методы настройки работы APT с такими прокси-серверами.

 

Включение прокси для всех пользователей системы

Данный способ глобальный, так как влияет на всех пользователей системы.

В конфигурационном файле /etc/apt/apt.conf указать строку вида:

Acquire::http::Proxy "http://User:[email protected]:3128";

Аналогичные настройки также можно найти/указать в файлах вида /etc/apt/apt.conf.d/{XX}proxy

Включение прокси для текущего пользователя

Настройки прокси можно передать менеджеру пакетов APT через переменные окружения текущего пользователя. Для этого в профиле пользователя нужно внести изменения в файл ~/.profile, добавив в конец файла сроки вида:

export https_proxy=http://User:[email protected]:3128/
export http_proxy=http://User:[email protected]:3128/
export ftp_proxy=http://User:[email protected]:3128/

Обход прокси для локальных репозиториев

В случаях когда на уровне переменных окружения пользователя или на уровне всей системы заданы параметры прокси, которые используются менеджером пакетов APT, может возникнуть проблема с получением метаданных о пакетах из локальных репозиториев, доступ к которым должен выполняться не через прокси, а напрямую. В этих случаях в файл конфигурации APT можно добавить правило, которое заставит обращаться к указанному локальному репозиторию минуя прокси:

Acquire::http::Proxy {
    local-apt-repo.holding.com DIRECT;
};

 

Vi Veri Veniversum Vivus Vici

BuymeTea.png.682ebddb627d410dac9312fed1d74f8c.png

I am not a tech support or a script consultant! I am a network engineer and system administrator! In my free time I crack software and publish it on this site!

If you need help installing any software from this site or any other - write to @Guy Fawkes - we will agree for a modest reward!

If you want the same site - the price is 100 euros, including hosting for 1 year! (you will publish the content yourself), I will only install and configure everything. I will also help with payment systems for Europe!

guinness

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
Visa  MasterCard  Maestro  American Express  PayPal  NOWPayments СБП  МИР