Error occurred in apt repository
In Debian Stretch and Ubuntu 16.04, the following error occurs with the apt-get update command.
I think that the creation method of apt repository is strange.
■Debian 9
root@obsiot:~# apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://ftp.plathome.co.jp/pub/OBSVX2/debian/stretch ./ InRelease
Hit:3 http://ftp.plathome.co.jp/pub/OBSVX2/debian/stretch ./ Release
Ign:4 http://ftp.jp.debian.org/debian stretch InRelease
Hit:5 http://ftp.jp.debian.org/debian stretch-updates InRelease
Hit:6 http://ftp.jp.debian.org/debian stretch Release
Get:7 https://packages.microsoft.com/debian/9/prod stretch InRelease [3232 B]
Get:10 https://packages.microsoft.com/debian/9/prod stretch/main amd64 Packages [38.0 kB]
Err:10 https://packages.microsoft.com/debian/9/prod stretch/main amd64 Packages
Writing more data than expected (38208 > 37999)
Hashes of expected file:
- Filesize:37999 [weak]
- SHA512:194ded11a350aab88b7fc1c5fee5dd6746a6bd0136ee96ad2290fc9459086daf75fbeda376ab00c0455cbeab6e64fa405f82ef0991b28322f29f30dab2aaaede
- SHA256:369f15b8a43c29e6adf6db3329576366123c6bb749ee311f5099752de06474ea
- SHA1:87f67045f0db46ee582998ba1d432b47900f5992 [weak]
- MD5Sum:38eeded94abf10a911e570233047151b [weak]
Release file created at: Tue, 19 Feb 2019 18:30:09 +0000
Fetched 3232 B in 2s (1528 B/s)
Reading package lists... Done
E: Failed to fetch https://packages.microsoft.com/debian/9/prod/dists/stretch/main/binary-amd64/Packages.bz2 Writing more data than expected (38208 > 37999)
Hashes of expected file:
- Filesize:37999 [weak]
- SHA512:194ded11a350aab88b7fc1c5fee5dd6746a6bd0136ee96ad2290fc9459086daf75fbeda376ab00c0455cbeab6e64fa405f82ef0991b28322f29f30dab2aaaede
- SHA256:369f15b8a43c29e6adf6db3329576366123c6bb749ee311f5099752de06474ea
- SHA1:87f67045f0db46ee582998ba1d432b47900f5992 [weak]
- MD5Sum:38eeded94abf10a911e570233047151b [weak]
Release file created at: Tue, 19 Feb 2019 18:30:09 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
■Ubuntu 16.04
root@ubuntu:~# apt-get update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:2 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease [3,226 B]
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:4 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [69.2 kB]
Ign:4 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages
Hit:5 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [76.0 kB]
Ign:4 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages
Get:4 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [364 kB]
Err:4 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages
Writing more data than expected (365941 > 364110)
Fetched 3,226 B in 1s (1,772 B/s)
Reading package lists... Done
E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages Writing more data than expected (365941 > 364110)
E: Some index files failed to download. They have been ignored, or old ones used instead.

This looks like a bug. Please report it on our GitHub issues page. http://www.github.com/azure/iotedge/issues/
Our team uses UserVoice to track feature requests.