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.

Unable to install az on Ubuntu 18.04 w apt

See original GitHub issue

Describe the bug Unable to install a Microsoft signing key for az which works on Ubuntu 18.04 bionic and consequentially unable to install az via apt.

To Reproduce Follow instructions in the document: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest

sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893
Executing: /tmp/apt-key-gpghome.8anL89cvRR/gpg.1.sh --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.8anL89cvRR/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr

The new signing key installs properly (curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -, but this key still doesn’t allow me to download from the apt source.

sudo apt-key list
...
pub   rsa2048 2015-10-28 [SC]
      BC52 8686 B50D 79E3 39D3  721C EB3E 94AD BE12 29CF
uid           [ unknown] Microsoft (Release signing) <gpgsecurity@microsoft.com>

Then this is the error when doing the sudo apt-get update

Err:4 https://packages.microsoft.com/repos/azure-cli bionic InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B02C46DF417A0893
Reading package lists... Done
W: GPG error: https://packages.microsoft.com/repos/azure-cli bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B02C46DF417A0893
E: The repository 'https://packages.microsoft.com/repos/azure-cli bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Expected behavior Either the old or new signing key allows me to sudo apt-get update from the az apt source.

Environment summary Bash on Windows with 18.04 (bionic) LTS

Additional context lsb-release and dirmngr are installed and the latest versions.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
DavidBurelacommented, May 20, 2018

I have the same issue. Running Ubuntu 18.04 from the Windows store via Windows subsystem for Linux.

2reactions
troydaicommented, May 21, 2018

Thank you for reporting this issue. We’re aware of it now. We’re in the process of switching the old repository key to a new one. I will post back when the process is done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install the Azure CLI on Linux - Microsoft Learn
Learn how to install and run the Azure CLI on Linux manually. You can install the Azure CLI on Linux computers with one...
Read more >
How to Install Azure CLI (Windows, Linux, macOS, Azure Shell)
Installing on Ubuntu​​ This one-line command will download a script from Microsoft and perform all necessary actions. To set up the Azure CLI ......
Read more >
How to Install and Set Up Azure CLI on Ubuntu - MakeUseOf
This guide will show you how to install and run Azure CLI commands on Ubuntu. Azure CLI is one of the tools that...
Read more >
apt-get cannot connect to Ubuntu archives
- connect (101: Network is unreachable) Could not connect to au.archive.ubuntu.com:80 (202.158.214.106), connection timed out W: Failed to fetch ...
Read more >
Azure CLI Installation on Linux - Cytron Technologies
If you are running a distribution that comes with apt , such as Ubuntu or Debian, there's an x86_64 package ... Run the...
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