Page 4 of 4 FirstFirst ... 234
Results 31 to 36 of 36

Thread: HOWTO: Update from behind a proxy server

  1. #31
    Join Date
    Apr 2009
    Location
    Kuala Lumpur, Malaysia
    Beans
    142
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: HOWTO: Update from behind a proxy server

    Interesting!!! Thank you for sharing your knowledge.

    Quote Originally Posted by utkarshspat View Post
    For all those people who have special characters in their username or password and hence can't configure apt, please use the URL-encoding for special characters in your username/password. So, if my username is abc and password is qwe@rty, then add the following lines to /etc/apt/apt.conf:

    Acquire::http: proxy "http://abc:qwe%40rty@proxy: port/";
    Acquire::ftp: proxy "ftp://abc:qwe%40rty@proxy: port/";
    Acquire::https: proxy "https://abc:qwe%40rty@proxy: port/";

    P.S.: No spaces are needed after the colons( : ) in these lines.

    The URL-encoding for characters can be found at www.w3schools.com/TAGS/ref_urlencode.asp


  2. #32
    Join Date
    Apr 2009
    Location
    Kuala Lumpur, Malaysia
    Beans
    142
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: HOWTO: Update from behind a proxy server

    duplicate sorry
    Last edited by juliobahar; April 28th, 2011 at 09:12 AM.

  3. #33
    Join Date
    Dec 2010
    Location
    Sørreisa, Norway
    Beans
    161
    Distro
    Ubuntu

    Re: HOWTO: Update from behind a proxy server

    Quote Originally Posted by Anjue View Post
    I tried with my windows domain user already but still I can't get the update!!! Do you know what I have missed?

    I use:

    Code:
    export http_proxy="http://domain\user:passwd@proxy.com:8080/"
    export ftp_proxy="http://domain\user:passwd@proxy.com:8080/"
    but I still got "407 Proxy Authentication Required"
    i know what you are doing wrong:
    instead of having one "\" after "domain" use two of them..:
    Code:
    export http_proxy="http://domain\\user:passwd@proxy.com:8080/"

  4. #34
    Join Date
    Sep 2012
    Beans
    1

    Re: HOWTO: Update from behind a proxy server

    Quote Originally Posted by mlomker View Post
    For apt-get at the command-line

    Put the following into your /etc/bash.bashrc file (after putting in the proper servername/IP and port number). Just include the server/port if you have no authentication on your proxy server.

    Code:
    export http_proxy=http://user:password@my.proxy.server:port/
    export ftp_proxy=http://user:password@my.proxy.server:port/
    Add these lines, open a new root terminal, and then run your apt-get from the command line.
    But where to put the proxy IP and port before??
    I have edited the /etc/bash.bashrc file.

  5. #35
    Join Date
    Dec 2010
    Location
    Sørreisa, Norway
    Beans
    161
    Distro
    Ubuntu

    Re: HOWTO: Update from behind a proxy server

    Wrong provided code. Check post below:
    Last edited by airplanesimen; September 6th, 2012 at 08:02 AM.
    Ubuntu since 6.04 <3

  6. #36
    Join Date
    Dec 2010
    Location
    Sørreisa, Norway
    Beans
    161
    Distro
    Ubuntu

    Re: HOWTO: Update from behind a proxy server

    Quote Originally Posted by zerozone View Post
    I have same proble and here is my solution:

    1. edit /etc/bash.bashrc add to the end of file :

    export http_proxy=http://username:password@proxyserver.com:3095/
    export ftp_proxy=http://username:password@proxyserver.com:3095/
    - OR proxy no username and password case - :
    export http_proxy=http://proxyserver.com:3095/
    export ftp_proxy=http://proxyserver.com:3095/

    2. edit, or create new file /etc/apt/apt.conf :

    APT::Authentication::TrustCDROM "true";
    Acquire::http:Proxy "http://proxyserver.com:3095"

    I was wrong, sorry. Check this quote.
    Ubuntu since 6.04 <3

Page 4 of 4 FirstFirst ... 234

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
  •