AZ command not found

See original GitHub issue

I’ve followed the instructions listed @ https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest but getting the following error after executing 2nd sudo command - sudo apt-get install apt-transport-https

Error: "E: Malformed Entry 1 in the list file /etc/apt/source.list.d/azure-cli.list(component) E: The list of sources could not be read


Environment summary

Using VM Ubuntu 1604LTS on Azure

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
hlubovaccommented, Aug 13, 2019

Really, @derekbekoe? He waited a full day for you: you could have waited at least that long before closing this - not to mention that you could have answered the question first. What’s the big deal in leaving these tickets open? Do you get paid by how many you close, or what? Do you get money deducted from your salary if they aren’t closed? Enlighten me, please.

8reactions
BaibhavVishal123commented, Mar 27, 2018

Problem when installing with different versions of Debian distro occurs, like “jessie”. What worked for me. Change the following line

echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
     sudo tee /etc/apt/sources.list.d/azure-cli.list

to

echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | \
     sudo tee /etc/apt/sources.list.d/azure-cli.list

Essentially we are telling the source file, to use a lower version of Linux Distribution for installing https.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install the Azure CLI - Microsoft Learn
To install the Azure CLI on Windows, you must use Powershell, or an MSI installer, which gives you access to the CLI through...
Read more >
mac - az command not found azure - Stack Overflow
I am trying to install Azure CLI 2.0 on my mac. I followed official documentation but facing this error. bash: az: command not...
Read more >
az executable is not found · Issue #12446 · Azure/azure-cli
I see az installed under C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin . PATH was not modified during installation, had to manually add ...
Read more >
Bash Pipeline: az command not found - Visual Studio Feedback
The error is: az - command not found. Azure DevOpsAzure DevOps ... According to the error information,Bash task can't recognize the az command....
Read more >
How to Install Azure CLI (Windows, Linux, macOS, Azure Shell)
If you type az and Windows tells you the executable can't be found, the Azure CLI installation folder may not be in your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found