I have az cli installed on my kali linux. Below is my kali version.
(kali㉿kali)-[~]
$ cat /etc/os-release
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2021.1"
VERSION_ID="2021.1"
VERSION_CODENAME="kali-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"
┌──(kali㉿kali)-[~]
└─$ uname -v
#1 SMP Debian 5.10.13-1kali1 (2021-02-08)
┌──(kali㉿kali)-[~]
└─$ uname -r
5.10.0-kali3-amd64
Here is the Azure cli version.
(kali㉿kali)-[~]
$ az --version 100 ⨯
azure-cli 2.19.1 *
core 2.19.1 *
telemetry 1.0.6
Python location '/opt/az/bin/python3'
Extensions directory '/home/kali/.azure/cliextensions'
Python (Linux) 3.6.10 (default, Feb 10 2021, 05:17:47)
[GCC 6.3.0 20170516]
Legal docs and information: aka.ms/AzureCliLegal
You have 2 updates available. Consider updating your CLI installation with 'az upgrade'
Please let us know how we are doing: https://aka.ms/azureclihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy
Below is the error(s) when I try to upgrade it to 2.20
$ az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Your current Azure CLI version is 2.19.1. Latest version available is 2.20.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
Get:1 https://packages.microsoft.com/repos/azure-cli stretch InRelease [3,968 B]
Get:2 http://kali.download/kali kali-rolling InRelease [30.5 kB]
Reading package lists... Done
E: Release file for https://packages.microsoft.com/repos/azure-cli/dists/stretch/InRelease is not valid yet (invalid for another 4d 5h 12min 21s). Updates for this repository will not be applied.
E: Release file for http://http.kali.org/kali/dists/kali-rolling/InRelease is not valid yet (invalid for another 7d 12h 11min 40s). Updates for this repository will not be applied.
CLI upgrade failed.
┌──(kali㉿kali)-[~]
└─$ sudo apt update 100 ⨯
Get:2 https://packages.microsoft.com/repos/azure-cli stretch InRelease [3,968 B]
Get:1 http://kali.download/kali kali-rolling InRelease [30.5 kB]
Reading package lists... Done
E: Release file for https://packages.microsoft.com/repos/azure-cli/dists/stretch/InRelease is not valid yet (invalid for another 4d 5h 11min 15s). Updates for this repository will not be applied.
E: Release file for http://http.kali.org/kali/dists/kali-rolling/InRelease is not valid yet (invalid for another 7d 12h 10min 34s). Updates for this repository will not be applied.
Any idea what I may be doing wrong?