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

Hash sum mismatch when attempting to install azcmagent on Ubuntu 22.04 #173

Closed
Jack-Hazelden-Blackdot opened this issue Sep 16, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Jack-Hazelden-Blackdot
Copy link

Describe the issue
When attempting to install the Azure Arc agent onto a Ubuntu 22.04 machine the downloaded install script install_linux_azcmagent.sh fails partway through as the azcmagent_1.46.02809.1707_amd64.deb package fails the hash sum check.

When did the issue occur?
16SEP24 - previously worked without an issue 06SEP24 which was the last time we checked.

If applicable, what package did you attempt to install, and from which repo?
Package is - https://packages.microsoft.com/ubuntu/22.04/prod/pool/main/a/azcmagent/azcmagent_1.46.02809.1707_amd64.deb

This was triggered via the script downloaded from https://aka.ms/azcmagent

Steps to Reproduce

  1. Setup a clean Ubuntu 22.04 machine - one used was an AWS machine with the AMI ami-00b2b33fc1d323a54
  2. Run the following:
# Download the installation package
wget https://aka.ms/azcmagent -O ~/install_linux_azcmagent.sh

# Install the hybrid agent
sudo bash ~/install_linux_azcmagent.sh

Actual Result
Install script errors as the azcmagent_1.46.02809.1707_amd64.deb package it downloaded fails the hash sum check.

E: Failed to fetch https://packages.microsoft.com/ubuntu/22.04/prod/pool/main/a/azcmagent/azcmagent_1.46.02809.1707_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:7c96c04a956b16b866c56c2c55abdd5565342b0392019cd5e2edb65171287d95
- Filesize:67295686 [weak]
Hashes of received file:
- SHA256:88f2366f330550332ab2fc83042113dd51482f6a427b7bfb1818b547d4ab19a9
- Filesize:67295686 [weak]
Last modification reported: Tue, 10 Sep 2024 21:48:24 +0000

Expected Result

Hashes should match and the install script should execute without issue. The azcmagent command can be called to verify the Azure Arc agent has installed successfully.

@Jack-Hazelden-Blackdot Jack-Hazelden-Blackdot added the bug Something isn't working label Sep 16, 2024
@daviddavis
Copy link
Member

@Jack-Hazelden-Blackdot can you tell me what country you are located in? Also, can you give me the output from curl:

curl --head https://packages.microsoft.com/ubuntu/22.04/prod/pool/main/a/azcmagent/azcmagent_1.46.02809.1707_amd64.deb

And what sha256 you see when you download the package:

wget https://packages.microsoft.com/ubuntu/22.04/prod/pool/main/a/azcmagent/azcmagent_1.46.02809.1707_amd64.deb
sha256sum azcmagent_1.46.02809.1707_amd64.deb

@Jack-Hazelden-Blackdot
Copy link
Author

@daviddavis

The country is the UK - deploying from AWS eu-west-2 region.

When downloading via the wget command above the sha256 is 7c96c04a956b16b866c56c2c55abdd5565342b0392019cd5e2edb65171287d95 which I believe is the expected one.

@daviddavis
Copy link
Member

That is the correct hash digest. We had some CDN issues this morning in the UK region. I've manually purged the file from our cache. Can you see if you are still experiencing the problem?

@Jack-Hazelden-Blackdot
Copy link
Author

@daviddavis The problem seems to be resolved - appreciate your help!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants