question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hash Sum mismatch on Ubuntu Trusty Packages.gz

See original GitHub issue

Super super sorry, I know y’all are mopping up after the CVE earlier this week and I bet this is just collateral damage from that. Thanks so much for all that you do.

tl;dr I’m guessing Release.gpg at https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod/dists/trusty/ didn’t get updated when the new packages went out? It has an older mtime than all the other files.

Steps to reproduce

  1. Follow the instructions here to install the Microsoft GPG key and add the Microsoft apt source for Ubuntu Trusty (14.04): https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x#install-net-core-for-ubuntu-1404-ubuntu-1604-ubuntu-1610--linux-mint-17-linux-mint-18-64-bit

  2. Install dotnet-sdk-2.0.0:

      sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dotnet-sdk-2.0.0
    

Expected behavior

Package installs!

Actual behavior

sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dotnet-sdk-2.0.0
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package dotnet-sdk-2.0.0
E: Couldn't find any package by glob 'dotnet-sdk-2.0.0'
E: Couldn't find any package by regex 'dotnet-sdk-2.0.0'
apt-get.diagnostics
apt-get install failed
$ cat ~/apt-get-update.log
Ign:1 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 InRelease
Hit:2 http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 Release
Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://dl.google.com/linux/chrome/deb stable Release
Ign:3 http://toolbelt.heroku.com/ubuntu ./ InRelease
Hit:7 http://toolbelt.heroku.com/ubuntu ./ Release
Hit:9 https://dl.hhvm.com/ubuntu trusty InRelease
Hit:11 http://apt.postgresql.org/pub/repos/apt trusty-pgdg InRelease
Hit:12 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu trusty InRelease
Hit:13 http://security.ubuntu.com/ubuntu trusty-security InRelease
Get:15 https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty InRelease
Ign:16 http://ppa.launchpad.net/couchdb/stable/ubuntu trusty InRelease
Get:17 https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty/main amd64 Packages [28.8 kB]
Err:17 https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty/main amd64 Packages
  Hash Sum mismatch
Hit:18 http://ppa.launchpad.net/git-core/ppa/ubuntu trusty InRelease
…
Fetched 3,168 B in 3s (795 B/s)
Reading package lists...
…
E: Failed to fetch https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod/dists/trusty/main/binary-amd64/Packages.gz  Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.

Environment data

Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty

dotnet --info output: Not available, can’t install. 😬

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
pnccommented, Mar 15, 2018

Oh, the repository files all got updated at 20:48, including Release.gpg. I think that did the trick, the package installs fine now on the original machine!

0reactions
pnccommented, Mar 15, 2018

Before: screen shot 2018-03-15 at 16 43 13

After: screen shot 2018-03-15 at 17 32 06

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble downloading packages list due to a "Hash sum ...
It happens because there's a known bug it apt, and the solution is to update with a different compression method, so the files...
Read more >
hash sum mismatch on apt-get update
Run the following commands to remove the hash sum mismatch error. ... sudo apt update -o Acquire::CompressionTypes::Order::=gz sudo apt ...
Read more >
How to fix "Hash Sum mismatch Hashes of expected file" on ...
I type apt-get update and apt-get upgrade but getting Hash Sum mismatch Hashes of expected file error. Here is output from Debian 10...
Read more >
Hash sum mismatch when apt-get update Ubuntu 20.04 ...
In my case with the same problem the following solution worked: sudo su - mkdir /etc/gcrypt echo all >> /etc/gcrypt/hwf.deny apt-get update.
Read more >
APT Hash sum mismatch
The “Hash sum mismatch” error indicates to the user that apt has run a checksum against the repository metadata it has downloaded and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found