-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Azure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamInstallationPossible-SolutionSimilar-IssuebugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Milestone
Description
Describe the bug
The "Install script (any)" documented here fails on my CachyOS (based on Arch linux) system.
Related command
curl -L https://aka.ms/InstallAzureCli | bash
Errors
ERROR: The executable /home/redacteduser/lib/azure-cli/bin/python3 is not functioning
ERROR: It thinks sys.prefix is '/usr' (should be '/home/redacteduser/lib/azure-cli')
ERROR: virtualenv is not compatible with this system or executableIssue script & Debug output
[redacteduser@redactedhost ~]$ curl -L https://aka.ms/InstallAzureCli | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1405 100 1405 0 0 3948 0 --:--:-- --:--:-- --:--:-- 3948
Downloading Azure CLI install script from https://azurecliprod.blob.core.windows.net/install.py to /tmp/azure_cli_install_tmp_xJV0xW.
######################################################################## 100.0%
/tmp/azure_cli_install_tmp_xJV0xW: OK
Running install script.
-- Verifying Python version.
-- Python version 3.13.11 okay.
-- Verifying native dependencies.
-- Unable to verify native dependencies. dist=cachyos linux, version=None. Continuing...
===> In what directory would you like to place the install? (leave blank to use '/home/redacteduser/lib/azure-cli'):
-- Creating directory '/home/redacteduser/lib/azure-cli'.
-- We will install at '/home/redacteduser/lib/azure-cli'.
===> In what directory would you like to place the 'az' executable? (leave blank to use '/home/redacteduser/bin'):
-- The executable will be in '/home/redacteduser/bin'.
-- Downloading virtualenv package from https://pypi.python.org/packages/source/v/virtualenv/virtualenv-16.7.11.tar.gz.
-- Downloaded virtualenv package to /tmp/tmpfceocy83/virtualenv-16.7.11.tar.gz.
-- Checksum of /tmp/tmpfceocy83/virtualenv-16.7.11.tar.gz OK.
-- Extracting '/tmp/tmpfceocy83/virtualenv-16.7.11.tar.gz' to '/tmp/tmpfceocy83'.
/tmp/azure_cli_install_tmp_xJV0xW:139: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
package_tar.extractall(path=tmp_dir)
-- Executing: ['/usr/bin/python3', 'virtualenv.py', '--python', '/usr/bin/python3', '/home/redacteduser/lib/azure-cli']
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/redacteduser/lib/azure-cli/bin/python3
Also creating executable in /home/redacteduser/lib/azure-cli/bin/python
ERROR: The executable /home/redacteduser/lib/azure-cli/bin/python3 is not functioning
ERROR: It thinks sys.prefix is '/usr' (should be '/home/redacteduser/lib/azure-cli')
ERROR: virtualenv is not compatible with this system or executable
Traceback (most recent call last):
File "/tmp/azure_cli_install_tmp_xJV0xW", line 415, in <module>
main()
~~~~^^
File "/tmp/azure_cli_install_tmp_xJV0xW", line 399, in main
create_virtualenv(tmp_dir, install_dir)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/azure_cli_install_tmp_xJV0xW", line 144, in create_virtualenv
exec_command(cmd, cwd=working_dir)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/azure_cli_install_tmp_xJV0xW", line 105, in exec_command
subprocess.check_call(command_list, cwd=cwd, env=env)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/subprocess.py", line 419, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', 'virtualenv.py', '--python', '/usr/bin/python3', '/home/redacteduser/lib/azure-cli']' returned non-zero exit status 100.Expected behavior
Install script succeeds
Environment Summary
Not applicable - if I could get the version of the azure CLI, I wouldn't be opening this issue.
Additional context
No response
Metadata
Metadata
Assignees
Labels
Azure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamInstallationPossible-SolutionSimilar-IssuebugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.