Failed to fetch https://apt.releases.hashicorp.com/dists/jammy/main/binary-amd64/Packages.gz File has unexpected size

Since around 12 hours, I’m not able to apt update on Ubuntu due to:

# apt update
Get:1 https://apt.releases.hashicorp.com jammy InRelease [12.9 kB]
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease                                                        
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease             
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease           
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease           
Ign:6 https://apt.releases.hashicorp.com jammy/main amd64 Packages
Get:6 https://apt.releases.hashicorp.com jammy/main amd64 Packages [103 kB]
Err:6 https://apt.releases.hashicorp.com jammy/main amd64 Packages
  File has unexpected size (102889 != 102738). Mirror sync in progress? [IP: 18.66.171.113 443]
  Hashes of expected file:
   - Filesize:102738 [weak]
   - SHA256:fa1fde8ae1f30ae1d81e20c2d54e2cf70afd9263be47b880bf40fe83daa002ec
   - SHA1:c39acfab9043117be7397658f5e87c1b8115af5b [weak]
   - MD5Sum:74ce22f314f12cc869dcdd23898c9357 [weak]
  Release file created at: Wed, 03 May 2023 21:28:51 +0000
Fetched 12.9 kB in 0s (31.0 kB/s)
Reading package lists... Done
E: Failed to fetch https://apt.releases.hashicorp.com/dists/jammy/main/binary-amd64/Packages.gz  File has unexpected size (102889 != 102738). Mirror sync in progress? [IP: 18.66.171.113 443]
   Hashes of expected file:
    - Filesize:102738 [weak]
    - SHA256:fa1fde8ae1f30ae1d81e20c2d54e2cf70afd9263be47b880bf40fe83daa002ec
    - SHA1:c39acfab9043117be7397658f5e87c1b8115af5b [weak]
    - MD5Sum:74ce22f314f12cc869dcdd23898c9357 [weak]
   Release file created at: Wed, 03 May 2023 21:28:51 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

Known issue? Seems to be only happening in some locations.

2 Likes

same here

E: Failed to fetch https://apt.releases.hashicorp.com/dists/jammy/main/binary-amd64/Packages.gz  File has unexpected size (102889 != 102738). Mirror sync in progress? [IP: 99.84.108.3 443]
   Hashes of expected file:
    - Filesize:102738 [weak]
    - SHA256:fa1fde8ae1f30ae1d81e20c2d54e2cf70afd9263be47b880bf40fe83daa002ec
    - SHA1:c39acfab9043117be7397658f5e87c1b8115af5b [weak]
    - MD5Sum:74ce22f314f12cc869dcdd23898c9357 [weak]
   Release file created at: Wed, 03 May 2023 21:28:51 +0000

I have the same problem:

#20 1.354   File has unexpected size (102889 != 102738). Mirror sync in progress? [IP: 1.2.3.4 443]
#20 1.354   Hashes of expected file:
#20 1.354    - Filesize:102738 [weak]
#20 1.354    - SHA256:fa1fde8ae1f30ae1d81e20c2d54e2cf70afd9263be47b880bf40fe83daa002ec
#20 1.354    - SHA1:c39acfab9043117be7397658f5e87c1b8115af5b [weak]
#20 1.354    - MD5Sum:74ce22f314f12cc869dcdd23898c9357 [weak]
#20 1.354   Release file created at: Wed, 03 May 2023 21:28:51 +0000
#20 1.365 Fetched 12.9 kB in 1s (13.9 kB/s)
#20 1.365 Reading package lists...
#20 2.066 E: Failed to fetch https://apt.releases.hashicorp.com/dists/jammy/main/binary-amd64/Packages.gz  File has unexpected size (102889 != 102738). Mirror sync in progress? [IP: 1.2.3.4. 443]
#20 2.066    Hashes of expected file:
#20 2.066     - Filesize:102738 [weak]
#20 2.066     - SHA256:fa1fde8ae1f30ae1d81e20c2d54e2cf70afd9263be47b880bf40fe83daa002ec
#20 2.066     - SHA1:c39acfab9043117be7397658f5e87c1b8115af5b [weak]
#20 2.066     - MD5Sum:74ce22f314f12cc869dcdd23898c9357 [weak]
#20 2.066    Release file created at: Wed, 03 May 2023 21:28:51 +0000

Works now. I have changed nothing.