core icon indicating copy to clipboard operation
core copied to clipboard

Can't install .NET Core on Ubuntu, Debian from the Linux package repository: "File has unexpected size (23655 != 156065)"

Open briannippert opened this issue 6 years ago • 74 comments

Issue Title

Error setting up .NET core repository on Ubuntu 19.04

General

I am attempting to install .NET Core from the instructions that are provided here https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-1904

After running sudo apt-get update after adding the repository I get the following error-

  Hashes of expected file:
   - Filesize:156065 [weak]
   - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
   - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
   - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
   - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
  Release file created at: Thu, 12 Dec 2019 19:59:19 +0000

briannippert avatar Dec 13 '19 01:12 briannippert

Same issue, looks like this same/similar type of issue has happened multiple times now, what's going on and how can this be prevented in the future? Is .NET Core not recommended for production workloads?

Thanks!

https://github.com/microsoft/vscode/issues/41094

https://github.com/dotnet/core/issues/3221

https://answers.microsoft.com/en-us/skype/forum/all/skypeforlinux-file-has-unexpected-size-2248-2466/433d5ea9-276e-427f-82b0-97dffa9cd32f

https://answers.microsoft.com/en-us/skype/forum/all/file-has-unexpected-size-2248-2456-mirror-sync-in/4958ccb9-a5d9-4799-a567-dbbff46c347f

Err:9 https://packages.microsoft.com/ubuntu/19.04/prod disco/main amd64 Packages
  File has unexpected size (23655 != 156065). Mirror sync in progress? 
  Hashes of expected file:
   - Filesize:156065 [weak]
   - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
   - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
   - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
   - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
  Release file created at: Thu, 12 Dec 2019 19:59:19 +0000

mabeshark avatar Dec 13 '19 03:12 mabeshark

I'm reaching out to the Microsoft Linux repo admins (filing ticket, emailing).

This is reported for 18.04 and 19.10 as well. The Microsoft Linux repo admins did some maintenance around the time of the first report, so this may be related.

dagood avatar Dec 13 '19 03:12 dagood

I have similar issue at Debian 9 stretch.

W: Conflicting distribution: https://packages.microsoft.com/debian/9/prod stretch InRelease (expected stretch but got stable)
E: Failed to fetch https://packages.microsoft.com/debian/9/prod/dists/stretch/main/binary-amd64/Packages.bz2  Hash Sum mismatch
   Hashes of expected file:
    - Filesize:156065 [weak]
    - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
    - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
    - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
    - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
   Hashes of received file:
    - SHA512:a18b4df496d00477e52cf62e01c9f6c9534926ad0e3bf17f94fc28fc9bd91d5ee5e906b460477e2c1b280a5757a067937c9b2724bd6c72066e982a19306f28b8
    - SHA256:94e637dd6df186bbed5a19f2e7bdc2dcc8f7bb0feb2f1eaf93f05b45dd322cc4
    - SHA1:fb9e80e17952a577030e9266737b23269c8d878b [weak]
    - MD5Sum:4360374f4ec05159ef14908c0dbf4116 [weak]
    - Filesize:68668 [weak]
   Last modification reported: Fri, 13 Dec 2019 01:35:23 +0000
   Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

kitsuyui avatar Dec 13 '19 03:12 kitsuyui

I've sent out a ticket and mail, waiting for acknowledgement from the repo admins.

Same issue, looks like this same/similar type of issue has happened multiple times now, what's going on and how can this be prevented in the future?

Check out https://github.com/dotnet/core/issues/2731 for more on the situation with this service.

Is .NET Core not recommended for production workloads?

We're aware these outages have significant impact on a lot of people, and do our best to make sure issues are being resolved. We support installing from the Microsoft Linux repos, and it's a good way to keep a machine up to date on .NET Core since it works with ordinary apt upgrade/yum update/etc.

I will mention, though, there are other ways to get .NET Core that might be a better fit depending on how you run .NET Core in production. See linux-setup.md, or you might also be interested in the .NET Core Docker images.

dagood avatar Dec 13 '19 04:12 dagood

This is quite embarrassing for Microsoft really. Doing proper repository updates is not that difficult.

niklasholm avatar Dec 13 '19 06:12 niklasholm

similar issue at Ubuntu 18.04.3

Err:7 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
  File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.75.127.55 443]
  Hashes of expected file:
   - Filesize:156065 [weak]
   - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
   - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
   - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
   - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
  Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Fetched 3,959 B in 1s (6,081 B/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease (expected bionic but got stable)
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2  File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.75.127.55 443]
   Hashes of expected file:
    - Filesize:156065 [weak]
    - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
    - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
    - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
    - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
   Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

oudi avatar Dec 13 '19 07:12 oudi

Facing this in 16.04 as well

W: GPG error: https://packages.microsoft.com/repos/azurecore xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B02C46DF417A0893
W: The repository 'https://packages.microsoft.com/repos/azurecore xenial InRelease' is not signed.
E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages.bz2  Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.

cool-mist avatar Dec 13 '19 07:12 cool-mist

Same Issue Here


Err:7 https://packages.microsoft.com/ubuntu/19.04/prod disco/main amd64 Packages
  File has unexpected size (23655 != 156065). Mirror sync in progress? [IP: 13.9                                                                                                                                                             1.48.226 443]
  Hashes of expected file:
   - Filesize:156065 [weak]
   - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a7                                                                                                                                                             8282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
   - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
   - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
   - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
  Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Fetched 246 kB in 1s (183 kB/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/19.04/prod di                                                                                                                                                             sco InRelease (expected disco but got stable)
E: Failed to fetch https://packages.microsoft.com/ubuntu/19.04/prod/dists/disco/                                                                                                                                                             main/binary-amd64/Packages.bz2  File has unexpected size (23655 != 156065). Mirr                                                                                                                                                             or sync in progress? [IP: 13.91.48.226 443]
   Hashes of expected file:
    - Filesize:156065 [weak]
    - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a                                                                                                                                                             78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
    - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
    - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
    - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
   Release file created at: Thu, 12 Dec 2019 19:59:19 +0000

mikiab12 avatar Dec 13 '19 08:12 mikiab12

Facing this in 18.04. Broke our ansible server.

$ sudo apt update
Hit:1 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Get:3 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3959 B]
Hit:5 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic InRelease
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Origin' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Label' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Suite' value from 'bionic' to 'stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Codename' value from 'bionic' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:7 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [156 kB]
Err:7 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
  File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.76.190.189 443]
  Hashes of expected file:
   - Filesize:156065 [weak]
   - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
   - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
   - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
   - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
  Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Fetched 78.5 kB in 2s (50.5 kB/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease (expected bionic but got stable)
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2  File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.76.190.189 443]
   Hashes of expected file:
    - Filesize:156065 [weak]
    - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
    - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
    - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
    - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
   Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

xlanor avatar Dec 13 '19 08:12 xlanor

Same issue for ubuntu 16.04

E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages.gz  Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c apt-get update -qq' returned a non-zero code: 100

chensun avatar Dec 13 '19 08:12 chensun

Same issue on ubuntu18.04

Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3,959 B]                                                                                                                          
Hit:3 http://dl.google.com/linux/chrome/deb stable Release                                                                                                                                                 
Hit:4 https://packages.microsoft.com/repos/ms-teams stable InRelease                                                                                                                                       
Hit:5 https://download.docker.com/linux/ubuntu bionic InRelease                                                                                                                                            
Get:6 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [156 kB]                                                                                                                 
Err:6 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages                                                                                                                          
  File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.75.127.55 443]
  Hashes of expected file:
   - Filesize:156065 [weak]
   - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
   - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
   - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
   - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
  Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Hit:7 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease                                                                                                                                        
Hit:8 http://repo.mysql.com/apt/ubuntu bionic InRelease                                                                                                                                                    
Hit:9 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease                                                                                                                                  
Hit:11 http://archive.ubuntu.com/ubuntu bionic InRelease                                                                                                                                                   
Hit:12 https://www.charlesproxy.com/packages/apt charles-proxy InRelease                                                                                 
Hit:13 https://download.mono-project.com/repo/ubuntu stable-bionic InRelease
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Fetched 256 kB in 2s (109 kB/s)                                  
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease (expected bionic but got stable)
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2  File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.75.127.55 443]
   Hashes of expected file:
    - Filesize:156065 [weak]
    - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
    - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
    - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
    - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
   Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

coopsrc avatar Dec 13 '19 08:12 coopsrc

Doing apt instead of apt-get it will ask to accept the changes but the next issue is the file size doesnt match:

File has unexpected size (84552 != 156065). Mirror sync in progress?

purefan avatar Dec 13 '19 08:12 purefan

My mssql odbc driver on Databricks Cluster (Ubuntu 16.04) is working fine till last night. This morning I started my cluster again to see it can no longer be installed. I found that there was an updated last night to the repository link. I'm not sure if my issue also falls under the same category. but below's my log.

url https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get -q -y install msodbcsql17

Error Log

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 79 100 79 0 0 567 0 --:--:-- --:--:-- --:--:-- 568 Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB] Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Get:5 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [166 kB] Err:5 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages Hash Sum mismatch Get:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB] Fetched 339 kB in 0s (575 kB/s) Reading package lists... E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages.gz Hash Sum mismatch E: Some index files failed to download. They have been ignored, or old ones used instead. Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package msodbcsql17

vijaysaimutyala avatar Dec 13 '19 08:12 vijaysaimutyala

Got this on Debian 10 after doing an 'apt update':

E: Repository 'https://packages.microsoft.com/debian/10/prod buster InRelease' changed its 'Origin' value from 'microsoft-debian-buster-prod buster' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/debian/10/prod buster InRelease' changed its 'Label' value from 'microsoft-debian-buster-prod buster' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/debian/10/prod buster InRelease' changed its 'Suite' value from 'buster' to 'stable'
E: Repository 'https://packages.microsoft.com/debian/10/prod buster InRelease' changed its 'Codename' value from 'buster' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N]

Seems like they mixed up the repos for vscode and .netcore somehow?

OlliC avatar Dec 13 '19 09:12 OlliC

Same Issue Here:

Err:12 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages   
  File has unexpected size (156354 != 156065). Mirror sync in progress? [IP: 13.74.252.37 80]
  Hashes of expected file:
   - Filesize:156065 [weak]
   - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
   - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
   - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
   - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
  Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Origin' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Label' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Suite' value from 'bionic' to 'stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Codename' value from 'bionic' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Get:14 http://us.archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] 
Get:15 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [156 kB]
Err:15 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
  File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.74.252.37 443]
  Hashes of expected file:
   - Filesize:156065 [weak]
   - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
   - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
   - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
   - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
  Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Fetched 181 kB in 24s (7,602 B/s)                                              
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease (expected bionic but got stable)
E: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2  File has unexpected size (156354 != 156065). Mirror sync in progress? [IP: 13.74.252.37 80]
   Hashes of expected file:
    - Filesize:156065 [weak]
    - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
    - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
    - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
    - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
   Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2  File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.74.252.37 443]
   Hashes of expected file:
    - Filesize:156065 [weak]
    - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
    - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
    - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
    - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
   Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

hamzaejaz27 avatar Dec 13 '19 09:12 hamzaejaz27

@OlliC Sure looks like it. Here are the first few lines of https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod/dists/bionic/InRelease:

$ curl https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod/dists/bionic/InRelease | head -n 10
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3959  100  3959    0     0  60907      0 --:--:-- --:--:-- --:--:-- 60907
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Origin: vscode stable
Label: vscode stable
Suite: stable
Codename: stable
Date: Thu, 12 Dec 2019 19:59:19 UTC
Architectures: amd64
Components: main

qmfrederik avatar Dec 13 '19 10:12 qmfrederik

This seems to impact at least:

  • Travis CI jobs
  • GitHub actions

qmfrederik avatar Dec 13 '19 11:12 qmfrederik

This happens to 16.04 too (I guess for other the same). It is quite unpleasant, since it breaks any provisionings requiring dotnet repository as a dependency.

jozefsukovsky avatar Dec 13 '19 11:12 jozefsukovsky

Same issue here:

Err:10 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages                                                     

  File has unexpected size (156354 != 156065). Mirror sync in progress? [IP: 13.80.10.205 80]

  Hashes of expected file:

   - Filesize:156065 [weak]

   - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b

   - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0

   - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]

   - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]

  Release file created at: Thu, 12 Dec 2019 19:59:19 +0000

CristianoMCunha avatar Dec 13 '19 11:12 CristianoMCunha

Hit:1 http://azure.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 https://packages.microsoft.com/ubuntu/19.04/prod disco InRelease [3959 B]
Get:4 http://azure.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://azure.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:7 http://azure.archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:8 https://packages.microsoft.com/ubuntu/19.04/prod disco/main amd64 Packages [156 kB]
Err:8 https://packages.microsoft.com/ubuntu/19.04/prod disco/main amd64 Packages
  File has unexpected size (23655 != 156065). Mirror sync in progress? [IP: 40.76.35.62 443]
  Hashes of expected file:
   - Filesize:156065 [weak]
   - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
   - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
   - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
   - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
  Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Get:9 http://azure.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [817 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [288 kB]
Get:13 http://azure.archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [24.1 kB]
Get:14 http://azure.archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [6620 B]
Get:15 http://azure.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1033 kB]
Get:16 http://azure.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [319 kB]
Get:17 http://azure.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [9284 B]
Get:18 http://azure.archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [4508 B]
Get:19 http://azure.archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2512 B]
Get:20 http://azure.archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [1644 B]
Get:21 http://azure.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4028 B]
Get:22 http://azure.archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1856 B]
Get:23 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [593 kB]
Get:24 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [194 kB]
Get:25 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [15.1 kB]
Get:26 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [4684 B]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [627 kB]
Get:28 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [210 kB]
Get:29 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [6120 B]
Get:30 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2600 B]
Fetched 18.2 MB in 4s (4124 kB/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/19.04/prod disco InRelease (expected disco but got stable)
E: Failed to fetch https://packages.microsoft.com/ubuntu/19.04/prod/dists/disco/main/binary-amd64/Packages.bz2  File has unexpected size (23655 != 156065). Mirror sync in progress? [IP: 40.76.35.62 443]
   Hashes of expected file:
    - Filesize:156065 [weak]
    - SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
    - SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
    - SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
    - MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
   Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead`

Not working on ubuntu 19.04 azure vm

cyrilCodePro avatar Dec 13 '19 11:12 cyrilCodePro