Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs-ref-conceptual/install-azure-cli-apt.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,21 @@ The error is due to a missing component required by `apt-key`. You can resolve i
sudo apt-get install dirmngr
```

### apt-key fails with "IPC connect call failed" message prior to "No dirmngr" message

Due to [a previous issue in WSL](https://github.com/Microsoft/WSL/issues/3286), you may experience a variation of the following error:

```output
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.nMumTfhiHO/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
```

If that occurs, the following workaround should allow you to add the appropriate key to continue installation:

```bash
curl -sL "http://packages.microsoft.com/keys/microsoft.asc" | sudo apt-key --keyring /etc/apt/trusted.gpg.d/Microsoft.gpg add
```

### apt-key hangs

When behind a firewall blocking outgoing connections to port 11371, the `apt-key` command might hang indefinitely.
Expand Down