Azure / azure-cli

Azure Command-Line Interface
MIT License
4.02k stars 2.99k forks source link

Upgrade from 2.55.0 to 2.56.0 remains stuck at the "Please check the release notes first" message #28192

Open paolosalvatori opened 10 months ago

paolosalvatori commented 10 months ago

Describe the bug

When I run az upgrade on WSL\Bash on my Windows 11 workstation, the command starts as excepted, but then it stops.

New Azure CLI version available. Running 'az upgrade' to update automatically.
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Your current Azure CLI version is 2.55.0. Latest version available is 2.56.0.
Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli
Do you want to continue? (Y/n): Y
Hit:1 https://download.docker.com/linux/ubuntu focal InRelease
Hit:2 https://apt.releases.hashicorp.com focal InRelease
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:4 https://deb.nodesource.com/node_16.x focal InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:6 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Hit:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
azure-cli is already the newest version (2.55.0-1~focal).
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
WARNING: New Azure CLI version available. Running 'az upgrade' to update automatically.
WARNING: This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
WARNING: Your current Azure CLI version is 2.55.0. Latest version available is 2.56.0.
WARNING: Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli

If I click RETURN, the process restarts but gets stops right after:

WARNING: New Azure CLI version available. Running 'az upgrade' to update automatically.
WARNING: This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
WARNING: Your current Azure CLI version is 2.55.0. Latest version available is 2.56.0.
WARNING: Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli

Related command

az upgrade

Errors

No errors

Issue script & Debug output

az upgrade

Expected behavior

The upgrade process should complete successfully,

Environment Summary

az --version
azure-cli                         2.55.0 *

core                              2.55.0 *
telemetry                          1.1.0

Extensions:
aks-preview                      0.5.173
alb                                1.0.0
amg                                1.2.9
bastion                            0.3.0
connectedk8s                       1.6.0
containerapp                      0.3.46
costmanagement                     0.2.1
fleet                              1.0.2
k8s-configuration                  1.7.0
k8s-extension                      1.5.3
ssh                                2.0.2
vm-repair                          0.5.9

Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2

Python location '/opt/az/bin/python3'
Extensions directory '/home/paolos/.azure/cliextensions'

Python (Linux) 3.11.5 (main, Nov 29 2023, 03:42:00) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

azure-client-tools-bot-prd[bot] commented 10 months ago

Hi @paolosalvatori,

2.55.0 is not the latest Azure CLI(2.56.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

yonzhan commented 10 months ago

Thank you for opening this issue, we will look into it.

paolosalvatori commented 10 months ago

Hi @paolosalvatori,

2.55.0 is not the latest Azure CLI(2.56.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

The bot is not very smart: upgrading to 2.56.0 is just what I'm trying to do, but the process remains stuck 😄

bebound commented 10 months ago

I can't find https://packages.microsoft.com/repos/azure-cli/ in your log. Did you follow this doc to install CLI? https://review.learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?branch=live&pivots=apt

paolosalvatori commented 10 months ago

Hi @bebound, yes, I originally installed Azure CLI on WSL with the following command:

curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

The upgrade process automatically kicked in when I tried to run a command yesterday. I also tried to explicitly run az upgrade command, but as I said, the process remained stuck. Now, I re-ran the full installation process from scratch: using:

curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

There is and there was something broken in the installation in my opinion.

bebound commented 10 months ago

What's the output of ls /etc/apt/sources.list.d/?

paolosalvatori commented 10 months ago

What's the output of ls /etc/apt/sources.list.d/?

azure-cli.list                                git-core-ubuntu-ppa-focal.list.save
azure-cli.list.distUpgrade                    hashicorp.list
azure-cli.list.save                           hashicorp.list.distUpgrade
deadsnakes-ubuntu-ppa-focal.list              hashicorp.list.save
deadsnakes-ubuntu-ppa-focal.list.distUpgrade  microsoft-prod.list
deadsnakes-ubuntu-ppa-jammy.list              microsoft-prod.list.distUpgrade
docker.list                                   microsoft-prod.list.save
docker.list.distUpgrade                       nodesource.list
docker.list.save                              nodesource.list.distUpgrade
dotnetdev.list                                nodesource.list.save
dotnetdev.list.distUpgrade                    wslutilities-ubuntu-wslu-focal.list
dotnetdev.list.save                           wslutilities-ubuntu-wslu-focal.list.distUpgrade
git-core-ubuntu-ppa-focal.list                wslutilities-ubuntu-wslu-focal.list.save
git-core-ubuntu-ppa-focal.list.distUpgrade
bebound commented 10 months ago

What's the output of cat /etc/apt/sources.list.d/azure-cli.list and apt update?

paolosalvatori commented 9 months ago

What's the output of cat /etc/apt/sources.list.d/azure-cli.list and apt update?

deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ jammy main

and

Get:1 https://download.docker.com/linux/ubuntu focal InRelease [57.7 kB]
Get:2 https://apt.releases.hashicorp.com focal InRelease [16.4 kB]
Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 https://apt.releases.hashicorp.com focal/main amd64 Packages [113 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:7 https://deb.nodesource.com/node_16.x focal InRelease
Hit:8 https://packages.microsoft.com/repos/azure-cli jammy InRelease
Hit:9 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Get:10 https://download.docker.com/linux/ubuntu focal/stable amd64 Packages [34.9 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1067 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1282 kB]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [202 kB]
Get:15 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1260 kB]
Get:16 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [206 kB]
Get:17 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [832 kB]
Get:18 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [158 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [262 kB]
Get:20 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [37.1 kB]
Get:21 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1280 kB]
Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [209 kB]
Get:23 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1032 kB]
Get:24 http://archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [231 kB]
Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [42.1 kB]
Get:26 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [41.7 kB]
Get:27 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [24.2 kB]
Fetched 8726 kB in 3s (3105 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
60 packages can be upgraded. Run 'apt list --upgradable' to see them.
bebound commented 9 months ago

Hit:8 https://packages.microsoft.com/repos/azure-cli jammy InRelease is in the log. I guess it works now ?