From: "Михаил Шувалов" <shuvalov.mv@gmail.com> To: "ALT Linux Community general discussions" <community@lists.altlinux.org> Subject: [Comm] apt-get за прокси с авторизацией Date: Mon, 18 Aug 2008 15:02:11 +0400 Message-ID: <a5a6a8800808180402m713eb12fh18775bb23f33e4c3@mail.gmail.com> (raw) Добрый день! Имеем: сеть с выходом во внешний мир через прокси с авторизацией. Прописал в /etc/rc.d/rc.local export ftp_proxy="http://user:passwd@ip-addr:3128" export http_proxy="http://user:passwd@ip-addr:3128" в /etc/bashrc дописал тоже самое (хотя казалось бы первого должно было бы хватить, ан нет). Но. То только из под рута проходит обновление, то вообще не проходит: вываливается по таймауту. содержимое apt.conf $ cat /etc/apt/apt.conf /* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ // See apt-cdrom(8) for details. Acquire::CDROM::Copy "true"; Acquire::CDROM::mount "/media/cdrom"; RPM { Allow-Duplicated { // Old-style kernels. "^(NVIDIA_)?(kernel|alsa)[0-9]*(-adv|-linus)?($|-up|-smp|-secure|-custom|-enterprise|-BOOT|-tape|-aureal)"; // New-style kernels. "^kernel-(image|modules)-.*"; }; Hold { // Old-style kernels. "^(kernel|alsa)[0-9]+-source"; }; }; Пробовал делать так (как пишут в man), но результат тот же: $ cat /etc/apt/apt.conf.new /* * This is the main configuration file for the APT suite of tools, * see apt.conf(5) for details. */ // See apt-cdrom(8) for details. Acquire::CDROM::Copy "true"; Acquire::CDROM::mount "/media/cdrom"; RPM { Allow-Duplicated { // Old-style kernels. "^(NVIDIA_)?(kernel|alsa)[0-9]*(-adv|-linus)?($|-up|-smp|-secure|-custom|-enterprise|-BOOT|-tape|-aureal)"; // New-style kernels. "^kernel-(image|modules)-.*"; }; Hold { // Old-style kernels. "^(kernel|alsa)[0-9]+-source"; }; }; Acquire { // HTTP method configuration http { Proxy "http://user:passwd@ip-addr:3128"; Timeout "120"; Pipeline-Depth "5"; }; ftp { Proxy "http://user:passwd@ip-addr:3128/"; /* Required script to perform proxy login. This example should work for tisfwtk */ ProxyLogin { "USER $(PROXY_USER)"; "PASS $(PROXY_PASS)"; "USER $(SITE_USER)@$(SITE):$(SITE_PORT)"; "PASS $(SITE_PASS)"; }; Timeout "120"; /* Passive mode control, proxy, non-proxy and per-host. Pasv mode is prefered if possible */ Passive "true"; Proxy::Passive "true"; }; }; -- С уважением, Михаил Шувалов
next reply other threads:[~2008-08-18 11:02 UTC|newest] Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-08-18 11:02 Михаил Шувалов [this message] 2008-08-18 11:06 ` Timur Batyrshin 2008-08-18 12:56 ` Михаил Шувалов 2008-08-18 11:45 ` Michael Shigorin 2008-08-18 12:08 ` Смирнов Андрей 2008-08-18 13:12 ` Михаил Шувалов 2008-08-18 12:49 ` Андрей Черепанов 2008-08-18 13:48 ` Michael Shigorin 2008-08-18 13:07 ` Михаил Шувалов 2008-08-18 13:34 ` Michael Shigorin 2008-08-18 13:38 ` Михаил Шувалов 2008-08-18 13:49 ` Michael Shigorin 2008-08-18 14:12 ` Sergey Shilov 2008-08-18 15:04 ` Anton Vinogradov 2008-08-18 15:40 ` Sergey Shilov 2008-08-18 15:49 ` Anton Vinogradov 2008-08-18 16:55 ` Michael Shigorin 2008-08-18 17:03 ` Mike Shuvalov 2008-08-18 21:11 ` Sergey Shilov 2008-08-18 14:58 ` Anton Vinogradov 2008-08-18 16:54 ` Michael Shigorin 2008-08-18 17:08 ` Mike Shuvalov 2008-08-18 21:05 ` Sergey Shilov 2008-08-19 4:19 ` Mike Shuvalov 2008-08-19 9:08 ` Sergey Shilov 2008-08-19 9:30 ` Sergey Shilov 2008-08-19 10:21 ` [Comm] [JT] " Michael Shigorin 2008-08-19 10:31 ` [Comm] " Sergey Shilov 2008-08-19 10:53 ` Sergey Shilov 2008-08-19 11:00 ` Michael Shigorin 2008-08-19 11:16 ` Alexey I. Froloff 2008-08-19 16:00 ` Andrey Rahmatullin 2008-08-19 20:03 ` Alexey I. Froloff 2008-08-19 20:06 ` Andrey Rahmatullin 2008-08-19 20:14 ` Alexey I. Froloff 2008-08-19 20:24 ` Andrey Rahmatullin 2008-08-19 22:26 ` Michael Shigorin 2008-08-20 5:00 ` Andrey Rahmatullin 2008-08-20 5:45 ` Alex Gorbachenko 2008-08-20 5:54 ` Andrey Rahmatullin 2008-08-18 13:36 ` Михаил Шувалов 2008-08-18 17:15 ` Mike Shuvalov 2008-08-18 17:38 ` Michael Shigorin 2008-08-18 18:05 ` Mike Shuvalov 2008-08-18 18:13 ` Michael Shigorin 2008-08-18 18:26 ` Mike Shuvalov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=a5a6a8800808180402m713eb12fh18775bb23f33e4c3@mail.gmail.com \ --to=shuvalov.mv@gmail.com \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git