Control: retitle -1 Non-existing (404) files confuse size tracking
Dear Debian folks,
Am Montag, den 09.02.2015, 23:39 +0100 schrieb Paul Menzel:
[…]
> with, for example, the following package archive mirror entry
>
> $ more /etc/apt/sources.list.d/tox.list
> deb https://repo.tox.im/ nightly main
>
> updating the package cache(?) by running `sudo apt update` shows the
> following warning.
>
> W: Size of file /var/lib/apt/lists/partial/repo.tox.im_dists_nightly_Release.gpg is not what the server reported 473 168
>
> Looking at the “final” file it seems to have the correct size though.
>
> $ ls -l /var/lib/apt/lists/repo.tox.im_dists_nightly_Release*
> -rw-r--r-- 1 root root 1572 Feb 9 22:48 /var/lib/apt/lists/repo.tox.im_dists_nightly_Release
> -rw-r--r-- 1 root root 473 Feb 9 22:48 /var/lib/apt/lists/repo.tox.im_dists_nightly_Release.gpg
>
> Looking at the file on the server it also has a size of 473 bytes [1].
>
> So the warning seems to be incorrect? I saw it with other mirrors too.
looking further into this, it is indeed an APT bug. With
`Debug::Acquire::https` set to true, I get the following output.
$ sudo apt update
[…]
> GET /dists/nightly/InRelease HTTP/1.1
User-Agent: Debian APT-CURL/1.0 (1.0.9.7)
Host: repo.tox.im
Cache-Control: max-age=0
Accept: text/*
< HTTP/1.1 404 Not Found
* Server nginx/1.7.9 is not blacklisted
< Server: nginx/1.7.9
< Date: Sun, 15 Mar 2015 08:55:56 GMT
< Content-Type: text/html
< Content-Length: 168
< Connection: keep-alive
< Vary: Accept-Encoding
<
* Connection #0 to host repo.tox.im left intact
Holen: 2 https://repo.tox.im nightly InRelease
Ign https://repo.tox.im nightly InRelease
* Found bundle for host repo.tox.im: 0x7f3d3bced910
* Re-using existing connection! (#0) with host repo.tox.im
* Connected to repo.tox.im (192.254.75.100) port 443 (#0)
> GET /dists/nightly/Release.gpg HTTP/1.1
User-Agent: Debian APT-CURL/1.0 (1.0.9.7)
Host: repo.tox.im
Accept: */*
Cache-Control: max-age=0
Holen: 3 http://http.debian.net sid/main Sources/DiffIndex [7.876 B]
< HTTP/1.1 200 OK
* Server nginx/1.7.9 is not blacklisted
< Server: nginx/1.7.9
< Date: Sun, 15 Mar 2015 08:55:56 GMT
< Content-Type: application/octet-stream
< Content-Length: 473
< Last-Modified: Sun, 15 Mar 2015 08:44:52 GMT
< Connection: keep-alive
< ETag: "55054684-1d9"
< Alternate-Protocol: 443:npn-spdy/3
< Strict-Transport-Security: max-age=31536000; includeSubdomains;
< Accept-Ranges: bytes
<
* Connection #0 to host repo.tox.im left intact
Holen: 4 http://ftp.debian.org sid/contrib amd64 Packages/DiffIndex [7.819 B]
Holen: 5 http://ftp.debian.org sid/non-free amd64 Packages/DiffIndex [7.819 B]
Holen: 6 http://ftp.debian.org sid/main i386 Packages/DiffIndex [7.876 B]
Holen: 7 http://ftp.debian.org sid/contrib i386 Packages/DiffIndex [7.819 B]
Holen: 8 http://ftp.debian.org sid/non-free i386 Packages/DiffIndex [7.819 B]
Holen: 9 http://ftp.debian.org sid/contrib Translation-en/DiffIndex [7.819 B]
OK http://ftp.debian.org sid/main Translation-de_DE
Holen: 10 http://ftp.debian.org sid/main Translation-de/DiffIndex [7.819 B]
Holen: 11 http://ftp.debian.org sid/main Translation-en/DiffIndex [7.876 B]
Holen: 12 https://repo.tox.im nightly Release.gpg [168 B]
[…]
As you can see, there is no InRelease file in the archive and a 404
error page is returned which has the size of 168 bytes. For whatever
reason, APT than thinks that this is the size of `Release.gpg`, which is
incorrect.
Thanks,
Paul
> [1] https://repo.tox.im/dists/nightly/
[2] https://repo.tox.im/dists/nightly/InRelease
doesn’t exist
Attachment:
signature.asc
Description: This is a digitally signed message part