Giter VIP home page Giter VIP logo

Comments (3)

derekbekoe avatar derekbekoe commented on June 22, 2024 2

@benc-uk

I suspect you’re on 16.04, you should have the ~xenial version. I suspect you have the ~wheezy version as I reproduced this with those steps.
You can use ‘dpkg -s azure-cli’ to check yourself.

dpkg -s azure-cli
Package: azure-cli
Status: install ok installed
Priority: extra
Section: python
Installed-Size: 262909
Maintainer: Azure Python CLI Team <[email protected]>
Architecture: all
Version: 2.0.27-1~wheezy

To get the appropriate package for your distribution, remove the current version of the CLI (apt-get remove azure-cli) and follow the steps on our install page.

We recently updated the install page to add this step (AZ_REPO=$(lsb_release -cs)) which will get the correct package for your distro.
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt

Once done, this is what you should see:

# dpkg -s azure-cli
Package: azure-cli
Status: install ok installed
Priority: extra
Section: python
Installed-Size: 284525
Maintainer: Azure Python CLI Team <[email protected]>
Architecture: all
Version: 2.0.27-1~xenial

The extension installs fine after that.

from azure-cli-extensions.

benc-uk avatar benc-uk commented on June 22, 2024

Ahhh ha! Yes this was the problem I had. Reinstalling the CLI with the "AZ_REPO=$(lsb_release -cs)" stuff fixed it and I'm now on the xenial version.

Aren't a lot of people that have installed the CLI on WSL longer than 2-3 weeks ago, going to hit this issue? (and others presumably!) by being locked into the wrong branch in their apt sources?

from azure-cli-extensions.

derekbekoe avatar derekbekoe commented on June 22, 2024

Yes potentially. The install page is up-to-date though so following those instructions would resolve this.

We needed to create more .deb packages due to Azure/azure-cli#3720 where users could not even run az login on some distros and we weren't supporting the latest versions of Ubuntu and Debian.

from azure-cli-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.