-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
downgrade azure-cli version failed #24719
Comments
@bebound for awareness |
What's the output of |
$ which az |
This az bin is not generated by our package, you need to uninstall manually. |
can I reinstall az cli, even fail to cleanup az , how I cleanup all az ?
$ which az
~/.local/bin/az
$sudo dnf remove azure-cli.noarch
$ sudo dnf autoremove
$ az
Traceback (most recent call last):
File "/usr/lib64/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib64/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File
"/home/fedora/.local/lib/python3.10/site-packages/azure/cli/__main__.py",
line 14, in <module>
from azure.cli.core import telemetry
File
"/home/fedora/.local/lib/python3.10/site-packages/azure/cli/core/telemetry.py",
line 19, in <module>
from azure.cli.telemetry import DEFAULT_INSTRUMENTATION_KEY
File
"/home/fedora/.local/lib/python3.10/site-packages/azure/cli/telemetry/__init__.py",
line 9, in <module>
import portalocker
ModuleNotFoundError: No module named 'portalocker'
…On Thu, Nov 24, 2022 at 11:41 AM Hang ***@***.***> wrote:
This az bin is not generated by our package, you need to uninstall
manually.
—
Reply to this email directly, view it on GitHub
<#24719 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWD53TDQWIM7JCJJU5W3IXDWJ3PVRANCNFSM6AAAAAASIWXKGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Best Regards
*MayXu(XuKe)*
SENIOR SOFTWARE QUALITY ENGINEER
|
I don't know how to uninstall it correctly, you know your computer better than I. |
|
How to cleanup the az on fedora ?
/ /\ \ |_ / | | | '/ Welcome to the cool new Azure CLI! Use Auto upgrade failed. name 'exit_code' is not defined During handling of the above exception, another exception occurred: Traceback (most recent call last): |
after reinstall with https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=dnf#install |
Related command
dnf list --showduplicates azure-cli
az version
Describe the bug
after degraded , check with az version still is 2.42.0
To Reproduce
MongoDB Repository 1.3 kB/s | 391 B 00:00
Errors during downloading metadata for repository 'mongodb-org-4.4':
Error: Failed to download metadata for repo 'mongodb-org-4.4': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MongoDB Repository 1.3 kB/s | 391 B 00:00
Errors during downloading metadata for repository 'mongodb-org-6.0':
Error: Failed to download metadata for repo 'mongodb-org-6.0': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: mongodb-org-4.4, mongodb-org-6.0
Last metadata expiration check: 0:27:09 ago on Wed 23 Nov 2022 07:55:16 AM UTC.
Installed Packages
azure-cli.x86_64 2.34.0-1.el7 @azure-cli
Available Packages
......
MongoDB Repository 1.1 kB/s | 391 B 00:00
Errors during downloading metadata for repository 'mongodb-org-4.4':
Error: Failed to download metadata for repo 'mongodb-org-4.4': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
MongoDB Repository 1.3 kB/s | 391 B 00:00
Errors during downloading metadata for repository 'mongodb-org-6.0':
Error: Failed to download metadata for repo 'mongodb-org-6.0': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: mongodb-org-4.4, mongodb-org-6.0
Last metadata expiration check: 0:38:09 ago on Wed 23 Nov 2022 07:57:27 AM UTC.
Package azure-cli-2.34.0-1.el7.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
{
"azure-cli": "2.42.0",
"azure-cli-core": "2.42.0",
"azure-cli-telemetry": "1.0.8",
"extensions": {}
}
Expected behavior
$ az version
{
"azure-cli": "2.34.1",
"azure-cli-core": "2.34.1",
"azure-cli-telemetry": "1.0.6",
"extensions": {}
}
Environment summary
$ uname -a
Linux preserve-maxu1 5.15.16-200.fc35.x86_64 #1 SMP Thu Jan 20 15:38:18 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Additional context
The text was updated successfully, but these errors were encountered: