1

I have ubuntu 16.04 based vms and dockers using mssqlserver driver 17. Installed the classic way

curl 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
ACCEPT_EULA=Y apt-get install msodbcsql17
apt-get -y install unixodbc-dev

Since this morning and an update on microsoft side the apt-get update after adding the repo fails E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages.gz Hash Sum mismatch

I followed any lead i could find here (Trouble downloading packages list due to a "Hash sum mismatch" error) to clean apt cache etc. And compared on several machines, either vms, docker containers, even an azure databricks spark instance, same error everywhere so it seems to definitely be an error on the microsoft repo (that, I checked, received an update early this morning).

Is there a way to temporary avoid the hash check to allow my script to bypass that error or am I condemned to wait for M$ to update their repo ?

5
  • I too am having issues now when building docker images. While running apt update on my desktop apt prompted me saying they had changed some values (Origin, Label, Suite, Codename) and wanted me to confirm that I wanted to do these changes. Might be related?
    – niknoe
    Dec 13, 2019 at 16:57
  • Looks like they have fixed it now.
    – niknoe
    Dec 13, 2019 at 20:11
  • Does this answer your question? What is correct way to fix name resolution from Docker container?
    – Henke
    Nov 2, 2020 at 18:36
  • How can this question be "highly active" and yet not attract one single answer? Seriously?
    – Henke
    Nov 3, 2020 at 16:34
  • @Henke simple explanation : There is no way to bypass the hash sum check so there is no good answer to this question, BUT that was a real issue involving a popular Microsoft package (They published a corrupted version to the repo and users were not able to install the package for a few days). (By the way the link you provided in your previous comment is unrelated) Dec 1, 2020 at 14:28

0

Browse other questions tagged or ask your own question.