microsoft / linux-package-repositories

Microsoft Packaged Linux Software (DEBs, RPMs, etc) are hosted on packages.microsoft.com (PMC) made available as native Linux repositories for use with package managers like APT, YUM, etc.
https://packages.microsoft.com
MIT License
64 stars 17 forks source link

Prod package for Amazon Linux 2 distro not found #84

Closed khoaxtru20 closed 11 months ago

khoaxtru20 commented 11 months ago

Describe the issue

https://packages.microsoft.com/amazonlinux/2/prod/ returns "404 Not Found".

When did the issue occur?

Happened while trying to install Azure Arc Agent for Amazon Linux 2 machine. Followed these instructions: https://learn.microsoft.com/en-us/linux/packages#red-hat-based-linux-distributions with yum.

Actual Result

After attempting to run sudo run update, got the following error: failure: repodata/repomd.xml from packages-microsoft-com-prod: [Errno 256] No more mirrors to try. https://packages.microsoft.com/amazonlinux/2/prod/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

khoaxtru20 commented 11 months ago

Workaround:

Got the distro that my OS is based off of with cat /proc/version. I found that mine is based off RHEL 7.3

I tried to run through the instructions again with rhel/7.3 but that config file is missing. Instead, I edited the config file at /etc/yum.repos.d/microsoft-prod.repo which I had already installed after running through the instructions the first time. I changed the baseurl to point at https://packages.microsoft.com/rhel/7.3/.

Ran sudo yum update then sudo yum install <package>

Ran the package and followed the instructions to connect the device. Seems like a success so far.

And in case anyone else is in my exact situation, I later did a google search and found this article to install the Azure Arc agent.... Although I haven't tried it out, it probably would've been way less of a headache....

sdherr commented 11 months ago

This issue appears to have been resolved, I'm going to close it. Re-open if I missed something.