Configuring proxy for Adept

Settings global proxy in system settings is fine. But still one has to setup proxy in apt.conf file if adept has to know the proxy. So open up the terminal and type

sudo kate /etc/apt/apt.conf

comment the following line (if present)

Acquire { http { Proxy ‘false’; }; }; ==> #Acquire { http { Proxy ‘false’; }; };

Add the following line below it

Acquire::http::Proxy “http://username:password@proxy.domainname.com:port_num”;

Save the file. You are done. :) happy adepting

I would like to ackowledge this post


~ by sarav on August 7, 2008.

2 Responses to “Configuring proxy for Adept”

  1. Hi,

    Just like to add a couple of points to this which may be helpful:

    1) Package managers – “Adept” and “apt”
    Adept and apt are not the same product, though they share the use of sources.list (and cache, by the looks of things). They’re intended to use the same proxy settings, but don’t – the above will get apt working beautifully, but if like me you’re using kUbuntu, all GUI package-related activity is performed using Adept by default, and it DOESN’T use either the system-wide proxy settings, apt.conf settings or environment variables. To date, I haven’t found a way to make it work. However, it is a known in bug in Adept – see http://bugs.kde.org/show_bug.cgi?id=117185, written by the Adept author. Hopefully someone will post a result soon.

    2) Proxy settings for MS-based proxies
    Just a helpful hint; it took me AGES to finally find this!
    If the proxy you have to use requires authentication, and is eithe MS ISA, or requires credentials in the format

    DOMAIN\Username

    then your entry in the apt.conf file shoudl look like

    Acquire::http::Proxy “http://DOMAIN\\username:password@proxy.domainname.com:port_num”;

    Note the double backslash syntax instead of the traditional single backslash you’d be used to when using a Windows domain account.

    Hope this helps someone, peace, love and lentils…

  2. Thanks Stevie

    But I hope configuring apt.conf works with Adept too
    Because I was also using Ubuntu and configured the proxy this way. I think it worked for 8.04

    Let me get back after checking again.

Leave a Reply