Skip to content

Azure CLI no longer installs from documented command on ubuntu linux 21.10. #21532

@jwshive

Description

@jwshive

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

Describe the bug
When attempting to install azure cli from the instructions here: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt
Running curl -sL https://aka.ms/InstallAzureCLIDeb | bash results in

Package azure-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'azure-cli' has no installation candidate
To Reproduce
curl -sL https://aka.ms/InstallAzureCLIDeb | bash

Expected behavior
azure-cli installs correctly

Environment summary
Installed using single command from document.

Additional context
I am building this on a container image that is using ubuntu:21.10 as the base image.

Step 8/14 : RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
 ---> Running in 9a1f4101597b
Hit:1 https://apt.releases.hashicorp.com/ impish InRelease
Hit:2 http://security.ubuntu.com/ubuntu impish-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu impish InRelease
Hit:4 http://archive.ubuntu.com/ubuntu impish-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu impish-backports InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.74.0-1.3ubuntu2).
gnupg is already the newest version (2.2.20-1ubuntu4).
lsb-release is already the newest version (11.1.0ubuntu3).
lsb-release set to manually installed.
The following NEW packages will be installed:
  apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 1510 B of archives.
After this operation, 167 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu impish/universe amd64 apt-transport-https all 2.3.9 [1510 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 1510 B in 0s (5475 B/s)
Selecting previously unselected package apt-transport-https.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 29358 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_2.3.9_all.deb ...
Unpacking apt-transport-https (2.3.9) ...
Setting up apt-transport-https (2.3.9) ...
Hit:1 https://apt.releases.hashicorp.com/ impish InRelease
Get:2 https://packages.microsoft.com/repos/azure-cli impish InRelease [5816 B]
Hit:3 http://archive.ubuntu.com/ubuntu impish InRelease
Hit:4 http://security.ubuntu.com/ubuntu impish-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu impish-updates InRelease
Hit:6 http://archive.ubuntu.com/ubuntu impish-backports InRelease
Fetched 5816 B in 1s (9250 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package azure-cli
The command '/bin/sh -c curl -sL https://aka.ms/InstallAzureCLIDeb | bash' returned a non-zero code: 100
2022-03-04T14:04:26.861664471Z stdout P

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions