Package: apt
Version: 1.0.9.3
Severity: important
Hi,
I have an up-to-date jessie chroot for building Debian packages and a repository
hosting additional packages. When I try to build a package with sbuild 0.65.0-1
using the command
sbuild -d jessie-dev -c pb-jessie "--extra-repository=deb
http://repo/pb-debian-dev jessie-dev main non-free contrib"
the build fails due to this apt failure:
W: Failed to fetch
http://repo/pb-debian-dev/dists/jessie-dev/non-free/binary-amd64/Packages Bad
header line
A stripped down sbuild.log with all relevant apt debug output is attached.
First, apt sends a get request for the non-free Packages.xz file and get the
response with exactly 32 bytes length (it's an empty compressed Packages file).
In the second call, apt sends another get request with the range "bytes=32-"
specified. The server response with a HTTP 416 answer, because byte 32 is out of
the range of 0-31 of this 32 bytes long file.
Due to this bug, sbuild fails and I can't build any package. Therefore I would
classify this bug as serious for sbuild.
--
Benjamin Drung
System Developer
ProfitBricks GmbH - The IaaS-Company
Greifswalder Str. 207
D - 10405 Berlin
Mail: benjamin.dr...@profitbricks.com
Fax: +49 30 577 008 598
URL: http://www.profitbricks.com
Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506 B.
Geschäftsführer: Andreas Gauger, Achim Weiss.
Title: 416 Requested Range Not Satisfiable
┌──────────────────────────────────────────────────────────────────────────────┐
│ Fetch source files │
└──────────────────────────────────────────────────────────────────────────────┘
Check dependencies
──────────────────
[...]
Get:4 http://repo jessie-dev/main amd64 Packages [32 B]
GET /pb-debian-dev/dists/jessie-dev/non-free/binary-amd64/Packages.xz HTTP/1.1
Host: repo
Cache-Control: max-age=0
User-Agent: Debian APT-HTTP/1.3 (1.0.9.3)
Answer for: http://repo/pb-debian-dev/dists/jessie-dev/non-free/binary-amd64/Packages.xz
HTTP/1.1 200 OK
Server: nginx/1.4.5
Date: Tue, 18 Nov 2014 17:45:28 GMT
Content-Type: application/x-xz
Content-Length: 32
Last-Modified: Thu, 06 Nov 2014 16:08:06 GMT
Connection: keep-alive
ETag: "545b9ce6-20"
Accept-Ranges: bytes
[...]
┌──────────────────────────────────────────────────────────────────────────────┐
│ Install core build dependencies (apt-based resolver) │
└──────────────────────────────────────────────────────────────────────────────┘
[...]
Ign file: ./ InRelease
Get:1 file: ./ Release.gpg [299 B]
GET /pb-debian-dev/dists/jessie-dev/InRelease HTTP/1.1
Host: repo
Cache-Control: max-age=0
Accept: text/*
If-Modified-Since: Thu, 06 Nov 2014 16:08:06 GMT
User-Agent: Debian APT-HTTP/1.3 (1.0.9.3)
Get:2 file: ./ Release [2119 B]
Answer for: http://repo/pb-debian-dev/dists/jessie-dev/InRelease
HTTP/1.1 304 Not Modified
Server: nginx/1.4.5
Date: Tue, 18 Nov 2014 17:45:29 GMT
Last-Modified: Thu, 06 Nov 2014 16:08:06 GMT
Connection: keep-alive
ETag: "545b9ce6-1453"
Hit http://repo jessie-dev InRelease
Ign file: ./ Translation-en
GET /pb-debian-dev/dists/jessie-dev/main/binary-amd64/Packages.xz HTTP/1.1
Host: repo
Cache-Control: max-age=0
Range: bytes=32-
If-Range: Thu, 06 Nov 2014 16:08:06 GMT
User-Agent: Debian APT-HTTP/1.3 (1.0.9.3)
Answer for: http://repo/pb-debian-dev/dists/jessie-dev/main/binary-amd64/Packages.xz
HTTP/1.1 416 Requested Range Not Satisfiable
Server: nginx/1.4.5
Date: Tue, 18 Nov 2014 17:45:29 GMT
Content-Type: text/html
Content-Length: 212
Connection: keep-alive
Content-Range: bytes */32
Get:3 http://repo jessie-dev/main amd64 Packages [32 B]
GET /pb-debian-dev/dists/jessie-dev/non-free/binary-amd64/Packages.xz HTTP/1.1
Host: repo
Cache-Control: max-age=0
Range: bytes=32-
If-Range: Thu, 06 Nov 2014 16:08:06 GMT
User-Agent: Debian APT-HTTP/1.3 (1.0.9.3)
Answer for: http://repo/pb-debian-dev/dists/jessie-dev/non-free/binary-amd64/Packages.xz
404 Not Found
nginx/1.4.5
HTTP/1.1 304 Not Modified
Server: nginx/1.4.5
Date: Tue, 18 Nov 2014 17:45:29 GMT
Last-Modified: Thu, 06 Nov 2014 16:08:06 GMT
Connection: keep-alive
ETag: "545b9ce6-0"
[...]
W: Failed to fetch http://repo/pb-debian-dev/dists/jessie-dev/non-free/binary-amd64/Packages Bad header line
E: Some index files failed to download. They have been ignored, or old ones used instead.
[...]
|