Skip to content

Unable to install azure cli on ubuntu 24 #28945

@dharmendrasha

Description

@dharmendrasha

Describe the bug

i am trying to install azure cli by following the official documentation but i am not able to do so because i am getting an dependency error.

this is the documentation i am following.

offficial doc

Related command

the command i am trying to run

sudo apt-get install azure-cli

Errors

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
azure-cli : Depends: libffi6 (>= 3.0.10~rc8) but it is not installable
Depends: libssl1.1 (>= 1.1.1) but it is not installable
E: Unable to correct problems, you have held broken packages.

Issue script & Debug output

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
azure-cli : Depends: libffi6 (>= 3.0.10~rc8) but it is not installable
Depends: libssl1.1 (>= 1.1.1) but it is not installable
E: Unable to correct problems, you have held broken packages.

Expected behavior

should install correctly

Environment Summary

os linux ubuntu 24

image

Additional context

i have tried to look into other issues but they are useless as well.

Metadata

Metadata

Assignees

Labels

Azure CLI TeamThe command of the issue is owned by Azure CLI teamcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions