Gdebi-gtk cannot use proxy with authentication

Bug #192641 reported by mysticmatrix
44
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gdebi (Ubuntu)
Invalid
Low
Unassigned
Nominated for Karmic by Angelo Lisco
gksu (Ubuntu)
In Progress
Low
Unassigned
Nominated for Karmic by Angelo Lisco

Bug Description

Binary package hint: gdebi

Further Information:
    I have set up proxy setting in both Gnone Proxy setting found under System-->Preferences-->Network Proxy as well as under Netwerk tab of Preferences under Synaptic Package Manager. Now when I try to install a package by Gdebi-gtk , it cannot download packages giving the errors like "<package location> 403 Proxy Authentication Required" .
    However, executing the same thing with terminal like this " gdebi-gtk <pakage file>.deb " installs all the dependencies by downloading them correctly. The same effect can be acheived by unsetting proxy everywhere, exporting http_proxy=http://username:<email address hidden>:port/ in the terminal and then starting gdebi-gtk.

Steps to reproduce:
     Setup a ubuntu box that works behind a proxy with authentication required. This might be reproduced by running Tor or a local squid proxy. Then download any .deb package which needs further dependencies from repositaries. Right click and choose open with Gdebi Package Installer. Give gksudo password. The installation then gives error.

Version Information:
      Ubuntu 7.10 Gutsy Gibbon
      Linux kernal 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux
      gdebi version : 0.3.2ubuntu1

Revision history for this message
mysticmatrix (mishra-anurag07) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I suspect this is actually a bug in the gksu application that is responsible for setting the proxy environment. Could you please run: "gksu xterm" and then "echo $http_proxy" and check if that information looks correct? If not, could you please attach what it looks like (edit out the sensitive information first of course :)

Thanks,
 Michael

Changed in gdebi:
status: New → Incomplete
Revision history for this message
mysticmatrix (mishra-anurag07) wrote :

Yes the information did not look correct. The http_proxy variable shows only "http://proxyname:port/" instead of "http://username:passwd@proxyname:port/".

This is the case when I press Alt+F2 and launch gksudo xterm.
In case if I use gnome-terminal and then launch gksu xterm , the output is correct, i.e. "http://username:passwd@proxyname:port/".

Note that I haven't manually set up the environment variables. I have only set up the variable in gconf by System-->Preferences-->Network Proxy.

Michael Vogt (mvo)
Changed in gdebi:
importance: Undecided → Medium
status: Incomplete → Confirmed
Revision history for this message
Ashwin (cybernytrix) wrote :

I am having the same problem here. It seems that Synaptic/UpdateManager resolves in this order: http_proxy(env) -> .synaptic/conf -> gconf
It seems that gksu sets the incorrect http_proxy env variable and UpdateManager ends up using this. Even though gconf has the right configuration.

Revision history for this message
Ashwin (cybernytrix) wrote :

Patch included. This patch must be used instead of gksu-2.0.0/debian/patches/14_set_http_proxy_env.patch. This fixes the proxy authentication problem for me. It also reworks some error handling.

Revision history for this message
Ashwin (cybernytrix) wrote :

Patch included. This patch must be used instead of gksu-2.0.0/debian/patches/14_set_http_proxy_env.patch. This fixes the proxy authentication problem for me. It also reworks some error handling.

Revision history for this message
DOJAMAIN (dojamain) wrote :

can anyone tell me how to allow sudo to install packages

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

adding gdebi because the duplicate was about gdebi.

Revision history for this message
mysticmatrix (mishra-anurag07) wrote : Re: [Bug 192641] Re: Gdebi-gtk cannot use proxy with authentication

The bug was originally reported on gdebi package itself, but was later
modifies to reflect correct culprit. IMO, We could keep adding to list
'cause almost any application requiring authenticated proxy (with
administrative priv.) won't work. For e.g. Synaptic cannot install
corefonts as it can not download packages from sourceforge and so on.

On Thu, Sep 18, 2008 at 2:42 PM, Lionel Dricot <email address hidden> wrote:
> adding gdebi because the duplicate was about gdebi.
>
> ** Also affects: gdebi (Ubuntu)
> Importance: Undecided
> Status: New
>
> --
> Gdebi-gtk cannot use proxy with authentication
> https://bugs.launchpad.net/bugs/192641
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue is not a gdebi bug

Changed in gdebi (Ubuntu):
importance: Undecided → Low
status: New → Invalid
Changed in gksu (Ubuntu):
importance: Medium → Low
Revision history for this message
Angelo Lisco (angystardust-gmail) wrote :

Hi seb128, I think that this bug should be considered a medium-priority bug because it affects all the enterprise-desktop users (like me and my colleagues).
Thanks a lot for your work.

Angelo

Revision history for this message
PaulW (paulw) wrote :

This also affects me, and I agree, this will also affect many enterprise or network systems which rely on a squid proxy to regulate external net access.

Authentication is provided via Proxy Manager in Gnome, yet apt-get fails to take this into account and fails.

Revision history for this message
Andy Lo-A-Foe (loafoe) wrote :

Ditto, I'm running karmic and just set up Automatic proxy configuration in "Network Proxy Preferences". I also choose to apply these settings "System-Wide". This apparantly does not include Gdebi :)

Revision history for this message
kenden (kenden) wrote :

As a workaround (for those who get stuck by this bug), instead of double-clicking on a .deb file to launch gdebi-gtk, start a gnome-terminal, then type
gksu gdebi-gtk <file-name>.deb

Revision history for this message
neo unplugged (chennavarri) wrote :

kenden.. your alternative solution works for now..
Thank you

Changed in gksu (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Jan Newmarch (jan-newmarch) wrote :

Bug still exists in 10.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.