Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 36

Thread: HOWTO: Update from behind a proxy server

  1. #11
    Join Date
    Oct 2006
    Location
    London
    Beans
    358
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Update from behind a proxy server

    Hey every1 i found this post when searching for it to find a fix for kubuntu when using a proxy server for my uni, now just a lil note, im no expert at linux or kubuntu im very new, im just letting you know what worked for me just incase it might work for you too, anyway good luck.

    Now i didnt find this post handy but i figured i just let you all know what worked for me, just so any1 else like me using kubuntu might find it and might give a helping hand

    Originally i couldnt use adept or sudo apt-get update, the apt-get just failed each repo in the terminal

    All i had to do was change my /etc/apt/apt.conf file so that it had

    Acquire::http:roxy “http://wwwcache.bris.ac.uk:8080”;

    Originally mine just didnt have the http:// at the start but you many need to change Acquire::http:roxy “false”; to match the one above for your proxy server.

  2. #12
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Beans
    248
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Update from behind a proxy server

    sorry im a complete novice on this issue and im running dapper behind a corperation proxy. I can get out through mozilla with auto proxy config setting but obviously synaptic manager is a different kettle of fish. How do I find out what port I should be using in these settings? I can scan my proxy and see what services are there but 8080 is not. any help much appreciated.
    Koala 9.10 Foxconn MB - AMD64 - 2GB RAM - NIVIDA Geforce 6150 Integrated Graphics / Geforce series 8 card- integrated Reatek 5.1- PCI WIFI. Laptop P3 245mb ram Xubuntu Jaunty

  3. #13
    Join Date
    Apr 2007
    Beans
    2

    Re: HOWTO: Update from behind a proxy server

    Hi,
    I'm trying to upgrade from Kubuntu Fiesty to Gutsy behind a proxy. I did add the 'Acquire' line to the /etc/apt/apt.conf.d/70debconf file.

    It was able to get to the repositories and download packages to update. But the next step adept performs is a copy.. this copy keeps failing.. it does not say it fails.. it just seems to time out and not copy the required file.

    When this copy is successful the upgrade button at the top menu of adept appears. So at the moment this is not happening..
    Anyway what to do to overcome this problem?

    It this a bug.. to me during the design of adept someone forgot about proxies..

    Cheers,
    Aldo

  4. #14
    Join Date
    Apr 2007
    Location
    Southern California
    Beans
    26
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Update from behind a proxy server

    Quote Originally Posted by mattgaunt View Post
    ...
    All i had to do was change my /etc/apt/apt.conf file so that it had

    Acquire::http:roxy “http://wwwcache.bris.ac.uk:8080”;

    .
    A word of caution. If you cut and paste directly (as I did) the double quotes will screwed up and apt won't know what to do. Apparently, when this web page is formatted, the double quotes are automatically made pretty, with different open and close quotes.

    Anyway, if you are like me, you may have no /etc/apt/apt.conf file at all. Don't sweat it. Create a new one. It will be one line (the one above). Then replace the double quotes and use your own server.

  5. #15
    Join Date
    Feb 2008
    Location
    Small rock in large ocean
    Beans
    33
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Update from behind a proxy server

    Hey Everyone:

    I'm running Kubuntu Hardy behind a network proxy. I'm having the same problem that PsaltyDS talked about in December 06. I made the changes to bash.bashrc and got Adept to update the list, but it crashes on change. Apt-get works fine once I have the package lists, but it's annoying to have to go back and forth between the programs.

    From later posts it looked like making changes to the apt.conf file might solve the problem. But, I went in and found that I have a folder apt.conf.d rather than a file apt.conf. Since there was talk of making the change near the cdrom command I made the change in the 00trustcdrom file. Didn't make the difference. I notice Doyen made the change to a different file 70debconf and wasn't able to get it to work.

    So, a different one of those files? None of those files? Create a file somewhere?

    Thanks for any help on this.

  6. #16
    Join Date
    Jun 2007
    Beans
    2

    Re: HOWTO: Update from behind a proxy server

    When create the /etc/apt/apt.conf file and add the proxy lines in it:
    Acquire::http:roxy "http://server/auto.proxy";

    (My server doesn't seem to allow a userassword and I would not like to put it in the file clear text anyway for security reasons. I did try that to see if it worked and had the same results.)

    I get output from apt-get update as follows:
    Ign http://archive.canonical.com hardy Release.gpg
    Ign cdrom://Kubuntu 8.04 _Hardy Heron_ - Release i386 (20080423) hardy/main Translation-en_US
    Ign http://us.archive.ubuntu.com hardy Release.gpg
    Ign http://archive.canonical.com hardy/partner Translation-en_US
    Ign cdrom://Kubuntu 8.04 _Hardy Heron_ - Release i386 (20080423) hardy/restricted Translation-en_US
    ...

    Err http://us.archive.ubuntu.com hardy/main Packages
    404 Not Found
    Err http://us.archive.ubuntu.com hardy/restricted Packages
    404 Not Found
    Err http://us.archive.ubuntu.com hardy/main Sources
    404 Not Found
    Err http://us.archive.ubuntu.com hardy/restricted Sources
    404 Not Found
    Err http://us.archive.ubuntu.com hardy/universe Packages
    404 Not Found
    Err http://us.archive.ubuntu.com hardy/universe Sources
    404 Not Found

    ...

    W: Failed to fetch http://archive.canonical.com/ubuntu/...86/Packages.gz 404 Not Found

    W: Failed to fetch http://archive.canonical.com/ubuntu/...rce/Sources.gz 404 Not Found

    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...86/Packages.gz 404 Not Found

    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...86/Packages.gz 404 Not Found

    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...rce/Sources.gz 404 Not Found

    When I paste one of the urls in a web browser it finds it no problem. When I remove the /etc/apt/apt.conf file and unset the http_proxy environment apt-get just hangs and eventually times out.

    --John

  7. #17
    Join Date
    Nov 2008
    Beans
    3

    Re: HOWTO: Update from behind a proxy server

    Gotta Unset the env variables.

    # printenv
    # export http_proxy=
    # export https_proxy=
    # printenv

  8. #18
    Join Date
    Jan 2009
    Beans
    5

    Re: HOWTO: Update from behind a proxy server

    System>preferences>network proxy
    under proxy configuration, click the manual proxy configuration radio button, and probably u would wanna use the same proxy for all protocols...
    Click on details button, and there u can enter the proxy machine's username and password to authenticate..
    In case u want to apply the settings system wide, click the "apply system wide" icon.. And u are done...

  9. #19
    Join Date
    Dec 2006
    Location
    Thailand
    Beans
    23
    Distro
    Ubuntu 6.06 Dapper

    Exclamation Re: HOWTO: Update from behind a proxy server

    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"
    Last edited by Anjue; November 4th, 2009 at 05:42 AM. Reason: add error msg

  10. #20
    Join Date
    Nov 2009
    Beans
    1

    Re: HOWTO: Update from behind a proxy server

    I cannot update my Ubuntu 9.04 , dispite following the suggestions on this and other threads.


    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...-i386/Packages 407 Proxy Authentication Required
    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...-i386/Packages 407 Proxy Authentication Required
    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...source/Sources 407 Proxy Authentication Required
    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...source/Sources 407 Proxy Authentication Required
    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...source/Sources 407 Proxy Authentication Required
    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...-i386/Packages 407 Proxy Authentication Required
    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...source/Sources 407 Proxy Authentication Required
    W: Failed to fetch http://archive.canonical.com/ubuntu/...-i386/Packages 407 Proxy Authentication Required
    W: Failed to fetch http://archive.canonical.com/ubuntu/...source/Sources 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...-i386/Packages 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...-i386/Packages 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...-i386/Packages 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...source/Sources 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...source/Sources 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...source/Sources 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...-i386/Packages 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...source/Sources 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...-i386/Packages 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...-i386/Packages 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...-i386/Packages 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...source/Sources 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...source/Sources 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...source/Sources 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...-i386/Packages 407 Proxy Authentication Required
    W: Failed to fetch http://za.archive.ubuntu.com/ubuntu/...source/Sources 407 Proxy Authentication Required



    Please could someone advise what port the "sudo apt-get" command uses to access the repositories, so I can check if my proxy has that port open.

    I have implemented the following system wide setting for my proxy: http://10.10.2.10:80/ , note that port 8080 does not work.

    I can browse the net, but I cannot get updates, even through synaptic package manager.

Page 2 of 4 FirstFirst 1234 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
  •