We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
replace wheezy with $(lsb_release -cs)
beginner mistake to post string constants which are changing a lot in such posts!
Hi,
I am getting the below error:
bini2082@DESKTOP-P4DG03H:/mnt/c/Windows/System32$ echo "deb [arch=amd64] https://packages.microsoft.... wheezy main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
[sudo] password for bini2082:
deb [arch=amd64] https://packages.microsoft.... wheezy main
bini2082@DESKTOP-P4DG03H:/mnt/c/Windows/System32$ sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 417A0893
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
bini2082@DESKTOP-P4DG03H:/mnt/c/Windows/System32$ sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
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 144 kB of archives.
After this operation, 151 kB of additional disk space will be used.
Err:1 http://http.kali.org/kali kali-rolling/main amd64 apt-transport-https all 1.6~alpha7
Temporary failure resolving 'http.kali.org'
W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
E: Failed to fetch http://http.kali.org/kali/p... Temporary failure resolving 'http.kali.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
bini2082@DESKTOP-P4DG03H:/mnt/c/Windows/System32$ sudo apt-get update && sudo apt-get install azure-cli
Err:1 https://packages.microsoft.... wheezy InRelease
Temporary failure resolving 'packages.microsoft.com'
Err:2 http://http.kali.org/kali kali-rolling InRelease
Temporary failure resolving 'http.kali.org'
Reading package lists... Done
W: https: aptMethod::Configuration: could not load seccomp policy: Invalid argument
W: http: aptMethod::Configuration: could not load seccomp policy: Invalid argument
W: Failed to fetch http://http.kali.org/kali/d... Temporary failure resolving 'http.kali.org'
W: Failed to fetch https://packages.microsoft.... Temporary failure resolving 'packages.microsoft.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package azure-cli
Could you please help.
Thanks,
Bini
Hi,
I am getting the below error:
root@LAPTOP-I35M9T9T:~# az
field 6 out of range (need a 48-bit value)
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 194, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 200, in execute
args = _pre_command_table_create(self.cli_ctx, args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 101, in _pre_command_table_create
cli_ctx.refresh_request_id()
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 67, in refresh_request_id
self.data['headers']['x-ms-client-request-id'] = str(uuid.uuid1())
File "/opt/az/lib/python3.6/uuid.py", line 592, in uuid1
clock_seq_hi_variant, clock_seq_low, node), version=1)
File "/opt/az/lib/python3.6/uuid.py", line 168, in __init__
raise ValueError('field 6 out of range (need a 48-bit value)')
ValueError: field 6 out of range (need a 48-bit value)
Any idea?
Hi, and thx for good article.
One notions I made:
Command
echo "deb [arch=amd64] https://packages.microsoft.... wheezy main" | \ sudo tee /etc/apt/sources.list.d/azure-cli.list
did not worked. Got error
No command ' sudo' found, did you mean:
Command 'sudo' from package 'sudo' (main)
Command 'sudo' from package 'sudo-ldap' (universe)
I removed "\"-character out of the command.
echo "deb [arch=amd64] https://packages.microsoft.... wheezy main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
After that worked fine.
Cheers, Pasi
Not sure why it didn't work, but this is good to know! Thx
Actually I found a reason,
there is one extra blank in command before the sudo comman "| \ sudo" should be instead "| \sudo". By removing blank it works.
Cheers, Pasi
when using bash on Windows, I hit the following issue with bash itself:
(some azure cli commands)
KeyVaultName=kvn$RANDOM$RANDOM
ResGroup=rs$RANDOM$RANDOM
ACR_NAME=acr$RANDOM$RANDOM
az group create -n $ResGroup -l westeurope
az acr create -g $ResGroup -n $ACR_NAME --sku Premium
az keyvault create -g $ResGroup -n $KeyVaultName
PSW=$(az acr credential show --query passwords[0].value -n $ACR_NAME -o tsv)
az keyvault secret set --vault-name $KeyVaultName --value $PSW --name $ACR_NAME-pull-pwd
so when you look at 'value' property of last statement, you will see that bash added extra char (EOF) to the password !?