core icon indicating copy to clipboard operation
core copied to clipboard

Failed to fetch https://packages.microsoft.com/ubuntu/14.04/prod/dists/trusty/main/binary-amd64/Packages Hash Sum mismatch

Open kristopher opened this issue 7 years ago • 34 comments

Failed to fetch https://packages.microsoft.com/ubuntu/14.04/prod/dists/trusty/main/binary-amd64/Packages Hash Sum mismatch

Occurs after installing this package and running apt-get update. https://packages.microsoft.com/config/ubuntu/14.04/packages-microsoft-prod.deb

Started getting that error this morning while running chef. Did the same runs yesterday without issue. Not sure if something in the repo changed or what.

kristopher avatar Apr 19 '19 15:04 kristopher

Seeing the same issue since yesterday

yairyog avatar Apr 21 '19 14:04 yairyog

@dagood is it known problem? cc @leecow

Which version are you installing? .NET Core 2.1 / 2.2 / 3.0 Preview 4?

karelz avatar Apr 21 '19 18:04 karelz

same here. trying to install .net core 2.2 happens during apt-get update

levhaikin avatar Apr 22 '19 09:04 levhaikin

It certainly looks like the 14.04 Microsoft repo is broken. People are unable to get Powershell with the same error: https://github.com/PowerShell/PowerShell/issues/9424. It's also easy to repro in Docker.

Doc link for reference: https://dotnet.microsoft.com/download/linux-package-manager/ubuntu14-04/sdk-current. You don't even get as far as picking which SDK to install so 2.1 vs. 2.2 etc. doesn't matter.

Ubuntu 14.04 hit end of standard support just a couple days before this issue was filed--got to wonder if that's related.

dagood avatar Apr 22 '19 15:04 dagood

Also seeing the same issue, installing .NET Core 2.2 during apt-get update

justinboswell avatar Apr 22 '19 18:04 justinboswell

I've reached out to the Microsoft repository admins via email about this issue, will update here with more info.

dagood avatar Apr 22 '19 18:04 dagood

same here.

bonesoul avatar Apr 22 '19 20:04 bonesoul

I also thought it was very coincidental that is started a few days before 14.04 goes EOL

kristopher avatar Apr 22 '19 22:04 kristopher

The Microsoft repo admins are looking into it, no status yet.

ubuntu-distro-info tells me it's EOL 5 days ago, FWIW (but I wouldn't expect it to affect this):

#> ubuntu-distro-info --all -yeol -f | grep 14.04
Ubuntu 14.04 LTS "Trusty Tahr" -5
#> date -d 'now - 5 days'
Wed Apr 17 22:16:07 UTC 2019

dagood avatar Apr 22 '19 22:04 dagood

They fixed it! I confirmed in an ubuntu:14.04 container. Thanks for filing the issue.

dagood avatar Apr 23 '19 00:04 dagood

I've started seeing this issue again today on a Dockerfile that worked yesterday.

W: Failed to fetch https://packages.microsoft.com/ubuntu/14.04/prod/dists/trusty/main/binary-amd64/Packages Hash Sum mismatch

jakkaj avatar May 15 '19 05:05 jakkaj

Same here, issue happens again.

chkp-shacharah avatar May 15 '19 07:05 chkp-shacharah

We're also experiencing this issue since approximately 5pm UTC yesterday although we're trying to install msodbcsql17 and ms-tools, the symptoms are the same. I have also tried the suggested trick of clearing /var/lib/apt/lists/* but there was no change to the situation.

beldougie avatar May 15 '19 08:05 beldougie

Yeah... repros with a clean Docker container as well. Sending another mail to the Microsoft repo admins.

dagood avatar May 15 '19 15:05 dagood

same here

bonesoul avatar May 15 '19 18:05 bonesoul

same...

yairyog avatar May 15 '19 18:05 yairyog

They fixed it, and I confirmed it works for me now. Thanks for the reports!

dagood avatar May 15 '19 20:05 dagood

Instead of creating a new issue, I thought I should mention here that I started receiving the following error this morning when I attempted to reinstall dotnet-sdk-2.1 after sudo apt upgrade caused the same exact issue (which is why I uninstalled dotnet and reinstalled dotnet-sdk2.2 and dotnet-sdk2.1).

$ sudo apt install dotnet-sdk-2.1 -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  aspnetcore-runtime-2.1 dotnet-hostfxr-2.1 dotnet-runtime-2.1 dotnet-runtime-deps-2.1
The following NEW packages will be installed:
  aspnetcore-runtime-2.1 dotnet-hostfxr-2.1 dotnet-runtime-2.1 dotnet-runtime-deps-2.1 dotnet-sdk-2.1
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 134 MB of archives.
After this operation, 387 MB of additional disk space will be used.
Err:1 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 dotnet-runtime-deps-2.1 amd64 2.1.12-1
  404  Not Found [IP: 13.91.48.226 443]
Err:2 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 dotnet-hostfxr-2.1 amd64 2.1.12-1
  404  Not Found [IP: 13.91.48.226 443]
Err:3 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 dotnet-runtime-2.1 amd64 2.1.12-1
  404  Not Found [IP: 13.91.48.226 443]
Err:4 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 aspnetcore-runtime-2.1 amd64 2.1.12-1
  404  Not Found [IP: 13.91.48.226 443]
Err:5 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 dotnet-sdk-2.1 amd64 2.1.701-1
  404  Not Found [IP: 13.91.48.226 443]
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/d/dotnet-runtime-deps-2.1/dotnet-runtime-deps-2.1.12-x64.deb  404  Not Found [IP: 13.91.48.226 443]
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/d/dotnet-hostfxr-2.1/dotnet-hostfxr-2.1.12-x64.deb  404  Not Found [IP: 13.91.48.226 443]
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/d/dotnet-runtime-2.1/dotnet-runtime-2.1.12-x64.deb  404  Not Found [IP: 13.91.48.226 443]
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/a/aspnetcore-runtime-2.1/aspnetcore-runtime-2.1.12-x64.deb  404  Not Found [IP: 13.91.48.226 443]
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/d/dotnet-sdk-2.1/dotnet-sdk-2.1.701-x64.deb  404  Not Found [IP: 13.91.48.226 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I am on Ubuntu 18.04, which is the only difference from this issue which is Ubuntu 14.04.

kimbaudi avatar Jul 09 '19 17:07 kimbaudi

@kimbaudi The error you're receiving is also different, 404 Not Found rather than Hash Sum mismatch. Can you open a new issue with the rest of the commands and output too? (sudo apt-get update in particular.)

dagood avatar Jul 09 '19 17:07 dagood

@dagood yes, I just submitted issue 3010

kimbaudi avatar Jul 09 '19 18:07 kimbaudi