Azure / Azure/azure-cli

Update deb_install.sh to use /etc/apt/keyrings

Open
#25,149 6 comments 1 reaction 2 assignees Claimed by @bebound View on GitHub
act-platform-engineering-squad Auto-Assign Azure CLI Team feature-request Installation
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

## Issue

The apt-key command is [deprecated](https://itsfoss.com/apt-key-deprecated/) with Ubuntu 22.04 (except for deletes).

The `/usr/share/keyrings` directory is the recommended location for package signing keys now, rather than `/etc/apt/keyrings`.

The [deb_install.sh script](https://github.com/Azure/azure-cli/blob/dev/scripts/release/debian/deb_install.sh) used by [option 1](https://learn.microsoft.com/cli/azure/install-azure-cli-linux?pivots=apt#option-1-install-with-one-command) would benefit from changing to these newer standards. The [manual commands](https://learn.microsoft.com/cli/azure/install-azure-cli-linux?pivots=apt) are slightly better as they include the `signed-by` location, but again, should that location now be `/usr/share/keyring`?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.