Skip to content

Azure CLI package installation fails on Azure RHEL 8.5 PAYG VM #23559

@The3Shires

Description

@The3Shires

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command
sudo dnf install azure-cli

Describe the bug
When attempting to install the azure-cli package (RPM) on an Azure RHEL 8.5 PAYG VM it fails due to a conflict with the azure-security package that is already installed.

To Reproduce

  1. Provision a RHEL 8.5 PAYG VM on Azure.

  2. The VM already has the azure-security package installed:

$ sudo dnf info azure-security
Last metadata expiration check: 1:16:08 ago on Wed 17 Aug 2022 08:52:46 AM UTC.
Installed Packages
Name         : azure-security
Version      : 2.20.2
Release      : 58
Architecture : x86_64
Size         : 84 M
Source       : azure-security-2.20.2-58.src.rpm
Repository   : @System
Summary      : Azure security scanning daemon
URL          : www.microsoft.com
License      : Apache
Description  : Azure security scanning daemon
  1. The VM does not have the azure-cli package installed:
$ sudo dnf info azure-cli
Last metadata expiration check: 1:16:23 ago on Wed 17 Aug 2022 08:52:46 AM UTC.
Available Packages
Name         : azure-cli
Version      : 2.39.0
Release      : 1.el8
Architecture : x86_64
Size         : 50 M
Source       : azure-cli-2.39.0-1.el8.src.rpm
Repository   : packages-microsoft-com-prod
Summary      : Azure CLI
URL          : https://docs.microsoft.com/cli/azure/install-azure-cli
License      : MIT
Description  : A great cloud needs great tools; we're excited to introduce Azure CLI,
             :  our next generation multi-platform command line experience for Azure.
  1. Try to install the azure-cli package (which fails):
$ sudo dnf install azure-cli
Last metadata expiration check: 1:17:19 ago on Wed 17 Aug 2022 08:52:46 AM UTC.
Dependencies resolved.
===================================================================================================================================================================================================================
 Package                                         Architecture                 Version                                                       Repository                                                        Size
===================================================================================================================================================================================================================
Installing:
 azure-cli                                       x86_64                       2.39.0-1.el8                                                  packages-microsoft-com-prod                                       50 M
Installing dependencies:
 python39                                        x86_64                       3.9.7-1.module+el8.6.0+12577+62b8d0a1                         rhui-rhel-8-for-x86_64-appstream-rhui-rpms                        33 k
 python39-libs                                   x86_64                       3.9.7-1.module+el8.6.0+12577+62b8d0a1                         rhui-rhel-8-for-x86_64-appstream-rhui-rpms                       8.2 M
 python39-pip-wheel                              noarch                       20.2.4-7.module+el8.6.0+13003+6bb2c488                        rhui-rhel-8-for-x86_64-appstream-rhui-rpms                       1.1 M
 python39-setuptools-wheel                       noarch                       50.3.2-4.module+el8.5.0+12204+54860423                        rhui-rhel-8-for-x86_64-appstream-rhui-rpms                       497 k
Installing weak dependencies:
 python39-pip                                    noarch                       20.2.4-7.module+el8.6.0+13003+6bb2c488                        rhui-rhel-8-for-x86_64-appstream-rhui-rpms                       1.9 M
 python39-setuptools                             noarch                       50.3.2-4.module+el8.5.0+12204+54860423                        rhui-rhel-8-for-x86_64-appstream-rhui-rpms                       871 k
Enabling module streams:
 python39                                                                     3.9                                                                                                                                 

Transaction Summary
===================================================================================================================================================================================================================
Install  7 Packages

Total download size: 63 M
Installed size: 750 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): azure-cli-2.39.0-1.el8.x86_64.rpm                                                                                                                                            30 MB/s |  50 MB     00:01    
(2/7): python39-setuptools-wheel-50.3.2-4.module+el8.5.0+12204+54860423.noarch.rpm                                                                                                 287 kB/s | 497 kB     00:01    
(3/7): python39-setuptools-50.3.2-4.module+el8.5.0+12204+54860423.noarch.rpm                                                                                                       487 kB/s | 871 kB     00:01    
(4/7): python39-pip-20.2.4-7.module+el8.6.0+13003+6bb2c488.noarch.rpm                                                                                                              3.5 MB/s | 1.9 MB     00:00    
(5/7): python39-libs-3.9.7-1.module+el8.6.0+12577+62b8d0a1.x86_64.rpm                                                                                                               12 MB/s | 8.2 MB     00:00    
(6/7): python39-pip-wheel-20.2.4-7.module+el8.6.0+13003+6bb2c488.noarch.rpm                                                                                                        3.1 MB/s | 1.1 MB     00:00    
(7/7): python39-3.9.7-1.module+el8.6.0+12577+62b8d0a1.x86_64.rpm                                                                                                                    14 kB/s |  33 kB     00:02    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                               15 MB/s |  63 MB     00:04     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/lib/.build-id/96/652dd4786fcd6016a4c0f82e3072bf8cbdfab6 from install of azure-cli-2.39.0-1.el8.x86_64 conflicts with file from package azure-security-2.20.2-58.x86_64

Expected behavior
The package should have installed.

Environment summary
RHEL 8.5 OS (from Azure PAYG)

Additional context
N/A

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions