azure-cli: Ubuntu 20.04 (WSL 2) fails to download azure-cli package

Describe the bug When running the automated installer on Ubuntu 20.04 via WSL 2 (curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash), the azure-cli package fails to download.

To Reproduce Run curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash in WSL 2 Ubuntu 20.04.

Expected behavior The package should be downloaded and installed.

Environment summary WSL 2, Ubuntu 20.04

Additional context

Output of running installer
$ curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 https://baltocdn.com/helm/stable/debian all InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
lsb-release is already the newest version (11.1.0ubuntu2).
lsb-release set to manually installed.
curl is already the newest version (7.68.0-1ubuntu2.5).
curl set to manually installed.
gnupg is already the newest version (2.2.19-3ubuntu2.1).
gnupg set to manually installed.
The following NEW packages will be installed:
  apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1704 B of archives.
After this operation, 161 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 apt-transport-https all 2.0.5 [1704 B]
Fetched 1704 B in 0s (8730 B/s)
Selecting previously unselected package apt-transport-https.
(Reading database ... 48515 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_2.0.5_all.deb ...
Unpacking apt-transport-https (2.0.5) ...
Setting up apt-transport-https (2.0.5) ...
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 https://baltocdn.com/helm/stable/debian all InRelease
Hit:3 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu focal InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease
Get:5 https://packages.microsoft.com/repos/azure-cli focal InRelease [10.4 kB]
Hit:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Get:8 https://packages.microsoft.com/repos/azure-cli focal/main amd64 Packages [5871 B]
Fetched 16.3 kB in 1s (15.8 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  azure-cli
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 64.3 MB of archives.
After this operation, 937 MB of additional disk space will be used.
Err:1 https://packages.microsoft.com/repos/azure-cli focal/main amd64 azure-cli all 2.25.0-1~focal
  404  Not Found [IP: 13.66.21.183 443]
E: Failed to fetch https://packages.microsoft.com/repos/azure-cli/pool/main/a/azure-cli/azure-cli_2.25.0-1~focal_all.deb  404  Not Found [IP: 13.66.21.183 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 7
  • Comments: 16 (1 by maintainers)

Most upvoted comments

I see the directory is slowly filling back up with all the releases, so depending on what version you need it may not be there yet.

It is still failing for me, I tried on Ubuntu 20.04 and Ubuntu 18.04