question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module issue on Ubuntu 20.04(Focal)/WSL

See original GitHub issue

If you just run apt update && apt install azure-cli on Ubuntu Focal, you’ll install an old 2.0.81 version from focal/universe and it’s packaged differently than the official deb packages we release and still in testing stage. It’s not tested and maintianed by Azure CLI Team and has several issues that need to be fixed.

ℹPlease first uninstall azure-cli 2.0.81 and its dependencies: sudo apt remove azure-cli -y && sudo apt autoremove -y Then install the latest azure-cli: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

See more install documentation.

Related Issues: #13519 No module named ‘builtin’ in Ubuntu 20.04 (Canonical image) #13958 az cli failing on webapp deployment (No module named ‘decorator’) #14001 Missing antlr4, Error with az vm image list on ubuntu 20.04 (WSL)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
ovilizcommented, Dec 13, 2021

Why isn’t this added to the Ubuntu repo (or your own) so we can always get the latest with apt update?

2reactions
alan-czajkowskicommented, Mar 11, 2022

How is this not fixed by now? it’s the year 2022 and this problem still exists in Ubuntu 20.04 LTS

it is madness to install binaries using this method:

$ curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

as this is super vulnerable to supply-chain attacks

When can we expect this to be fixed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with update-manager: No module named 'apt_pkg' in ...
The error is primarily because of library apt_pkg.cpython-35m-x86_64-linux-gnu.so not being present in /usr/lib/python3/dist-packages .
Read more >
Install the Azure CLI on Linux - Microsoft Learn
You can install the Azure CLI on Linux computers with one command or a step-by-step process. ... No module issue on Ubuntu 20.04...
Read more >
Windows subsystem WSL Ubuntu upgrade 18.04 to 20.04 issue
The name "Ubuntu-18.04" comes from the original distribution. It has nothing to do with the actual version of Ubuntu.
Read more >
Download Ubuntu Desktop
The latest LTS version of Ubuntu, for desktop PCs and laptops. LTS stands for long-term support ... Access the Linux Terminal on Windows...
Read more >
How to upgrade from Ubuntu 20.04 LTS to 22.04 LTS - nixCraft
This tutorial explains how to safely upgrade from Ubuntu 20.04 LTS (Focal Fossa) ... The nixCraft is not liable for failed upgrade procedures...
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