vscode: Unable to update via apt : mirror sync in progress ?

Since a few days i can’t update vscode via apt update

  • OS Version: Ubuntu 20.04

E: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2 File has unexpected size (201047 != 200914). Mirror sync in progress? [IP: 13.66.3.153 443] Hashes of expected file: - Filesize:200914 [weak] - SHA512:a91d388504b56c875620f73b618813be1c127d6bfe96406cc6e9a39fdf33f1dd2c8ecbda4a636f0c86bc18005e4f5d0683da0c02ba13c555cef8d11eb83412fe - SHA256:1d39334cb2779572dd17869a05d3ed3f1d57992cc9755a34a4d2622132b19f57 - SHA1:d5224a98d6adfb4ab65d66aa803f9688a6503080 [weak] - MD5Sum:2fc601c3aa23f067ef305bfb7f7086e7 [weak] Release file created at: Mon, 28 Sep 2020 06:53:06 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 13
  • Comments: 28 (3 by maintainers)

Most upvoted comments

This worked for me on Ubuntu 20.04. First, remove all the vscode related files in source.list.d and then update your packages.

sudo rm -rf /etc/apt/sources.list.d/vscode.list*
sudo apt-get update

I spent more than 6 hours searching for a solution and finally above mentioned solution worked. Hope this helps.

Well, it looks like it’s fixed now. 😃

Same ubuntu version 20.04, region: India

Still having problems. Location: India

`Err:6 https://packages.microsoft.com/repos/vscode stable/main amd64 Packages File has unexpected size (203820 != 203585). Mirror sync in progress? [IP: 20.188.102.6 443] Hashes of expected file:

  • Filesize:203585 [weak]
  • SHA512:070b1469cbfcc74fbe83b5b8bd1af9707f9f0ad520d4bf161340532c8bec4fd31812cf9242a81fe54e805837495281bcece1edb925104ff817191e068970863c
  • SHA256:7e6635480cc4a9463de3167215ad504c8721bd43d9c40b4ad71b44f60380757d
  • SHA1:9baf9b98b78b41be5c361ba7825f016e1abd31d2 [weak]
  • MD5Sum:f509c48fcb219ac06f64fbec78be0dd5 [weak] Release file created at: Thu, 15 Oct 2020 18:21:44 +0000 Fetched 3,959 B in 1s (2,716 B/s) Reading package lists… Done E: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2 File has unexpected size (203820 != 203585). Mirror sync in progress? [IP: 20.188.102.6 443] Hashes of expected file: - Filesize:203585 [weak] - SHA512:070b1469cbfcc74fbe83b5b8bd1af9707f9f0ad520d4bf161340532c8bec4fd31812cf9242a81fe54e805837495281bcece1edb925104ff817191e068970863c - SHA256:7e6635480cc4a9463de3167215ad504c8721bd43d9c40b4ad71b44f60380757d - SHA1:9baf9b98b78b41be5c361ba7825f016e1abd31d2 [weak] - MD5Sum:f509c48fcb219ac06f64fbec78be0dd5 [weak] Release file created at: Thu, 15 Oct 2020 18:21:44 +0000`

@chrmarti

Hey its all fine now. Thx. Cheers!!!

Back to normal !