-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Sudden azure-cli installation failure with single-shot script on Ubuntu Trusty: Unable to locate package azure-cli #25393
Description
Describe the bug
Beginning 02/07/2023 Bitbucket pipeline execution fails during attempted installation of azure-cli package. Error is:
E: Unable to locate package azure-cli
The installation method that started failing is:
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
To Reproduce
Fails with either of the installation options documented by the following methods
Option 1 (single-shot command):
https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt#option-1-install-with-one-command
Option 2 (separate steps):
https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt#option-2-step-by-step-installation-instructions
Expected behavior
azure-cli installs successfully using the single-shot command documented in Option 1
Environment summary
Bitbucket pipeline execution environment which I believe is Ubuntu Trusty within Docker. Same environment that had previously worked until 02/08/2023. Additional details can be provided, if needed.
Additional context
Partial pipeline output from Option 1:
lsb_release -cs
curl -sL https://packages.microsoft.com/repos/azure-cli/dists/
Ign http://archive.ubuntu.com/ trusty InRelease
Hit http://archive.ubuntu.com/ trusty-updates InRelease
Hit http://archive.ubuntu.com/ trusty-security InRelease
Get:1 https://packages.microsoft.com/ trusty InRelease
Hit http://ppa.launchpad.net/ trusty InRelease
Hit http://archive.ubuntu.com/ trusty Release.gpg
Hit http://archive.ubuntu.com/ trusty Release
Hit http://archive.ubuntu.com/ trusty-updates/main Sources
Hit http://archive.ubuntu.com/ trusty-updates/restricted Sources
Hit http://archive.ubuntu.com/ trusty-updates/universe Sources
Hit http://archive.ubuntu.com/ trusty-updates/main amd64 Packages
Hit http://archive.ubuntu.com/ trusty-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com/ trusty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com/ trusty-security/main Sources
Hit http://archive.ubuntu.com/ trusty-security/restricted Sources
Hit http://archive.ubuntu.com/ trusty-security/universe Sources
Hit http://archive.ubuntu.com/ trusty-security/main amd64 Packages
Hit http://archive.ubuntu.com/ trusty-security/restricted amd64 Packages
Hit http://archive.ubuntu.com/ trusty-security/universe amd64 Packages
Get:2 https://packages.microsoft.com/ trusty/main amd64 Packages
Hit http://archive.ubuntu.com/ trusty/main Sources
Hit http://archive.ubuntu.com/ trusty/restricted Sources
Hit http://archive.ubuntu.com/ trusty/universe Sources
Hit http://archive.ubuntu.com/ trusty/main amd64 Packages
Hit http://archive.ubuntu.com/ trusty/restricted amd64 Packages
Hit http://ppa.launchpad.net/ trusty/main amd64 Packages
Hit http://archive.ubuntu.com/ trusty/universe amd64 Packages
Fetched 1902 B in 13s (145 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package azure-cli
Partial output from Option 2:
deb [arch=amd64 signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ trusty main
Hit http://ppa.launchpad.net/ trusty InRelease
Ign http://archive.ubuntu.com/ trusty InRelease
Hit http://archive.ubuntu.com/ trusty-updates InRelease
Hit http://archive.ubuntu.com/ trusty-security InRelease
Get:1 https://packages.microsoft.com/ trusty InRelease
Hit http://archive.ubuntu.com/ trusty Release.gpg
Hit http://archive.ubuntu.com/ trusty Release
Hit http://ppa.launchpad.net/ trusty/main amd64 Packages
Hit http://archive.ubuntu.com/ trusty-updates/main Sources
Hit http://archive.ubuntu.com/ trusty-updates/restricted Sources
Hit http://archive.ubuntu.com/ trusty-updates/universe Sources
Hit http://archive.ubuntu.com/ trusty-updates/main amd64 Packages
Hit http://archive.ubuntu.com/ trusty-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com/ trusty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com/ trusty-security/main Sources
Hit http://archive.ubuntu.com/ trusty-security/restricted Sources
Hit http://archive.ubuntu.com/ trusty-security/universe Sources
Hit http://archive.ubuntu.com/ trusty-security/main amd64 Packages
Hit http://archive.ubuntu.com/ trusty-security/restricted amd64 Packages
Hit http://archive.ubuntu.com/ trusty-security/universe amd64 Packages
Ign https://packages.microsoft.com/ trusty InRelease
Hit http://archive.ubuntu.com/ trusty/main Sources
Get:2 https://packages.microsoft.com/ trusty/main amd64 Packages
Hit http://archive.ubuntu.com/ trusty/restricted Sources
Hit http://archive.ubuntu.com/ trusty/universe Sources
Hit http://archive.ubuntu.com/ trusty/main amd64 Packages
Hit http://archive.ubuntu.com/ trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com/ trusty/universe amd64 Packages
Fetched 1902 B in 11s (167 B/s)
Reading package lists...
W: GPG error: https://packages.microsoft.com/ trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package azure-cli