Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I try to install a software using Ubuntu Software center I get:

Failed to download repository information
Check Your Internet connection

When I try to do a apt-get install something, I get:

407  Proxy Authentication Required

I use a proxy server that requires a user-name and a password. I have set my systems proxy manually, by plugging in the required numbers in the Networks proxy and applied it system wide. I guess the problem now is plugging in my user-name and password.

When I use INTERNET via Mozilla, it specifically asks me for my user-name and password.

share|improve this question

5 Answers

For your apt-get to work, you should edit your apt config file:

sudo gedit /etc/apt/apt.conf

And add Acquire::http::Proxy "http://username:password@proxyhost:port/";

The syntax shown above should be strictly followed.

This configuration may fail if your username or password has an '@' in it. You can also add proxy configuration for other protocols such as FTP.

share|improve this answer
1  
I did exactly what you said but it still gives me the same error. It didn't solve the problem. – DeLiK Dec 4 '12 at 19:59

I think this tutorial should help you.

Click on Network tab select Manual Proxy Configuration option and enter your proxy server,port details.If you have username,password click on Authentication to enter these details click on ok

(from http://www.ubuntugeek.com/how-to-configure-ubuntu-desktop-to-use-your-proxy-server.html)

To invoke it for all programs launched in a shell I would suggest you either add it to your /etc/bash.bashrc using gksudo gedit /etc/bash.bashrc to apply it system-wide for all bash sessions or to your user-space ~/.bashrc.

As far as Synaptic goes, in the Preferences under the Network tab you seem to be able to set authentification for your proxies. This appears to be specific to Synaptic, though.

share|improve this answer
I use Ubuntu 11, can u help me in reaching synaptic – user38507 Dec 19 '11 at 15:11
also where exactly in thie bash.bashrc does one need to plug in the username and password – user38507 Dec 19 '11 at 15:14
export http_proxy=http://username:password@proxyhost:port/ – bodhi.zazen Dec 19 '11 at 16:38
i gave the command sudo echo "export http_proxy=swastik:ramdayal@192.168.11.107:8081/"; >> /etc/bash.bashrc even now i get the same error – user38507 Dec 20 '11 at 4:29

If your user name is separated by space then use:

export http_proxy='http://Pankaj Kumar Pandit:ABCD@192.168.1.1:3128/'

If your user name not separated by space the use:

export http_proxy=http://Pankaj Kumar Pandit:ABCD@192.168.1.1:3128/

The difference is ' '.

share|improve this answer

I was also facing the same problem. Then i came to know about CNTLM . Now it works really well . See how to configure CNTLM here.

share|improve this answer
2  
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Oyibo Jan 13 at 10:44

One nice alternative is to use Synaptic Package ManagerInstall Synaptic, where you can specify system independent proxy settings and also store username and password.

Proxy Settings

However, this won't change proxy for Software Center.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.