Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
briannippert opened this issue Dec 13, 2019 · 74 comments
Labels
area-setup Issues related to installing .NET Core

Comments

@briannippert
Copy link

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
@mabeshark
Copy link

mabeshark commented Dec 13, 2019

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!

microsoft/vscode#41094

#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

@dagood dagood changed the title Ubuntu 19.04 Can't install Ubuntu 18.04/19.04/19.10 from the Linux package repository, "File has unexpected size (23655 != 156065)" Dec 13, 2019
@dagood
Copy link
Member

dagood commented Dec 13, 2019

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.

@kitsuyui
Copy link

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.

@dagood dagood changed the title Can't install Ubuntu 18.04/19.04/19.10 from the Linux package repository, "File has unexpected size (23655 != 156065)" Can't install .NET Core on Ubuntu, Debian from the Linux package repository: "File has unexpected size (23655 != 156065)" Dec 13, 2019
@dagood
Copy link
Member

dagood commented Dec 13, 2019

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 #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.

@niklasholm
Copy link

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

@oudi
Copy link

oudi commented Dec 13, 2019

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.

@cool-mist
Copy link

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.

@mikiab12
Copy link

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

@xlanor
Copy link

xlanor commented Dec 13, 2019

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.

@chensun
Copy link

chensun commented Dec 13, 2019

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

@coopsrc
Copy link

coopsrc commented Dec 13, 2019

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.

@purefan
Copy link

purefan commented Dec 13, 2019

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?

@vijaysaimutyala
Copy link

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

@OlliC
Copy link

OlliC commented Dec 13, 2019

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?

@hamzaejaz27
Copy link

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.

@qmfrederik
Copy link

@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
Copy link

This seems to impact at least:

  • Travis CI jobs
  • GitHub actions

@jozefsukovsky
Copy link

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.

@CristianoMCunha
Copy link

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

@cyrilCodePro
Copy link

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

@Morgan-iv
Copy link

Morgan-iv commented Dec 13, 2019

Working in my Debian Buster containers now.

Right now:

Err:5 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages

@ddelrio1986
Copy link

ddelrio1986 commented Dec 13, 2019

Working in my Debian Buster containers now.

Right now:

Err:5 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages

I will run a fresh build again to see if it works. I'm using moodlehq/moodle-php-apache:7.4-buster and php:7.3-apache-buster which both are on buster and were failing a bit ago. I'll tell you my results @Morgan-iv when the build is done running.

@renemadsen
Copy link

Working on Travis CI, Ubuntu 18.04

@CrossBound
Copy link

This is working for me on Debian 10 (Buster) now

@Morgan-iv
Copy link

Same, working on Debian 10 (Buster) in Docker

@ddelrio1986
Copy link

Same, working on Debian 10 (Buster) in Docker

My fresh build is still running but I'm glad it is working for you too now. @Morgan-iv!

@kiecanBG
Copy link

Working on my side. Oh blessed day 👏

@Remorc
Copy link

Remorc commented Dec 13, 2019

Still have an issue here. sudo apt-get update works fine, but sudo apt-get install dotnet-sdk-3.0 tells me it can't find the package

@Morgan-iv
Copy link

Morgan-iv commented Dec 13, 2019

Still have an issue here. sudo apt-get update works fine, but sudo apt-get install dotnet-sdk-3.0 tells me it can't find the package

You can try solutions from this comments as temporary fix:
#3988 (comment)
#3988 (comment)

@dagood
Copy link
Member

dagood commented Dec 13, 2019

@Remorc a few possibilities come to mind:

  • Did you apply a sudo rm -f ... workaround linked earlier in the thread? This actually removes the Microsoft feed altogether, so apt-get update may succeed but the install will then fail because your client doesn't know about the feed anymore. The "Troubleshoot the package manager" steps on the repo install page should help you get set back up: https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-1904. (Make sure to select your distro at the top of the page.)

  • Are you trying to install on a non-x64 device? The repo only has packages for x86-64 at the moment, so you need to install a different way to get .NET Core for other architectures. (https://dotnet.microsoft.com/download/dotnet-core/3.1)

If that doesn't help, please file a new issue so we can properly look into it, and please include the apt update logs if you can. Thanks!

@Remorc
Copy link

Remorc commented Dec 13, 2019

@dagood Thank you for this information! Unfortunately, I was attempting to install on a non-x64 device

@dagood
Copy link
Member

dagood commented Dec 13, 2019

@Remorc Thanks for confirming. I noticed the new site isn't as clear as the old one about this, so I filed dotnet/docs#16245 to get that corrected.

@dagood
Copy link
Member

dagood commented Dec 13, 2019

It looks like this has been resolved! Expect additional followup later at #3995, but for now I'm closing this issue because the install errors should be fixed. Please do let us know if you still see this, or see it again.

@seraphire
Copy link

@dagood
Copy link
Member

dagood commented Dec 14, 2019

@seraphire That build ran before this was fixed, have you hit it more recently?

@The-real-Urb I can't quite figure out what the error is in there. I don't see anything that ties it to this issue based on the logs. Can you open a new issue, and include info about mspackages.sh? A few things I'm interested in are the the goal of the script, and which error message(s) seem like a problem on our end. (Also, I edited your comment to put the logs in a <details> block, they are quite long to scroll through! Hope you don't mind.)

@The-real-Urb
Copy link

@The-real-Urb I can't quite figure out what the error is in there. I don't see anything that ties it to this issue based on the logs. Can you open a new issue, and include info about mspackages.sh? A few things I'm interested in are the the goal of the script, and which error message(s) seem like a problem on our end. (Also, I edited your comment to put the logs in a <details> block, they are quite long to scroll through! Hope you don't mind.)

@dagood , never mind, I tried to download a non existing version...

@marlonchalegre
Copy link

I can't install on Ubuntu 16.04

E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages Writing more data than expected (622228 > 606754)

@lucaspimentel
Copy link

@marlonchalegre: see #4122

@m00lecule
Copy link

reappeared #6487

@sbhhdp
Copy link

sbhhdp commented Aug 15, 2021

Err:1 http://mirrors.evowise.com/linuxmint/packages ulyssa/upstream amd64 firefox amd64 90.0+linuxmint1+uma
File has unexpected size (610816 != 57055532). Mirror sync in progress? [IP: 104.17.98.61 443]
Hashes of expected file:

  • SHA256:996c71120e45504b713c15490182dad7486d988906896a0df7ae7c921870af43
  • SHA1:327994ba213268c3098f0da7f4cc5ef9f69fd939 [weak]
  • MD5Sum:15a3f6993b0f1059a9d06f68d1b1967a [weak]
  • Filesize:57055532 [weak]
    E: Failed to fetch https://www.zerobounce.net/ File has unexpected size (610816 != 57055532). Mirror sync in progress? [IP: 104.17.98.61 443]
    Hashes of expected file:
    - SHA256:996c71120e45504b713c15490182dad7486d988906896a0df7ae7c921870af43
    - SHA1:327994ba213268c3098f0da7f4cc5ef9f69fd939 [weak]
    - MD5Sum:15a3f6993b0f1059a9d06f68d1b1967a [weak]
    - Filesize:57055532 [weak]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Not sure whether this is relevant to this thread. Got this message while trying to install firefox. Can someone help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-setup Issues related to installing .NET Core
Projects
None yet
Development

No branches or pull requests