[Bug 230832] Re: apt /usr/lib/apt/methods/http has proxy issues

Brian Murray brian at ubuntu.com
Wed Mar 7 00:45:40 UTC 2012


Is anybody experiencing this with a supported release of Ubuntu?

** Changed in: apt (Ubuntu)
       Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/230832

Title:
  apt /usr/lib/apt/methods/http has proxy issues

Status in “apt” package in Ubuntu:
  Incomplete

Bug description:
  Binary package hint: apt

  Description:	Ubuntu 8.04
  Release:	8.04
  Source package is: apt-0.7.9ubuntu17

  I am behind a proxy and apt /usr/lib/apt/methods/http does not use the correct http headers when fetching the .tar.gz file. This seems to be a combination of problems and I am not sure if the proxy is buggy or the originating website is buggy. So instead of getting a gzip file, I get a gunzipped tar file from the proxy when I try to get any source packages. 
  This subsequently fails checksum.

  Can you please apply this patch, it is just one line:

  diff -r apt-0.7.9ubuntu17/methods/http.cc ../apt-0.7.9ubuntu17/methods/http.cc
  687a688,691
  >    // generate proper encoding
  >    if (Itm->Uri.substr(Itm->Uri.length() - 3) == ".gz") {
  >        strcat(Buf, "Accept-Encoding: gzip,deflate\r\n");
  >    }

  It simply adds the correct Accept-Encoding header flag while
  requesting a .gz file. This fixes my problem and I can do a "apt-get
  source" from behind a proxy as well.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/230832/+subscriptions




More information about the foundations-bugs mailing list