ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] apt-get за прокси с авторизацией
@ 2008-08-18 11:02 Михаил Шувалов
  2008-08-18 11:06 ` Timur Batyrshin
  2008-08-18 11:45 ` Michael Shigorin
  0 siblings, 2 replies; 46+ messages in thread
From: Михаил Шувалов @ 2008-08-18 11:02 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Добрый день!

Имеем: сеть с выходом во внешний мир через прокси с авторизацией.

Прописал в /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";
  };
};



-- 
С уважением,
Михаил Шувалов

^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2008-08-20  5:54 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-18 11:02 [Comm] apt-get за прокси с авторизацией Михаил Шувалов
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

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