Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Lucid proxy problem.

  1. #11
    Join Date
    Jul 2005
    Location
    Brisbane
    Beans
    27

    Re: Lucid proxy problem.

    The /etc/apt/apt.conf fix worked for the sun-java6-jre package, however I also had to edit the following lines to /etc/wgetrc for the flashplugin-installer package:

    Code:
    # You can set the default proxies for Wget to use for http, https, and ftp.
    # They will override the value in the environment.
    https_proxy = http://user:pass@proxy.company.com:8080/
    http_proxy = http://user:pass@proxy.company.com:8080/
    ftp_proxy = http://user:pass@proxy.company.com:8080/
    
    # If you do not want to use proxy at all, set this to off.
    use_proxy = on
    Ubuntu: It's betterer than Fedora..

  2. #12
    Join Date
    May 2010
    Beans
    4

    Red face Re: Lucid proxy problem.

    Hello everyone,

    Can anybody please tell me where can I find the apt.conf?

    I haven't seen it

    I am using Ubuntu 8.04 hardy

    There's no such a file as apt.conf

    /etc/apt/apt.conf.d/

    no file called apt.conf, where are you getting this file from please?

    I am having problems using my apt-get because before that I added a proxy, now I can't seem to get rid of it.

    No matter what I do it's still looks for the proxy.
    Is there anyone who has any idea on how to remove it, I didn't add it to any file
    I used export and since then I can't shift it.

    I wish people who give solutions to a particular problem on how to do something will also add a line on how to remove it.

    Any help would be much appreciated

    Thank you
    Last edited by adbask; May 10th, 2010 at 03:13 PM.

  3. #13
    Join Date
    Mar 2008
    Beans
    1

    Re: Lucid proxy problem.

    The problem is the extra comma at the end of $no_proxy, as Krieg describes.

    Lucid:
    Code:
    % echo $no_proxy
    localhost,127.0.0.0/8,*.local,192.168.1.0/24,
    Jaunty:
    Code:
    % echo $no_proxy
    localhost,127.0.0.0/8,*.local,192.168.1.0/24
    "sudo -i" initializes environmental variables with /etc/environment, thus $no_proxy is cleared and wget goes well.

    Wget on Jaunty also fails to apply proxy settings when I add an extra comma at the very end of $no_proxy. It seems wget assumes that there is a wildcard (*) after the extra comma. I don't know whether this is a feature of wget or not.
    Last edited by leona@simasima; May 12th, 2010 at 06:25 PM.

  4. #14
    Join Date
    Mar 2010
    Beans
    32

    Re: Lucid proxy problem.

    I'm having a similar problem:
    I've updated bashrc, and apt.conf to include the correct proxy settings with usernames and ports and all that jazz.

    Done similar for the system>preferences>network proxy GUI, and the one in synaptic. the only thing I ahve working is firefox.

    Can anyone help?

  5. #15
    Join Date
    Oct 2008
    Location
    Barcelona
    Beans
    37

    Re: Lucid proxy problem.

    So, to recap everything I have done in Lucid 64bit for being able to correctly work behind a proxy (change 'your.proxy.addres' for your address, 'your_pac_file.pac' for yours if you use a .pac proxy, and 8081 for your port number):


    1) System -> Preferences -> Network proxy

    Manual proxy configuration, Use the same proxy for all protocols
    HTTP proxy: http://your.proxy.address/ Port: 8081

    Click "Apply System-Wide"

    2) Synaptic Package Manager

    Preferences -> Network tab
    Manual config
    HTTP proxy: your.proxy.address Port: 8081
    FTP proxy: your.proxy.address Port: 8081

    3) gksu gedit ~/.bashrc & # add, the following lines at the end:

    Code:
    https_proxy=http://your.proxy.address/your_pac_file.pac:8081
    export https_proxy
    
    http_proxy=http://your.proxy.address/your_pac_file.pac:8081
    export http_proxy
    
    ftp_proxy=http://your.proxy.address/your_pac_file.pac:8081
    export ftp_proxy
    
    export no_proxy=$(echo $no_proxy | sed 's/,$//')  
    # This one last line is to "fix" the dreaded 'trailing comma' bug in the no_proxy environment variable
    4) gksu gedit /etc/wgetrc & # Uncomment or add the lines
    Code:
    https_proxy = http://your.proxy.address:8081/
    http_proxy = http://your.proxy.address:8081/
    ftp_proxy  = http://your.proxy.address:8081/
    
    use_proxy = on
    5) gksu gedit /etc/apt/apt.conf & # Add or modify the lines
    Code:
    Acquire::https::proxy "http://your.proxy.address:8081/";
    Acquire::http::proxy "http://your.proxy.address:8081/";
    Acquire::ftp::proxy "http://your.proxy.address:8081/";
    Bonus) Firefox: Edit -> Preferences -> Advance -> Network -> Settings

    Manual proxy configuration, Use this proxy server for all protocols
    HTTP Proxy: http://your.proxy.address Port: 8081

    Appendix) And restart

    And after doing this, I was finally able to get Synaptic to properly complete the 'flashplugin-installer' wget download and proceed with the installation! Easy huh? I still don't get if there is a 'Network proxy' setting with a button that says "Apply System Wide", the remaining 4 points still need to be applied in order for it to work properly.
    Last edited by Ender985; June 15th, 2010 at 10:11 AM.

  6. #16
    Join Date
    May 2010
    Beans
    2

    Re: Lucid proxy problem.

    This work perfectly. Thanks!

  7. #17
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Lucid proxy problem.

    Quote Originally Posted by Ender985 View Post
    3) gksu gedit ~/.bashrc & # add, the following lines at the end:

    https_proxy=http://your.proxy.address/your_pac_file.pac:8081
    export https_proxy

    http_proxy=http://your.proxy.address/your_pac_file.pac:8081
    export http_proxy

    ftp_proxy=http://your.proxy.address/your_pac_file.pac:8081
    export ftp_proxy
    FYI: you can simplify those lines:

    Code:
    export https_proxy=http://your.proxy.address/your_pac_file.pac:8081
    
    export http_proxy=http://your.proxy.address/your_pac_file.pac:8081
    
    export ftp_proxy=http://your.proxy.address/your_pac_file.pac:8081
    You can probably make those settings system wide by adding them to /etc/environment (rather then per user).
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

Page 2 of 2 FirstFirst 12

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
  •