[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get probleme



I have no experience with proxy auth. However, if I got it correctly then the 
attached /etc/apt/apt.conf has the skeleton for this to be done.

I hope they will put back real soon what used to be the apt.conf example. 

[02:22:27 /tmp]$ cat /etc/apt/apt.conf 
/* In some instances involving filenames it is possible to set the default
   directory when the path is evaluated. This means you can use relative
   paths within the sub scope.
   
   The configuration directives are specified in a tree with {} designating
   a subscope relative to the tag before the {}. You can further specify
   a subscope using scope notation eg,
     APT::Architecture "i386";
   This is prefixed with the current scope. Scope notation must be used
   if an option is specified on the command line with -o.
*/

// Options for the downloading routines
Acquire
{
  // HTTP method configuration
  http 
  {
    Proxy "http://Proxy.israsrv.net.il:8080";;
    Timeout "120";
  };

  // FTP method configuration
  ftp
  {
    Proxy "ftp://Proxy.israsrv.net.il:8080";;

    /* 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";
  };
  
};

DPkg 
{
   // Auto re-mounting of a readonly /usr
    Pre-Invoke {"mount -o remount,rw /usr";};
    Post-Invoke 
    {
       "apt-cache dumpavail > /var/lib/dpkg/available";
       "mount -o remount,ro /usr";
    };
   
}
// Pre-configure all packages before they are installed.
// (Automatically added by debconf.)
DPkg::Pre-Install-Pkgs {"dpkg-preconfigure --apt";};
[02:30:26 /tmp]$ 


> hello i have a problem with apt-get 0.3.13 ! 
> i want upgrade my dist with apt but we have a csm proxy with user and
> pass has anyone experience with the konfiguration?
> and how must i edit the apt.conf ?
> 
> 
> my apt output! 
> Err http://non-us.debian.org unstable/main Packages
>   407 Proxy-Auth
> Err http://www.us.debian.org unstable/main Packages
>   407 Proxy-Auth
> Ign http://non-us.debian.org unstable/main Release
> Ign http://www.us.debian.org unstable/main Release
> Err http://www.us.debian.org unstable/contrib Packages
>   407 Proxy-Auth
> Ign http://www.us.debian.org unstable/contrib Release
> Err http://www.us.debian.org unstable/non-free Packages
>   407 Proxy-Auth
> Ign http://www.us.debian.org unstable/non-free Release
> Reading Package Lists...
> Building Dependency Tree...
> 
> this is my apt.conf 
> 
> / Options for the downloading routines
> Acquire
> {
>   Queue-Mode "host";       // host|access
>   Retries "0";
>   Source-Symlinks "true";
>   
>   // HTTP method configuration
>   http 
>   {
>     Proxy "http://proxy:8080";;
>     Proxy:XXX:XXXX@proxy:8080 "DIRECT";  // Specific per-host setting
>     Timeout "120";
>     
>     // Cache Control. Note these do not work with Squid 2.0.2
>     No-Cache "false";
>     Max-Age "86400";     // 1 Day age on index files
>     No-Store "false";    // Prevent the cache from storing archives    
>   };
> -- 
> #########################################################################
> #									#
> #	Linux is like a Wigwam:		Thomas Braun	    		#
> #	No Gates, no Fences and 	Hammer GmbH & CoKg		#
> #	an Apache inside !  :-)		Schoenebergerstr. 21 		#
> #	-----------------------		52068 Aachen			#
> #					Tel: +49(0)241-9665-188		#
> #					Fax: +49(0)241-9665-189		#
> #########################################################################
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

-- 
shaulk@israsrv.net.il



Reply to: