Skip to content
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

Ubuntu repo maybe broken? #41094

Closed
bl3chd0se opened this issue Jan 3, 2018 · 32 comments
Closed

Ubuntu repo maybe broken? #41094

bl3chd0se opened this issue Jan 3, 2018 · 32 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug install-update VS Code installation and upgrade system issues linux Issues with VS Code on Linux verified Verification succeeded
Milestone

Comments

@bl3chd0se
Copy link

bl3chd0se commented Jan 3, 2018

When trying to configure the ubuntu repository with key provided here:
https://code.visualstudio.com/docs/setup/linux

The packages files seems different from the checksums provided
Expected filesize is 35343
Actual filesize in repo is 35578

  File has unexpected size (35578 != 35343). Mirror sync in progress?
  Hashes of expected file:
   - Filesize:35343 [weak]
   - SHA512:c9496b6c369f633e2ae431bb758cf970671c191bd02264713ce864dc327475b9ca7cdddda7dee0a14a556dc65d6b59a8f79f16c47e178a6345c90878c99fa0c8
   - SHA256:fba8fa5d5d6d200e9b45febf5bb0e9fe0d9165202c2cbfe38c72d64a423cf4a3
   - SHA1:66776788449c7465ac8668f904c730310fd95e37 [weak]
   - MD5Sum:c87007bbbd77cb0d60fa69f5f83b6a7c [weak]
  Release file created at: Thu, 21 Dec 2017 18:21:42 +0000
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 (35578 != 35343). Mirror sync in progress?
   Hashes of expected file:
    - Filesize:35343 [weak]
    - SHA512:c9496b6c369f633e2ae431bb758cf970671c191bd02264713ce864dc327475b9ca7cdddda7dee0a14a556dc65d6b59a8f79f16c47e178a6345c90878c99fa0c8
    - SHA256:fba8fa5d5d6d200e9b45febf5bb0e9fe0d9165202c2cbfe38c72d64a423cf4a3
    - SHA1:66776788449c7465ac8668f904c730310fd95e37 [weak]
    - MD5Sum:c87007bbbd77cb0d60fa69f5f83b6a7c [weak]
   Release file created at: Thu, 21 Dec 2017 18:21:42 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
  • OS Version: Ubuntu 17.10

Steps to Reproduce:

  1. Add repository
  2. Add keyfile
  3. apt-get update
@vscodebot vscodebot bot added the install-update VS Code installation and upgrade system issues label Jan 3, 2018
@alexaandru
Copy link

I have the same problem. My OS is: Linux Mint 17.3 Rosa.

@adrianharabula
Copy link

Same problem on ubuntu 16.04.3.

@Tyriar Tyriar added the linux Issues with VS Code on Linux label Jan 3, 2018
@Tyriar Tyriar added this to the December 2017/January 2018 milestone Jan 3, 2018
@Tyriar Tyriar added the bug Issue identified by VS Code Team member as probable bug label Jan 3, 2018
@Tyriar
Copy link
Member

Tyriar commented Jan 3, 2018

Thanks all for the report, we're investigating. In the meantime you can hopefully still pull the packages from the URLs and install manually via dpkg -i <...>.deb:

If you have issues with those URLs please let me know.

@natec425
Copy link

natec425 commented Jan 3, 2018

So you can apt-get update, you might want to comment out the entry in /etc/apt/sources.list.d/vscode.list. Change deb [arch=.... to # deb [arch=....... I don't know if there is a better way to do this, but it worked for me.

@AlexanderYukhanov
Copy link

Hello team, do you have any ETA on this issue? It affects (by braking apt update) one of use cases for our prod service.

@julian-klode
Copy link
Contributor

Reason: The latest repository update only updated Release and Release.gpg, but InRelease is still from Dec 21st.

@IronGeek
Copy link

IronGeek commented Jan 4, 2018

Actually, the Release.gpg is still not updated too...

d3b77da0-3ac0-409e-ad3e-f0f26e07aa74

@jongreen-telensa
Copy link

I'm seeing the same thing, but with (35649 > 35343) instead, on Debian 9.3. Same SHA/MD5 sums.

@felpin
Copy link

felpin commented Jan 4, 2018

Using Ubuntu 16.04 I get the error:

E: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages  Writing more data than expected (228420 > 227140)
E: Some index files failed to download. They have been ignored, or old ones used instead.

@KillWolfVlad
Copy link

Linux Mint 18.3 (based on Ubuntu 16.04) 64-bit

After installation code_1.19.1-1513676564_amd64.deb from official site I get the error when I try update system

$ sudo apt update

....
Reading package lists... Done
E: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages  Writing more data than expected (227448 > 227140)
E: Some index files failed to download. They have been ignored, or old ones used instead.

@dwaynebradley
Copy link

It appears that the "Release" file shown above in the post from @IronGeek is related to an insiders build for v1.20.0 and not the stable build of v1.19.1 from 12-21-2017.

Here is the v1.20.0 insiders build from https://packages.microsoft.com/repos/vscode/pool/main/c/code-insiders/:

code-insiders_1.20.0-1514873705_amd64.deb 03-Jan-2018 21:55 45834862

Here is the v1.19.1 stable build from https://packages.microsoft.com/repos/vscode/pool/main/c/code/:

code_1.19.1-1513676564_amd64.deb 21-Dec-2017 18:21 45385688

@KillWolfVlad
Copy link

Fixed, issue can be closed 🎉

image

@Tyriar
Copy link
Member

Tyriar commented Jan 4, 2018

Thanks for your patience everyone, the team is planning on putting together better monitoring to hopefully catch this sort of thing earlier

@Tyriar Tyriar closed this as completed Jan 4, 2018
@taoqf
Copy link

taoqf commented Jan 29, 2018

E: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2  Writing more data than expected (38219 > 38059)
   Hashes of expected file:
    - Filesize:38059 [weak]
    - SHA512:d960bc2562e8e3914627b1f8a255d6e78506acac42c7c540d6ce09c4d20f0447edb9d2596b87bb64d1d59e4786a89f7c9f7711743d057d10041f95cf8a7f7dd1
    - SHA256:692a9d9348b76a7ab30c112a4e1f4e99a8ba99454ec1ed4a5c82d1afa45c43f7
    - SHA1:4dfaf756f7b30988ddacc77863a363ffd6f409a4 [weak]
    - MD5Sum:256db81b96e2ac1ef30d0d1c63545b85 [weak]
   Release file created at: Fri, 26 Jan 2018 18:29:25 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

@neptunao
Copy link

E: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages Writing more data than expected (246868 > 245766)
Linux Mint 18.3

@lcofre
Copy link

lcofre commented Jan 29, 2018

E: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2 File has unexpected size (38219 != 38059). Mirror sync in progress?
Hashes of expected file:
- Filesize:38059 [weak]
- SHA512:d960bc2562e8e3914627b1f8a255d6e78506acac42c7c540d6ce09c4d20f0447edb9d2596b87bb64d1d59e4786a89f7c9f7711743d057d10041f95cf8a7f7dd1
- SHA256:692a9d9348b76a7ab30c112a4e1f4e99a8ba99454ec1ed4a5c82d1afa45c43f7
- SHA1:4dfaf756f7b30988ddacc77863a363ffd6f409a4 [weak]
- MD5Sum:256db81b96e2ac1ef30d0d1c63545b85 [weak]
Release file created at: Fri, 26 Jan 2018 18:29:25 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

Ubuntu 17.10

Thanks very much for your work!

@danzone
Copy link

danzone commented Jan 29, 2018

Err:12 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages
File has unexpected size (38219 != 38059). Mirror sync in progress?
Hashes of expected file:

  • Filesize:38059 [weak]
  • SHA512:d960bc2562e8e3914627b1f8a255d6e78506acac42c7c540d6ce09c4d20f0447edb9d2596b87bb64d1d59e4786a89f7c9f7711743d057d10041f95cf8a7f7dd1
  • SHA256:692a9d9348b76a7ab30c112a4e1f4e99a8ba99454ec1ed4a5c82d1afa45c43f7
  • SHA1:4dfaf756f7b30988ddacc77863a363ffd6f409a4 [weak]
  • MD5Sum:256db81b96e2ac1ef30d0d1c63545b85 [weak]
    Release file created at: Fri, 26 Jan 2018 18:29:25 +0000

Ubuntu 17.10

Thanks a lot!

@Tyriar Tyriar reopened this Jan 29, 2018
@Tyriar
Copy link
Member

Tyriar commented Jan 29, 2018

I'll try look into this asap, in the meantime you can pull the latest from the repo https://code.visualstudio.com/

@danzone
Copy link

danzone commented Jan 29, 2018

I just tried to make an apt-get update, and now the issue is gone away.

@AlexanderYukhanov
Copy link

Just tried it on Ubuntu DSVM. Still broken

@mattayes
Copy link

Get:11 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages [38.1 kB]                               
Err:11 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages
  File has unexpected size (38219 != 38059). Mirror sync in progress?
  Hashes of expected file:
   - Filesize:38059 [weak]
   - SHA512:d960bc2562e8e3914627b1f8a255d6e78506acac42c7c540d6ce09c4d20f0447edb9d2596b87bb64d1d59e4786a89f7c9f7711743d057d10041f95cf8a7f7dd1
   - SHA256:692a9d9348b76a7ab30c112a4e1f4e99a8ba99454ec1ed4a5c82d1afa45c43f7
   - SHA1:4dfaf756f7b30988ddacc77863a363ffd6f409a4 [weak]
   - MD5Sum:256db81b96e2ac1ef30d0d1c63545b85 [weak]
  Release file created at: Fri, 26 Jan 2018 18:29:25 +0000

...

E: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2  File has unexpected size (38219 != 38059). Mirror sync in progress?
   Hashes of expected file:
    - Filesize:38059 [weak]
    - SHA512:d960bc2562e8e3914627b1f8a255d6e78506acac42c7c540d6ce09c4d20f0447edb9d2596b87bb64d1d59e4786a89f7c9f7711743d057d10041f95cf8a7f7dd1
    - SHA256:692a9d9348b76a7ab30c112a4e1f4e99a8ba99454ec1ed4a5c82d1afa45c43f7
    - SHA1:4dfaf756f7b30988ddacc77863a363ffd6f409a4 [weak]
    - MD5Sum:256db81b96e2ac1ef30d0d1c63545b85 [weak]
   Release file created at: Fri, 26 Jan 2018 18:29:25 +0000

Ubuntu 17.10

Thanks for your help!

@mattayes
Copy link

Tried again, was successfully able to update.

@Tyriar
Copy link
Member

Tyriar commented Jan 29, 2018

I just deleted the 1.19.3 package, so you should be able to update to 1.19.2. I'll try republishing 1.19.3 now

@Tyriar
Copy link
Member

Tyriar commented Jan 29, 2018

The new one seems to work, thanks for the report all.

@Tyriar Tyriar closed this as completed Jan 29, 2018
@RMacfarlane RMacfarlane added the verified Verification succeeded label Feb 2, 2018
@RomkeVdMeulen
Copy link

Err:15 https://packages.microsoft.com/repos/vscode stable/main amd64 Packages
  Writing more data than expected (284174 > 281970)

@EstherAF
Copy link

It's happening again:

Err:13 https://packages.microsoft.com/repos/vscode stable/main amd64 Packages
E: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages  Writing more data than expected (284174 > 281970)

On Ubuntu 16.04

@Gargravarr2112
Copy link

Yep, happening again for me on Ubuntu 16.04 fresh install (breaking my automatic imaging 😄 )

@MannikJ
Copy link

MannikJ commented Mar 15, 2018

Also seeing it in Linux Mint 18.3

@CapturedMomentum
Copy link

CapturedMomentum commented Mar 15, 2018

Err:9 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages
Writing more data than expected (283444 > 281970)

Ubuntu 16.04.1

@k4mui
Copy link

k4mui commented Mar 15, 2018

E: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages Writing more data than expected (284174 > 281970)

Ubuntu 16.04.4

@sergeyvfx
Copy link
Contributor

This isn't distro-related. Most likely, the issue is caused by InRelease being older than rest of the repository (it's dated 14 March, while Packages and rest are dated 15 March). and it contains wrong checksums and file sizes.

@Tyriar
Copy link
Member

Tyriar commented Mar 15, 2018

#45868

@microsoft microsoft locked and limited conversation to collaborators Mar 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug install-update VS Code installation and upgrade system issues linux Issues with VS Code on Linux verified Verification succeeded
Projects
None yet
Development

No branches or pull requests