Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Lucid proxy problem.

  1. #1
    Join Date
    Jun 2007
    Location
    China
    Beans
    996
    Distro
    Ubuntu 12.04 Precise Pangolin

    Lucid proxy problem.

    I connect to the internet through a proxy. I’ve put the proxy settings in Network Proxy and applied system wide, I’ve also added the proxy settings in synaptic.

    OK the problem if I run

    Code:
    sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
    to set up the mediubuntu repositories it fails however if I

    Code:
    sudo –i
    then

    Code:
    wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
    it works. If I try and install flashplugin-nonfree using synaptic it fails when it tries to run the script to down load and install the plugin same with
    Code:
    sudo apt-get install flashplugin-nonfree
    however,
    Code:
    sudo –i
    then
    Code:
    apt-get install flashplugin-nonfree  works.
    Now the bit that baffles me however, sudo apt-get update works fine

    Why? is this a bug?

  2. #2
    Join Date
    Jun 2007
    Location
    China
    Beans
    996
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Lucid proxy problem.

    bump

    Sorry I just want to know if I'm being stupid before I consider filling a bug report

    fails means that it fails to use the proxy settings and I get a resolve error for eg
    unable to resolve host address `www.medibuntu.org'
    Last edited by Gone fishing; May 2nd, 2010 at 10:08 AM.

  3. #3
    Join Date
    Feb 2005
    Beans
    25

    Re: Lucid proxy problem.

    I have the same problem. wget gives you problems because the environment variable "no_proxy" has a trailing comma at the end, but even when you get wget to work apt-get will not use the proxy settings.

    To make things worse, now Synaptic has its own proxy setting, I don't know why, but it is like that. After setting the proxy parameters in Synaptic it will work if you use Synaptic but the command line (apt-get) will still not work.

    Frustrating. An LTS that does not let you install packages if you are behind a proxy.

  4. #4
    Join Date
    Jun 2006
    Beans
    9

    Re: Lucid proxy problem.

    It's not just a wget problem. It seems hit-or-miss as to whether the proxy settings are observed. I've set http_proxy in various places, I've manually set the proxy settings in others.

    I've also set the System -> Preferences -> Network Proxy
    to what it's supposed to be, and none of it works. I can't get Firefox to work with "use system settings". I can't get Google Chrome to work at all with that.

    I don't remember having this many issues with 9.10...

  5. #5
    Join Date
    Feb 2005
    Beans
    25

    Re: Lucid proxy problem.

    OK, I managed to get apt-get to use the proxy. I went to: System / Preferences / Network Proxy and clicked on "Apply System Wide".

    It seems we are going more into the MS Windows "OK vs Apply" way.

    The variable $http_proxy is not respected. Quite complicated when you do not have GUI

  6. #6
    Join Date
    Dec 2005
    Beans
    46

    Re: Lucid proxy problem.

    I have the same issue as Gone Fishing. I have set proxy settings in .bashrc for user and root, and have also applied them system-wide.

    I have noticed that when I run
    Code:
    sudo command
    it fails to use the proxy. running the same command as user and as root work fine.
    sudo echo $http_proxy however returns the correct value.

    This should be reported as a bug. Things work fine in 9.10

  7. #7
    Join Date
    Feb 2009
    Beans
    76
    Distro
    Ubuntu Jaunty Jackalope (testing)

  8. #8
    Join Date
    Jul 2008
    Location
    Wichita, Kansas
    Beans
    87
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Lucid proxy problem.

    Same problem here. I am also having trouble getting it to work with:

    export http_proxy="http://usernameassword@my.proxy.orgort"

    It worked with previous releases.
    Last edited by appier; May 4th, 2010 at 11:40 PM. Reason: try to edit out unintended smily faces...

  9. #9
    Join Date
    Jul 2005
    Beans
    2

    Re: Lucid proxy problem.

    I had the same problem that I cannot use agt-get in the terminal and it was definitely working before by setting the proxy and user authentication in System / Preferences / Network Proxy.

    now this worked for me:

    I added:

    Acquire::http:roxy "http://spi\ug010903:Lemmy4Me@proxy.swissport.aero:8080/";

    to:

    /etc/apt/apt.conf

    rgds,

    uwe

  10. #10
    Join Date
    Jul 2008
    Location
    Wichita, Kansas
    Beans
    87
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Lucid proxy problem.

    Quote Originally Posted by uwegeercken View Post

    I added:

    Acquire::http:roxy "http://spi\ug010903:Lemmy4Me@proxy.swissport.aero:8080/";

    to:

    /etc/apt/apt.conf
    This worked for me as well. Thanks!

Page 1 of 2 12 LastLast

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
  •