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 fails to install on jammy - no package found?

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#option-1-install-with-one-command Running curl -sL https://aka.ms/InstallAzureCLIDeb | bash results in no package is found

curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Get:1 http://au.archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Hit:2 http://au.archive.ubuntu.com/ubuntu jammy-updates InRelease                                            
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease                                                
Hit:4 http://packages.microsoft.com/repos/code stable InRelease                                              
Hit:5 https://packages.microsoft.com/repos/azure-cli impish InRelease                                        
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Fetched 270 kB in 1s (208 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.81.0-1).
gnupg is already the newest version (2.2.27-3ubuntu2).
lsb-release is already the newest version (11.1.0ubuntu4).
apt-transport-https is already the newest version (2.4.5).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Get:1 http://au.archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Hit:2 http://au.archive.ubuntu.com/ubuntu jammy-updates InRelease                                            
Hit:3 http://packages.microsoft.com/repos/code stable InRelease                                              
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease                                                
Get:5 https://packages.microsoft.com/repos/azure-cli jammy InRelease [5,812 B]                               
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Fetched 276 kB in 1s (311 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package azure-cli

To Reproduce

  1. Clean install of Ubuntu 22.04 LTS (Jammy)
  2. curl -sL https://aka.ms/InstallAzureCLIDeb | bash

Expected behavior There is a package available to install and we can actually use azure cli again (22.04 is an LTS OS as well so this is really not great)

Environment summary Single line command as per the docs https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt#option-1-install-with-one-command

Additional context Downgrading to impish in the sources finds a package but is not installable and throws the error below

The following packages have unmet dependencies:
 azure-cli : Depends: libssl1.1 (>= 1.1.1) but it is not installable

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
joshuafernandescommented, Apr 24, 2022

Excellent, thanks for the update @jiasli

0reactions
jiaslicommented, Apr 24, 2022

No problem!

By the way, the unsigned deb package is at https://azurecliprod.blob.core.windows.net/archive/20220421.27/ubuntu-jammy/azure-cli_2.36.0-1~jammy_all.deb

Before we sign it and publish it to https://packages.microsoft.com/, you may install the unsigned deb if you want.

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 >
Install Azure CLI on Windows 10 using Python pip
Run these in a new PowerShell window after installing Python: # Install Azure CLI system-wide pip install azure-cli # Upgrade Azure CLI later...
Read more >
Repository errors after installing Azure CLI on Linux - Reddit
Hi everyone, I started receiving repository errors after installing Azure CLI on my Linux Mint system. Here is the output I get after ......
Read more >
Conflicting info about version installed, latest version available ...
After executing the az update command it retruns azure-cli is already the newest version (2.36.0-1). it shows that it is not updating to...
Read more >
Install Docker Engine on Ubuntu
If you installed Docker using the convenience script, you should upgrade Docker using your package manager directly. There's no advantage to re-running the ......
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