Ticket #58 (closed defect: fixed)

Opened 7 months ago

Last modified 7 months ago

apt ignores proxy setting

Reported by: iwat Owned by: saurik
Priority: critical Component: Cydia
Keywords: apt Cc:

Description

affected version: apt_0.6.46.4-0.1-22_darwin-arm working version: apt_0.6.46.4-0.1-20_darwin-arm (I've never tested build 21.)

After upgrading apt to build 22, I've got a problem connecting with any sources. Cydia reported "Package Error - Unknown Host" and apt-get command in the shell reported unknown host.

My network needs HTTP proxy and Safari works fine. So I suspected that the latest apt has a problem. I downloaded apt build 20 and use "dpkg" to install it over the latest one. This time, apt works.

PS. This may be a very bad problem for end-user because there is no way to downgrade apt back to working version using Cydia.

Change History

Changed 7 months ago by saurik

  • status changed from new to closed
  • resolution set to fixed

Grr.. I know what happened here :(. Thanks for the report. :(

What's going on is that Apple, in their infinite stupidity with regards to DNS, managed to break the DNS on iPhoneOS 2.0 _again_, _differently_, and recompiled their libraries to specifically defeat the technique I describe at http://apt.saurik.com/id/3. So, I simply added a massive workaround to the whole problem and do the DNS part myself. But now that I think about it, there's no way that could work with an HTTP proxy.

I have reverted this behavior for 1.1.x. If I got it wrong, please reopen the bug.

Changed 7 months ago by saurik

Just noticed the URL was wrong: http://www.saurik.com/id/3.

Note: See TracTickets for help on using tickets.