Bug 108864 - Debian-Repositories: W: Size of file is not what the server reported
Summary: Debian-Repositories: W: Size of file is not what the server reported
Status: CLOSED FIXED
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Andras Timar
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-29 15:28 UTC by lool-bugreport
Modified: 2022-04-07 13:34 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lool-bugreport 2017-06-29 15:28:12 UTC
Hi,

seems there is an issue with the Debian-Repository at:

https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian8/

Tested this from three different locations but always getting a size mismatch, even if the installation and signature verification went fine.

W: Size of file /var/cache/apt/archives/partial/collaboraofficebasis5.3-graphicfilter_5.3.10.18-18_amd64.deb is not what the server reported 4028574 16384
W: Size of file /var/cache/apt/archives/partial/collaboraoffice5.3_5.3.10.18-18_amd64.deb is not what the server reported 1201806 16384
W: Size of file /var/cache/apt/archives/partial/collaboraofficebasis5.3-images_5.3.10.18-18_amd64.deb is not what the server reported 8190380 16384
W: Size of file /var/cache/apt/archives/partial/collaboraofficebasis5.3-impress_5.3.10.18-18_amd64.deb is not what the server reported 863926 16384
W: Size of file /var/cache/apt/archives/partial/collaboraofficebasis5.3-extension-pdf-import_5.3.10.18-18_amd64.deb is not what the server reported 2956194 16384
W: Size of file /var/cache/apt/archives/partial/collaboraofficebasis5.3-writer_5.3.10.18-18_amd64.deb is not what the server reported 5763054 16384
W: Size of file /var/cache/apt/archives/partial/collaboraofficebasis5.3-en-us-res_5.3.10.18-18_amd64.deb is not what the server reported 173370 16384
W: Size of file /var/cache/apt/archives/partial/collaboraofficebasis5.3-en-us-calc_5.3.10.18-18_amd64.deb is not what the server reported 49100 20480
W: Size of file /var/cache/apt/archives/partial/collaboraofficebasis5.3-en-us_5.3.10.18-18_amd64.deb is not what the server reported 88234 16384
W: Size of file /var/cache/apt/archives/partial/collaboraofficebasis5.3-calc_5.3.10.18-18_amd64.deb is not what the server reported 11333238 16384
Comment 1 jfblagden 2017-06-30 03:44:43 UTC
I'm not 100% sure, but that sounds more like a Debian issue than a LibreOffice issue. With Linux, developers for each distro compile apps for their distro. For example, Debian developers will compile LibreOffice specifically for Debian. And even if they didn't compile it, LibreOffice would still be in the Debian repositories for Debian users - thus the problem likely lies with Debian's repositories. It might be a good idea to post this bug report on Debian's Bugzilla page.
Comment 2 Aron Budea 2017-07-01 01:15:56 UTC
jfblagden: this repo if of CODE [1], maintained by Collabora (essentially it's branded LibreOffice Online).

Now a question to the reporter. It appears you are getting truncated files (possibly error htmls?), did you try directly downloading an affected file from the repository to see if that works (not as a workaround, but it's hard to imagine one method works and the other doesn't), or looking at the file in the apt cache to see what it contains?

[1] https://www.collaboraoffice.com/code/
Comment 3 lool-bugreport 2017-07-01 09:39:10 UTC
Hey, thanks for your replies. I think i found the issue causing this messages:

The mentioned page https://www.collaboraoffice.com/code/ is telling to use the following repository:

> # add the repository URL to /etc/apt/sources.list
> echo 'deb https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian8 ./' >> /etc/apt/sources.list

However if we check a file mentioned in my initial message with curl we can see the following:

curl -I https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian8/collaboraofficebasis5.3-draw_5.3.10.18-18_amd64.deb

HTTP/1.1 301 Moved Permanently
Date: Sat, 01 Jul 2017 09:33:14 GMT
Server: Apache/2.4.10 (Debian)
Strict-Transport-Security: max-age=15768000; includeSubdomains; preload
Location: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian8/collaboraofficebasis5.3-draw_5.3.10.18-18_amd64.deb
Content-Type: text/html; charset=iso-8859-1

So if we apply this knowledge and change:

https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian8 ./

to

https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian8 ./

we don't get that redirect anymore and apt-get is happy and doesn't throw those messages anymore.

So to solve this issue here there are two options:

1. Update the https://www.collaboraoffice.com/code/ page with the correct links starting with www
2. Don't redirect from https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian8 to https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian8
Comment 4 Aron Budea 2017-07-04 16:53:46 UTC
Okay, we can fix that (likely by using the first option), thanks for the details.
Comment 5 Andras Timar 2017-07-04 17:03:24 UTC
I fixed https://www.collaboraoffice.com/code/ page, thanks.
Comment 6 Watodis Smit 2022-04-07 13:15:32 UTC Comment hidden (spam)