-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
packages-microsoft-com-prod repository for RHEL9 has a system-release < 9 as a dependency. #30748
Comments
Thank you for opening this issue, we will look into it. |
Seems like this works when performing the steps manually in our affected hosts. Issue is likely on our side. Closing Issue. |
Reopening as the root cause of the issue was found. The package requirements are listed as follows:
system-release is an outdated package, if the package is for RHEL and the package name is officially redhat-release. See example:
This was likely changed recently which is why we started seeing issues. While it seems to work installing manually with dnf it breaks things like the ansible dnf module [1]. This should be changed. |
Hi @YoNoSoyVictor , the name of the package (
Here you see that this version of Furthermore, if it works with You're correct that this requirement is a recent change and it explains why this only recently started failing, but so far I don't see any evidence that this change is wrong. The intent here is to prevent people from accidentally installing the wrong package/repo for their system, eg installing the RHEL 8 repo on a RHEL 9 system or vice-versa, and it seems to be working properly from what I can see. |
I'm also confused because the error message you reported in the initial comment does not match with your later investigation. That error message claims to be looking for a version of
|
Hey thanks taking the time to look into this @sdherr, I really appreciate it. I also had the same observations you did so I escalated this to my team internally as well. They were able to fix it. Sorry I could not find the time to reply earlier they just updated me. I'll close the issue thanks for the help :) |
@YoNoSoyVictor Sorry not sure if this is fully fixed. I still received a similar error but this time < 10 version `Error:
|
@yomofo2s Which distro are you using? Trying to install the cli on Amazon Linux myself and whilst it worked prior to this change, it is no longer possible |
Hi @Jack-Hazelden-Blackdot i have the same distro as yours `Amazon Linux 2023 repository 32 MB/s | 31 MB 00:00
|
I'm also seeing the issue on Rocky 9 Release: Rocky Linux release 9.5 (Blue Onyx) Full error from
|
Please ensure that you all are installing the correct package / repo for your system. We do publish Amazon Linux and Rocky Linux versions of this package that will subscribe your system to the Amazon / Rocky repositories, not the RHEL repository. Packages built for different systems are not guaranteed to be cross-compatible. You can see what you're currently subscribed to by Part of the confusion here, considering this is a azure-cli repo, may be that the Azure CLI team publishes the cli for RHEL 9 repo but not for Amazon / Rocky, so you may be intentionally subscribing to the wrong repo in order to fetch it. Which may work given how similar the systems are, but I don't think the Azure CLI team will support it at all. If you want to continue doing that you may, simply by fetching the RHEL 9 repo file an putting it in the right place on your system yourself: |
Thanks @stephen setting curl
https://packages.microsoft.com/config/rhel/9.0/prod.repo >
/etc/yum.repos.d/microsoft-rhel-9.0.repo fixed this.
…On Mon, Feb 10, 2025 at 2:30 AM Stephen Herr ***@***.***> wrote:
Please ensure that you all are installing the correct package / repo for
your system. We do publish Amazon Linux and Rocky Linux versions of this
package that will subscribe your system to the Amazon / Rocky repositories,
not the RHEL repository. Packages built for different systems are not
guaranteed to be cross-compatible.
https://packages.microsoft.com/config/amazonlinux/2023/packages-microsoft-prod.rpm
https://packages.microsoft.com/config/rocky/9/packages-microsoft-prod.rpm
You can see what you're currently subscribed to by cating the repo file
in /etc/yum.repos.d/. The baseurl should be self-explanatory. The name of
the file should be microsoft.repo or microsoft-prod.repo or just prod.repo
.
Part of the confusion here, considering this is a azure-cli repo, may be
that the Azure CLI team publishes the cli for RHEL 9 repo but not for
Amazon / Rocky, so you may be intentionally subscribing to the wrong repo
in order to fetch it. Which *may* work given how similar the systems are,
but I don't think the Azure CLI team will support it at all. If you want to
continue doing that you may, simply by fetching the RHEL 9 repo file an
putting it in the right place on your system yourself:
curl https://packages.microsoft.com/config/rhel/9/prod.repo >
/etc/yum.repos.d/microsoft-rhel-9.repo
—
Reply to this email directly, view it on GitHub
<#30748 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKSGVNP4NJ6YDJYKWBK5U4L2O76K7AVCNFSM6AAAAABWLWJKWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBWG4ZTEMRZG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hey team. Hope everything is going well!
We just noticed some issues recently when installing the Azure CLI in an automated manner For RHEL 9 (The errors started round 2025-02-03) . We now receive this message:
"Depsolve Error occurred: \n Problem: conflicting requests\n - nothing provides system-release < 9 needed by packages-microsoft-prod-1.1-2.noarch from @commandline"
The error is self-explanatory - it expects a system-release version < 9. However the repository being added is
https://packages.microsoft.com/config/rhel/9.0/packages-microsoft-prod.rpm
as explained in step 2 from the Azure CLI installation instructions [1]. This should be the correct repository for RHEL 9.Is it possible that there were some recent changes in this repository?
[1] https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=dnf#install-azure-cli
The text was updated successfully, but these errors were encountered: