On Thu, Aug 16, 2012 at 09:27:16AM +0300, Arie Skliarouk wrote:
> package: apt-cacher
> version: 1.7.4
> 
> Add ubuntugames PPA:
> sudo add-apt-repository "deb http://archive.ubuntugames.org ubuntugames main"
> 
> When trying to "apt-get update" on another machine from the PPA
> through apt-cacher, I get "Error reading from server. Remote end
> closed connection" messages. If I disable apt-proxy on the machine,
> everything works.
> 
> apt-cacher's error.log has following lines:

Could you add the following patch which should fix the uninitialized 
value. But I am not clear if that is all that is going on. If it doesn't 
fix it completely could you enable debugging and post error.log after a 
failed apt-get update.

Many thanks

Mark

diff --git a/apt-cacher b/apt-cacher
index 2d4309f..f719ec9 100755
--- a/apt-cacher
+++ b/apt-cacher
@@ -1629,9 +1629,10 @@ sub libcurl {
                        $cfg->{debug} && debug_message('libcurl reading of 
headers complete: ' . $response->code);
                        chomp_message($response);
                        if ($curl_request->method eq 'GET' && 
$response->is_success) {
                            # Check space
                            my $statfs;
                            if (defined($statfs = df($cfg->{'cache_dir'}, 1)) &&
+                               $response->header('Content-Length') &&
                                $response->header('Content-Length') >=  
$statfs->{bavail} ||
                                $cfg->{_disk_usage_limit} && $statfs->{used} + 
$response->header >= $cfg->{_disk_usage_limit}) {
                                info_message('ALARM: Insuffient space for 
Content-Length: '.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to