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
Using VM Ubuntu 1604LTS on Azure
Provide more details:
What are the contents of the file?
You can delete the file and recreate it.
Closing due to inactivity.
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.
Jessie is supported and has been for a few releases now. You can replace wheezy with jessie then update the package.
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.
Most helpful comment
Problem when installing with different versions of Debian distro occurs, like "jessie".
What worked for me. Change the following line
to
Essentially we are telling the source file, to use a lower version of Linux Distribution for installing https.