Professional Web Applications Themes

apt-get and proxy setting - Debian

Hello, I am facing some problems in getting apt-get to retrieve files through http proxy setting. I tried the following: 1. Set the environment variable as export HTTP_PROXY="http://203.195.221.129:3128" Still when I give apt-get update, I get messages telling that connection is refused from the hosts ([url]www.debian.org[/url], marillat.free.fr, et al.) 2. Created /etc/apt.conf as below: APT { Acquire { http { Proxy "http://203.195.221.129:3128"; }; }; }; Still the same result. Browsing the docs threw up the second solution. My question is how can I make apt-get to retrieve the files with the above setting? FWIW, I am able to download files ...

  1. #1

    Default apt-get and proxy setting

    Hello,

    I am facing some problems in getting apt-get to retrieve files through
    http proxy setting. I tried the following:

    1. Set the environment variable as

    export HTTP_PROXY="http://203.195.221.129:3128"

    Still when I give apt-get update, I get messages telling that
    connection is refused from the hosts ([url]www.debian.org[/url],
    marillat.free.fr, et al.)

    2. Created /etc/apt.conf as below:

    APT {
    Acquire {
    http {
    Proxy "http://203.195.221.129:3128";
    };
    };
    };

    Still the same result.

    Browsing the docs threw up the second solution.

    My question is how can I make apt-get to retrieve the files with the
    above setting? FWIW, I am able to download files using wget by putting
    the above setting in /etc/wgetrc.

    Regards,

    --
    Sridhar M.A.

    One man tells a falsehood, a hundred repeat it as true.


    --
    To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    Sridhar M.A. Guest

  2. #2

    Default Re: apt-get and proxy setting

    On Tue, Jul 15, 2003 at 04:18:07PM +0200, [email]debian-user-requestlists.debian.org[/email] wrote:
    > Hello,
    >
    > I am facing some problems in getting apt-get to retrieve files through
    > http proxy setting. I tried the following:
    >
    > 1. Set the environment variable as
    >
    > export HTTP_PROXY="http://203.195.221.129:3128"
    >
    > Still when I give apt-get update, I get messages telling that
    > connection is refused from the hosts ([url]www.debian.org[/url],
    > marillat.free.fr, et al.)
    >
    > 2. Created /etc/apt.conf as below:
    >
    > APT {
    > Acquire {
    > http {
    > Proxy "http://203.195.221.129:3128";
    > };
    > };
    > };
    >
    > Still the same result.
    >
    > Browsing the docs threw up the second solution.
    >
    > My question is how can I make apt-get to retrieve the files with the
    > above setting? FWIW, I am able to download files using wget by putting
    > the above setting in /etc/wgetrc.
    AFAIK you also have to make sure that the sources.list contains
    repositories with the correct fetch method, i.e. http.

    /M

    --
    Magnus Therning mailto:therningsourceforge.natlab.research.philip s.com
    PGP:0xD3BC7468 +31-40-2745179 [url]http://pww.innersource.philips.com/magnus/[/url]

    The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it.
    -- Michelangelo

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2 (GNU/Linux)

    iD8DBQE/FQU/9HtYk9O8dGgRAnUBAJ9tCCBDftdJhXrLS82YFFVEu1CDDgCfby Pv
    PubgK7iX/ZAqQgcZl1EnBY4=
    =eRz/
    -----END PGP SIGNATURE-----

    Magnus Therning Guest

  3. Moderated Post

    Default Re: apt-get and proxy setting

    Removed by Administrator
    Sridhar M.A. Guest
    Moderated Post

  4. #4

    Default Re: apt-get and proxy setting

    Sridhar M.A. wrote:
    >Hello,
    >
    >I am facing some problems in getting apt-get to retrieve files through
    >http proxy setting. I tried the following:
    >
    > 1. Set the environment variable as
    >
    > export HTTP_PROXY="http://203.195.221.129:3128"
    >
    Do you mean http_proxy? I thought it had to be lower-case.
    I've also found I needed to have a / after the port as in:
    export http_proxy="http://203.195.221.129:3128/"

    See if that fixes it.

    HTH,

    Bec Dridan



    --
    To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    Bec Dridan Guest

  5. #5

    Default Re: apt-get and proxy setting

    On Wed, Jul 16, 2003 at 11:50:14PM +1000, Bec Dridan wrote:
    > Sridhar M.A. wrote:
    >
    > >Hello,
    > >
    > >I am facing some problems in getting apt-get to retrieve files through
    > >http proxy setting. I tried the following:
    > >
    > > 1. Set the environment variable as
    > >
    > > export HTTP_PROXY="http://203.195.221.129:3128"
    > >
    > Do you mean http_proxy? I thought it had to be lower-case.
    > I've also found I needed to have a / after the port as in:
    > export http_proxy="http://203.195.221.129:3128/"
    >
    > See if that fixes it.
    >
    Thanks that did it. It worked without the trailing slash.

    Regards,

    --
    Sridhar M.A.

    In like a dimwit, out like a light.
    -- Pogo


    --
    To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    Sridhar M.A. Guest

Similar Threads

  1. Soap connect and dynamic proxy setting
    By Kenneth Jonsson in forum ASP.NET Web Services
    Replies: 1
    Last Post: December 1st, 09:38 PM
  2. Proxy and non Proxy configurations
    By Alejandro Molina in forum ASP.NET Security
    Replies: 0
    Last Post: July 15th, 05:04 AM
  3. ftp proxy in php
    By Sadara in forum PHP Development
    Replies: 0
    Last Post: November 25th, 07:34 PM
  4. How can I update network ( proxy) setting automatically ?
    By Jigar Rasalawala in forum Mac Programming
    Replies: 1
    Last Post: July 16th, 06:11 PM
  5. proxy account setting.. pls help
    By bharath in forum Microsoft SQL / MS SQL Server
    Replies: 0
    Last Post: July 6th, 09:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139