Proxy request denied. Can't find package???

Proxy request denied. Can't find package???

by NoMaN NaSeeM -
Number of replies: 5
Hello,
I am installing moodle in ubuntu 9.04 in my university where there is a username and password required to access the net. I can use internet by giving that username and password (in a pop-up window) in every new firefox tab that opens.

Now, my problem is when I tried to download a "mysql" package using command
sudo apt-get install mysql-server
in Terminal it won't ask that username nd password and give error like "Proxy request denied... Can't find mysql-server package"

Where is the problem??? Plz help me. I'm stuck! sad
Average of ratings: -
In reply to NoMaN NaSeeM

Re: Proxy request denied. Can't find package???

by Dale Davies -
Try adding a line like the following to your /etc/apt/apt.conf file (editing it accordingly), then restart...


Acquire::http::Proxy "http://MYDOMAIN\MYNAME:MYPASS@MY.PROXY.COM:MYPORT" 

Also, set the http_proxy environment variable using the following commands on the command line...

http_proxy=http://username:password@host:port/

export http_proxy

This seemed to work for me smile
In reply to Dale Davies

Re: Proxy request denied. Can't find package???

by NoMaN NaSeeM -
Thanx 4 ur help Dale... I'll definitely try it. smile

But I can't understand the line for apt.conf file.
My username is tuser and pwd is 123, host 10.1.0.11 and port 80.
Should it be like:


Acquire::http::Proxy "http://MYDOMAIN\tuser:123@10.1.0.11:80"

And what about MYDOMAIN???
In reply to NoMaN NaSeeM

Re: Proxy request denied. Can't find package???

by Dale Davies -
The domain part is really only if you have a windows network, I would imagine if you have never seen it before then you dont need it.

Try just using the following and see what happens....

Acquire::http::Proxy "http://tuser:123@10.1.0.11:80"

In reply to Dale Davies

Re: Proxy request denied. Can't find package???

by NoMaN NaSeeM -
Plz help I've got a deadline. sad
In reply to NoMaN NaSeeM

Re: Proxy request denied. Can't find package???

by Zied ALAYA -
Put these line at the end of your /etc/bash.bashrc file :
export http_proxy=http://username:password@proxyserver.net:port/
export ftp_proxy=http://username:password@proxyserver.net:port/

so in your case, it will be:
export http_proxy="http://tuser:123@10.1.0.11:8080/"
export ftp_proxy="http://tuser:123@10.1.0.11:8080/"

you can see this page for more info: http://blog.mypapit.net/2006/02/how-to-use-apt-get-behind-proxy-server-ubuntudebian.html

hope this is not your real username and passwd wink