[Hardy] update behind proxy - connections time out

Bug #181999 reported by Christophe Olinger
28
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
High
Michael Vogt
gksu (Ubuntu)
Fix Released
High
Michael Vogt

Bug Description

Binary package hint: apt

Installed ubuntu alpha 3 in vmware today, just like I have done with gutsy final. I have set my proxy in both exactly the same way via the "Network Proxy" in the Preferences menu. In gutsy I can update both via command line (apt-get update) and the GUI. In hardy alpha 3, both do not work. I did not test alpha 2 so I can not say anything there. I had the same thing in Kubuntu alpha 3 where I set my proxy via apt.conf (Acquire::http::Proxy "....") and also via export http_proxy="..."

When I wait a little longer I get a connection time out.

Also. Internet in konqueror worked and also in Firefox.

wget www.yahoo.com in the command line gives me a package via the proxy connection acknowledged as being ok.

When I do ping www.yahoo.com, no packages come through while I can ping my proxy correctly. I am slightly confused...

Glad to provide more info if needed.

Christophe

Related branches

Revision history for this message
Christophe Olinger (olingerc) wrote :

I am going to update from gutsy to hardy in the vmware image. Lets see what happens.

Revision history for this message
Jose De la Rosa (jose-de-la-rosa) wrote :

Any updates here? I've noticed the same thing here. Hard to believe there hasn't been more noise about it...Is there another bug that's tracking this problem?

Revision history for this message
Jose De la Rosa (jose-de-la-rosa) wrote :

For the record, I'm not using vmware, I'm installing directly on a system, though this problem doesn't seem to depend on whether the system is a vm or not.

Revision history for this message
Craig Wayman (craigwayman) wrote :

I upgraded from gutsy to hardy (via a search and replace gusty to hardy in sources.list and a dist-upgrade) and I have this problem too. It just times out on an apt-get update.

wget also works fine to retrieve files through the http_proxy environment variable. browsers are all working fine too.

Changed in dell:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Christophe Olinger (olingerc) wrote :

Just installed a new copy of ubuntu hardy alpha 4 in a vmware at work. Proxy settings have been defined in synaptic and firefox and they both work. Update-amager still can NOT connect and aptitude or apt-get on the server can NOT connect either.

Revision history for this message
Christophe Olinger (olingerc) wrote :

Setting this bug to confirmed

Changed in apt:
status: New → Confirmed
Revision history for this message
Nicklas Svanteson (nicklas-teknister) wrote :

I can also confirm this bug in Hardy alpha 4 from a clean install.

Revision history for this message
Thai (dxxvi) wrote :

I can also confirm this bug in Hardy alpha 4 from a clean install.

Changed in apt:
assignee: nobody → mvo
importance: Undecided → High
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I can reproduce this here too, it turns out that the bug is that sudo is much more strict about the environement variables and filters everything out that is not in a special (and very small) whitelist. This includes http_proxy.

Revision history for this message
Christophe Olinger (olingerc) wrote :

Wow, it sounds so easy and straightforward when you explain it like this. Seems to be easily solvable than. Zhanks a lot.

Revision history for this message
Michael Vogt (mvo) wrote :

This should be fixed with the latest gksu upload (2.0.5-1ubuntu5) and the behavior of gutsy is restored.

Cheers,
 Michael

Changed in apt:
status: Confirmed → Fix Released
Revision history for this message
Jose De la Rosa (jose-de-la-rosa) wrote :

Michael,

I know you marked this as Fix Released, but I still have the same problem after updating gksu to 2.0.5-1ubuntu5. Is it working for you? By the way, I've noticed that the password in http_proxy is always displayed cleartext, I suppose that's a different bug (that I shall open today).

Revision history for this message
Olivier Blanc (olivier-blanc) wrote :

Could it be related to bug #162837 ?

Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

On Tuesday 05 February 2008 17:50:27 Jose De la Rosa wrote:
> Michael,
>
> I know you marked this as Fix Released, but I still have the same
> problem after updating gksu to 2.0.5-1ubuntu5. Is it working for you? By
> the way, I've noticed that the password in http_proxy is always
> displayed cleartext, I suppose that's a different bug (that I shall open
> today).

With a fully update hardy I get:

$ apt-cache show gksu
Package: gksu
Priority: optional
Section: admin
Installed-Size: 472
Maintainer: Ubuntu Core Developers <email address hidden>
Original-Maintainer: Gustavo Noronha Silva <email address hidden>
Architecture: i386
Version: 2.0.0-5ubuntu1

Are you sure its 2.0.5-1ubuntu5 ?

--
BUGabundo :o)
(``-_-´´) http://Ubuntu.BUGabundo.net
Linux user #443786 GPG key 1024D/A1784EBB
My new micro-blog @ http://BUGabundo.net
ps. My emails tend to sound authority and aggressive. I'm sorry in advance. I'll try to be more assertive as time goes by...

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Michael: gksu appears to have fixed synaptic, but not apt-get on the command line (not surprising). Could you investigate why that might be timing out as well.

Changed in apt:
assignee: nobody → mvo
importance: Undecided → High
Revision history for this message
der_vegi (m-may) wrote :

Maybe this is related: I am also behind a proxy, Synaptic works with my proxy-settings, but for example apport (gui and command-line) can't connect. Uploading a crash report, I always have to use apport-cli tunneling the proxy with tsocks.
Using Hardy amd64.

Revision history for this message
Jose De la Rosa (jose-de-la-rosa) wrote :

Since apt-get is still broken, I will open a new bug for it, since it seems this bug was used for fixing gksu.

Changed in dell:
status: Confirmed → Fix Released
Michael Vogt (mvo)
Changed in apt:
status: New → Fix Released
Changed in somerville:
importance: Undecided → High
status: New → Fix Released
no longer affects: dell
Revision history for this message
Timothy R. Chavez (timrchavez) wrote :

The bug task for the somerville project has been removed by an automated script. This bug has been cloned on that project and is available here: https://bugs.launchpad.net/bugs/1305474

no longer affects: somerville
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.