LJay Posted February 27, 2012 Posted February 27, 2012 Hello i hope i'm not posting in the wrong section. Pretty much at work i have a Linux box which is running ubuntu 10.04. I can browse the internet by typing the proxy settings into firefox > network, but using the command apt-get update or wget google.co.uk etc gives me this error which is posted below. root@lewis-desktop:/home/lewis# apt-get update Ign http://gb.archive.ubuntu.com lucid Release.gpg Ign http://security.ubuntu.com lucid-security Release.gpg Ign http://dl.google.com stable Release.gpg Ign http://gb.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_GB Ign http://dl.google.com/linux/chrome/deb/ stable/main Translation-en_GB Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_GB Ign http://gb.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_GB Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_GB Ign http://dl.google.com stable Release Ign http://dl.google.com stable/main Packages Ign http://gb.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_GB Ign http://gb.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_GB Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_GB Ign http://dl.google.com stable/main Packages Ign http://security.ubuntu.com lucid-security Release Ign http://gb.archive.ubuntu.com lucid-updates Release.gpg Err http://dl.google.com stable/main Packages 407 Proxy Authentication Required Ign http://security.ubuntu.com lucid-security/main Packages Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_GB Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_GB Ign http://security.ubuntu.com lucid-security/restricted Packages Ign http://security.ubuntu.com lucid-security/main Sources Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_GB Ign http://security.ubuntu.com lucid-security/restricted Sources Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_GB Ign http://gb.archive.ubuntu.com lucid Release Ign http://security.ubuntu.com lucid-security/universe Packages Ign http://security.ubuntu.com lucid-security/universe Sources Ign http://gb.archive.ubuntu.com lucid-updates Release Ign http://security.ubuntu.com lucid-security/multiverse Packages Ign http://gb.archive.ubuntu.com lucid/main Packages Ign http://gb.archive.ubuntu.com lucid/restricted Packages Ign http://security.ubuntu.com lucid-security/multiverse Sources Ign http://gb.archive.ubuntu.com lucid/main Sources Ign http://security.ubuntu.com lucid-security/main Packages Ign http://gb.archive.ubuntu.com lucid/restricted Sources Ign http://security.ubuntu.com lucid-security/restricted Packages Ign http://security.ubuntu.com lucid-security/main Sources Ign http://gb.archive.ubuntu.com lucid/universe Packages Ign http://gb.archive.ubuntu.com lucid/universe Sources Ign http://security.ubuntu.com lucid-security/restricted Sources Ign http://security.ubuntu.com lucid-security/universe Packages Ign http://gb.archive.ubuntu.com lucid/multiverse Packages Ign http://security.ubuntu.com lucid-security/universe Sources Ign http://gb.archive.ubuntu.com lucid/multiverse Sources Ign http://gb.archive.ubuntu.com lucid-updates/main Packages Ign http://security.ubuntu.com lucid-security/multiverse Packages Ign http://security.ubuntu.com lucid-security/multiverse Sources Ign http://gb.archive.ubuntu.com lucid-updates/restricted Packages Ign http://gb.archive.ubuntu.com lucid-updates/main Sources Err http://security.ubuntu.com lucid-security/main Packages 407 Proxy Authentication Required Ign http://gb.archive.ubuntu.com lucid-updates/restricted Sources Err http://security.ubuntu.com lucid-security/restricted Packages 407 Proxy Authentication Required Ign http://gb.archive.ubuntu.com lucid-updates/universe Packages Err http://security.ubuntu.com lucid-security/main Sources 407 Proxy Authentication Required Err http://security.ubuntu.com lucid-security/restricted Sources 407 Proxy Authentication Required Ign http://gb.archive.ubuntu.com lucid-updates/universe Sources Err http://security.ubuntu.com lucid-security/universe Packages 407 Proxy Authentication Required Ign http://gb.archive.ubuntu.com lucid-updates/multiverse Packages Ign http://gb.archive.ubuntu.com lucid-updates/multiverse Sources Err http://security.ubuntu.com lucid-security/universe Sources 407 Proxy Authentication Required Ign http://gb.archive.ubuntu.com lucid/main Packages Err http://security.ubuntu.com lucid-security/multiverse Packages 407 Proxy Authentication Required Ign http://gb.archive.ubuntu.com lucid/restricted Packages Err http://security.ubuntu.com lucid-security/multiverse Sources 407 Proxy Authentication Required Ign http://gb.archive.ubuntu.com lucid/main Sources Ign http://gb.archive.ubuntu.com lucid/restricted Sources Ign http://gb.archive.ubuntu.com lucid/universe Packages Ign http://gb.archive.ubuntu.com lucid/universe Sources Ign http://gb.archive.ubuntu.com lucid/multiverse Packages Ign http://gb.archive.ubuntu.com lucid/multiverse Sources Ign http://gb.archive.ubuntu.com lucid-updates/main Packages Ign http://gb.archive.ubuntu.com lucid-updates/restricted Packages Ign http://gb.archive.ubuntu.com lucid-updates/main Sources Ign http://gb.archive.ubuntu.com lucid-updates/restricted Sources Ign http://gb.archive.ubuntu.com lucid-updates/universe Packages Ign http://gb.archive.ubuntu.com lucid-updates/universe Sources Ign http://gb.archive.ubuntu.com lucid-updates/multiverse Packages Ign http://gb.archive.ubuntu.com lucid-updates/multiverse Sources Err http://gb.archive.ubuntu.com lucid/main Packages 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid/restricted Packages 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid/main Sources 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid/restricted Sources 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid/universe Packages 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid/universe Sources 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid/multiverse Packages 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid/multiverse Sources 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid-updates/main Packages 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid-updates/restricted Packages 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid-updates/main Sources 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid-updates/restricted Sources 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid-updates/universe Packages 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid-updates/universe Sources 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid-updates/multiverse Packages 407 Proxy Authentication Required Err http://gb.archive.ubuntu.com lucid-updates/multiverse Sources 407 Proxy Authentication Required W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/main/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/main/source/Sources.gz 407 Proxy Authentication Required W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/restricted/source/Sources.gz 407 Proxy Authentication Required W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/universe/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/universe/source/Sources.gz 407 Proxy Authentication Required W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/multiverse/source/Sources.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/main/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/main/source/Sources.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/restricted/source/Sources.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/universe/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/universe/source/Sources.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid/multiverse/source/Sources.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/main/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/restricted/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/main/source/Sources.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/restricted/source/Sources.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/universe/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/universe/source/Sources.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/multiverse/binary-i386/Packages.gz 407 Proxy Authentication Required W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/lucid-updates/multiverse/source/Sources.gz 407 Proxy Authentication Required E: Some index files failed to download, they have been ignored, or old ones used instead. I have tried adding user:password@proxy:port into apt.conf but still didn't help. I would really like this to work but it wont due to needing my user and password to authenticate with the proxy. Thanks
CyberNerd Posted February 27, 2012 Posted February 27, 2012 Sounds similar to this problem: http://www.edugeek.net/forums/nix/90626-debian-server-through-proxy.html#post793040
januttall Posted February 27, 2012 Posted February 27, 2012 (edited) set the proxy for apt-get do the following go to /etc/apt/apt.conf (edit with what ever you like i prefer nano) change the file to read [Acquire::http::Proxy "http://YOUR-PROXY:8080";] (without the square brackets) restart the machine. FYI if you have more thn one working interface it will get stuck choseing a gateway so only set the gateway one one interface or set all but the interface on DHCP to not have a Default gateway. Edited February 27, 2012 by januttall made it make scence:P
LJay Posted February 27, 2012 Author Posted February 27, 2012 Hi thanks for the reply, but my apt.conf already has my proxy , its the authentication which i need to enable like http://username:password@proxy:port but that doesnt seem to work either
LJay Posted February 27, 2012 Author Posted February 27, 2012 I think i will just give up and not use my work linux for much and just use the one i have at home
tom_newton Posted February 27, 2012 Posted February 27, 2012 I am guessing your proxy is using ntlm auth rather than proxy-auth, or that the sites you are going to are blocked. If you are your proxy administrator, how about setting those sites as "allow" and "do not auth for", if thats possible.
mirojr Posted March 7, 2012 Posted March 7, 2012 export http_proxy=http://username:[email protected]:port/ export ftp_proxy=http://username:[email protected]/ Wondered if this works for you
sadikkilic Posted July 18, 2012 Posted July 18, 2012 i have exactly same problem, looking for a solution i'm using ubuntu 10.04 and these are what i tried so far. i added my proxy adress, port, user and password by using gui (System->Preferences->Network Proxy->Manual) i tried to export http_proxy, https_proxy on terminal by using correct proxy definition. Also i had firefox, google chrome and opera. interestingly, just firefox can accces internet if i configure to use manual settings in firefox. All the way, the result always 407. Any help would be appreciated
sadikkilic Posted July 18, 2012 Posted July 18, 2012 ok. solved. install ntlmaps, configure it and use 127.0.0.1:5865 as proxy. that's all
jinnantonnixx Posted July 18, 2012 Posted July 18, 2012 (edited) set the proxy for apt-get do the following go to /etc/apt/apt.conf (edit with what ever you like i prefer nano) change the file to read [Acquire::http::Proxy "http://YOUR-PROXY:8080";] (without the square brackets) . This is the best approach. A common error is to omit a domain if your proxy expects one. If your proxy expects a domain, you should include it like this: Acquire::http::Proxy "http://your_domain\\your_user@your_proxy:8080"; You should have two backslashes as the backslash is an 'escape' character. Edited July 18, 2012 by jinnantonnixx
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now