Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-21 Thread Mark Hindley
On Mon, Mar 21, 2011 at 08:54:41AM +0100, Eus wrote: Hi! On Sun, 2011-03-20 at 18:22 +0100, Eus wrote: If suppose CURLOPT_FOLLOWLOCATION was set when the wireless connection had been disconnected, then would apt-cacher have cached the login page of the hotspot provider?

Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-20 Thread Tadeus Prastowo
Package: apt-cacher Version: 1.6.12ubuntu1 Severity: important apt-get update returns Bad header line. This problem also happens when using aptitude update and aptitude install although apt-get install works fine. Instrumenting the source code of apt-get: methods/http.cc as follows: ---

Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-20 Thread Eus
Some clarifications: On Sun, 2011-03-20 at 11:44 +0100, Tadeus Prastowo wrote: apt-get update returns Bad header line. This problem also happens when using aptitude update and aptitude install although apt-get install works fine. Actually apt-get install does not work fine. It gives the

Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-20 Thread Mark Hindley
On Sun, Mar 20, 2011 at 11:44:16AM +0100, Tadeus Prastowo wrote: Package: apt-cacher Version: 1.6.12ubuntu1 Severity: important apt-get update returns Bad header line. This problem also happens when using aptitude update and aptitude install although apt-get install works fine. Thanks.

Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-20 Thread Mark Hindley
On Sun, Mar 20, 2011 at 12:15:43PM +0100, Eus wrote: Some clarifications: On Sun, 2011-03-20 at 11:44 +0100, Tadeus Prastowo wrote: apt-get update returns Bad header line. This problem also happens when using aptitude update and aptitude install although apt-get install works fine.

Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-20 Thread Eus
Hi! On Sun, 2011-03-20 at 11:07 +, Mark Hindley wrote: Thanks. It's my pleasure. If you apply this patch to /usr/share/apt-cacher/apt-cacher, does it help? No, it doesn't. I applied the patch to the mentioned file by changing {a,b}/apt-cacher2 to {a,b}/apt-cacher. Otherwise, the patch

Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-20 Thread Mark Hindley
On Sun, Mar 20, 2011 at 02:09:33PM +0100, Eus wrote: Hi! On Sun, 2011-03-20 at 11:07 +, Mark Hindley wrote: Thanks. It's my pleasure. If you apply this patch to /usr/share/apt-cacher/apt-cacher, does it help? No, it doesn't. I applied the patch to the mentioned file by

Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-20 Thread Eus
Hi! On Sun, 2011-03-20 at 14:53 +, Mark Hindley wrote: Having applied the patch could you do /etc/init.d/apt-cacher stop and then ensure there isn't an apt-cacher [libcurl] thread still running (ps -lfC apt-cacher ought to show it). If there is, kill that pid (or wait 5 minutes for it

Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-20 Thread Mark Hindley
On Sun, Mar 20, 2011 at 04:22:43PM +0100, Eus wrote: Hi! On Sun, 2011-03-20 at 14:53 +, Mark Hindley wrote: Having applied the patch could you do /etc/init.d/apt-cacher stop and then ensure there isn't an apt-cacher [libcurl] thread still running (ps -lfC apt-cacher ought to show

Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-20 Thread Eus
Hi! On Sun, 2011-03-20 at 15:50 +, Mark Hindley wrote: Specifically, the file to be downloaded does not exist but instead of passing 404 to the client, apt-cacher returns 302 by, I think, reading an invalid cached header. I am wondering how can the invalid header exists in the very

Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-20 Thread Eus
Hi! On Sun, 2011-03-20 at 17:01 +0100, Eus wrote: On Sun, 2011-03-20 at 15:50 +, Mark Hindley wrote: I suspect it appeared as the CURLOPT_FOLLOWLOCATION was not set. But, if it is possible, I want to have a long-term solution as well. What semantic does 404 have in apt-cacher?

Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-20 Thread Mark Hindley
On Sun, Mar 20, 2011 at 05:09:53PM +0100, Eus wrote: Hi! On Sun, 2011-03-20 at 17:01 +0100, Eus wrote: On Sun, 2011-03-20 at 15:50 +, Mark Hindley wrote: I suspect it appeared as the CURLOPT_FOLLOWLOCATION was not set. But, if it is possible, I want to have a long-term

Bug#618996: apt-get gives Bad header line due to apt-cacher giving Browser does not support redirects!

2011-03-20 Thread Eus
Hi! On Sun, 2011-03-20 at 16:45 +, Mark Hindley wrote: On Sun, Mar 20, 2011 at 05:09:53PM +0100, Eus wrote: Hi! On Sun, 2011-03-20 at 17:01 +0100, Eus wrote: On Sun, 2011-03-20 at 15:50 +, Mark Hindley wrote: I suspect it appeared as the CURLOPT_FOLLOWLOCATION was