question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
jiaslicommented, Mar 30, 2022

I am glad to announce that https://packages.microsoft.com/ has now support zstd compression and we have successfully published Azure CLI 2.34.1 for Impish:

> docker run -it --rm ubuntu:impish

# apt update

# apt install curl

# curl -sL https://aka.ms/InstallAzureCLIDeb | bash
...
Get:1 https://packages.microsoft.com/repos/azure-cli impish/main amd64 azure-cli all 2.34.1-1~impish [76.4 MB]
...
Preparing to unpack .../azure-cli_2.34.1-1~impish_all.deb ...
Unpacking azure-cli (2.34.1-1~impish) ...
Setting up azure-cli (2.34.1-1~impish) ...

# apt info azure-cli
Package: azure-cli
Version: 2.34.1-1~impish
Priority: extra
Section: python
Maintainer: Azure Python CLI Team <azpycli@microsoft.com>
Installed-Size: 1051 MB
Depends: libc6 (>= 2.34), libssl1.1 (>= 1.1.1)
Homepage: https://github.com/azure/azure-cli
Download-Size: 76.4 MB
APT-Manual-Installed: yes
APT-Sources: https://packages.microsoft.com/repos/azure-cli impish/main amd64 Packages
Description: Azure CLI
 A great cloud needs great tools; we're excited to introduce Azure CLI,
 our next generation multi-platform command line experience for Azure.

Please give it a try and let us know if it works for you. Thanks for your patience and understanding.

3reactions
jiaslicommented, Mar 16, 2022

We totally understand this situation and we are working tightly with https://packages.microsoft.com/ team. Since Ubuntu 22.04 will be released pretty soon, we will make zstd compression supported as soon as possible.

For now, please use Ubuntu 20.04 LTS to install Azure CLI.

In the meantime, might I recommend the Subscribe button? We will post here if there is any update.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install the Azure CLI on Linux - Microsoft Learn
Learn how to install and run the Azure CLI on Linux manually. You can install the Azure CLI on Linux computers with one...
Read more >
How to Install and Set Up Azure CLI on Ubuntu - MakeUseOf
This guide will show you how to install and run Azure CLI commands on Ubuntu. Azure CLI is one of the tools that...
Read more >
How to install Ubuntu Server on your Raspberry Pi
In this tutorial, we walk you through the process of installing Ubuntu Server on a Raspberry Pi, connecting it to the internet and...
Read more >
Install on Ubuntu - Docker Desktop
Install on Ubuntu. This page contains information on how to install, launch and upgrade Docker Desktop on an Ubuntu distribution.
Read more >
Install Terraform - HashiCorp Developer
Install Terraform on Mac, Linux, or Windows by downloading the binary or using a package manager (Homebrew or Chocolatey). Then create a Docker...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found