Proxy Authentication with Synaptic Packag Manager
I'm trying to upgrade using Synaptic Package Manager but it's coming up with this error "407 Proxy Authentication Required". Our office internet connection uses a proxy that requires authentication. I've set up the username & password in Mozilla & I can browse. Where do I set up the username & password for Synaptic Package Manage?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu synaptic Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Dean Sas
- Solved:
- Last query:
- Last reply:
Related bugs
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
In synaptic go to settings, then preferences then network.
Revision history for this message
|
#2 |
You can only input proxy address & port number in network under preferences. There's nowhere to input username & password.
Revision history for this message
|
#3 |
I'm not sure if this works but I think you need to put in the username and password in the proxy field like so:
username:<email address hidden>
Alternatively you can edit the /etc/apt/apt.conf file and add lines like so:
Acquire:
Acquire::ftp::Proxy "ftp://username:
Revision history for this message
|
#4 |
I've edited the proxy field in under preferences network & the /etc/apt/apt.conf file & added the lines but I still can't get no joy.
Revision history for this message
|
#5 |
sorry, did you run "sudo apt-get update" after?
Revision history for this message
|
#6 |
I had the same problem. Adding the lines in apt.conf as above worked for me.
Thanks.
Revision history for this message
|
#7 |
I mean I am able to run apt-get update now after giving the apt.conf lines as above.
Revision history for this message
|
#8 |
I hadn't run "sudo apt-get update" after editing "/etc/apt/
Revision history for this message
|
#9 |
The env variables:
http_proxy=http://
ftp_proxy=ftp://user:
are the most prioritary. This means that apt is using them even though you have set the proxy authentication in apt.conf.
If these variables are not set, then the settings from /etc/apt/apt.conf are used by apt. apt.conf is also used by Synaptic.
The network proxy authentication from Ubuntu, System/
The same thing happens for the proxy setting in Synaptic (Settings/
My working configuration is:
-Leave System/
-Leave the Synaptic Settings/
-edit the /etc/apt/apt.conf like Dean Sas stated above.
-additionally put in /home/user/.basrc the following lines
export http_proxy=http://
export ftp_proxy=ftp://user:
sudo apt-get update should work... Synaptic should work too ... but not in the same time (lock problems...)
Revision history for this message
|
#10 |
I also had a problem with a proxy setting for synaptic (a typo). For some reason Synaptic would freeze if I tried to change it using the GUI (Settings/ .../Network/....
Fixed the typo by editing /root/.
Revision history for this message
|
#11 |
Hi,
I want to configure synaptic with the command:
username:<email address hidden>
The problem is that my username is: "<email address hidden>"
What can I do ?
Revision history for this message
|
#12 |
Bug # 105415 has a patch that should fix Synaptic so you can setup Gnome->
Revision history for this message
|
#13 |
This does not work totally in Feisty too ! Why isnt a fix been released !
Revision history for this message
|
#14 |
Can you try this:-
Remove any proxy configuration from /etc/apt/ that you may have added. Open a terminal and do this:-
export http_proxy=http://
Note the \ before the first @
Then in that same terminal run
sudo apt-get update
And see if it can reach the internet.
sudo synaptic
And see if that can reach the internet.
Revision history for this message
|
#15 |
I am having the same problem except this file doesnt exist on my machine /etc/apt/apt.conf
I am a Linux newb. When I try to create the file it says I dont have permission but I am in the same group as root. Also I don't know what root's password is. When I installed Ubuntu it didn't ask me for a password to set for root. I have some basic understanding of how Linux works. I am sick of M$ Windows crap. Please help me get Ubuntu working so I can transition into Linux. I am working at my workstation right now on a VM virtual machine. We have a proxy here that uses a user name and password. I tried Fedora and no matter what I did it would never authenticate with the proxy, although Firefox was able to authenticate and access websites.
I also tried this in terminal but it didnt help export http_proxy=http://
Revision history for this message
|
#16 |
NHO3, if you have a specific question, you are better off reporting your own support request rather than replying to an existing one.
You may want to note my last reply though, which details how to use a username and password with a windows domain and a proxy.
Also, please read this page about the use of sudo and root:-
Revision history for this message
|
#17 |
I get proxy error. I have created the apt.conf file and put the following in it.
Acquire:
Acquire::ftp::Proxy "http://
sudo apt-get update gives me proxy errors.
Revision history for this message
|
#19 |
407 Proxy Authentication Required Access to the web proxy service is denied.
Revision history for this message
|
#20 |
Should you not use the domain and proxy as I previously mentioned?
export http_proxy=http://
Revision history for this message
|
#22 |
I tried it in the command line again as u mentioned above and now I get error 111 connection refused 91.189.89.8. I would assume this means the proxy is connecting but the site is not responding?
Revision history for this message
|
#23 |
NHO3,
This problem appears related to MSproxy, this means, just like me, you can't get around it using basic authentication.
That said, I did get it to work by using another proxy, namely this one:
http://
This is a python script that forges an NTLM authentication session. Gotta love Microsoft. Always coming up with new "standards" :)
You have to edit the server.cfg file to contain all your details; Proxy, port, NT domain, userID, password, etc. then you run main.py in the background and set your proxy variables to 127.0.0.1:5865
You can add this stuff to your .bashrc as follows:
export http_proxy="http://
export ftp_proxy="http://
/home/<
Where <account> is your ubuntu login ID, and the version is 0.9.9.0.1
so if your login was NH03
The line would be:
/home/NH03/
This will start the proxy in the background each time you login.
By default it will slow you down a bit since it limits the number of simultaneous requests to 5, but you can increase this too.
The only thing the script doesn't like/handle is if your password contains "whitespace" characters, like " " or tab, etc. Make sure you have a normal alphanumeric password. This will likely mean you have have to reset you Windows password, if you have spaces in it, etc. However once that's done it works like a charm first time.
Good luck.
Revision history for this message
|
#24 |
The Last One Works for me... :P