Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Packaging] Add Ubuntu 21.04 Hirsute Hippo support #19367

Merged
merged 1 commit into from
Aug 31, 2021
Merged

Conversation

jiasli
Copy link
Member

@jiasli jiasli commented Aug 27, 2021

Description

Fix #19313, #18703, #18493, #19235, #18714, #18420, #18356, #17713, #16875, #18542

Old Azure CLI hirsute from Ubuntu universe repo is installed

If a user manually add Azure CLI software repository from Microsoft Linux repo following https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt#option-2-step-by-step-installation-instructions, /etc/apt/sources.list.d/azure-cli.list will contain

deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ hirsute main

As https://packages.microsoft.com/repos/azure-cli/dists/ doesn't have hirsure, apt update will fail

E: The repository 'https://packages.microsoft.com/repos/azure-cli hirsute Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

Then when apt install azure-cli is run, Azure CLI from Ubuntu universe repo (https://packages.ubuntu.com/hirsute/azure-cli) will be installed.

⚠ The Azure CLI from Ubuntu universe repo is not maintained by Microsoft.

# apt show azure-cli
Package: azure-cli
Version: 2.18.0-1
Priority: optional
Section: universe/python
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian Python Team <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 15.4 kB
Depends: python3:any, python3-azure-cli (>= 2.18.0-1)
Homepage: https://github.com/Azure/azure-cli
Download-Size: 2608 B
APT-Sources: http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
Description: Azure Command-Line Interface (CLI)

This Azure CLI from Ubuntu universe repo is very old and contains bugs.

Official Azure CLI focal from Microsoft Linux repo doesn't work on hirsute

Besides, even if the user installs with https://aka.ms/InstallAzureCLIDeb which automatically falls back to focal (#19313 (comment)), the focal package doesn't work correctly on hirsute (#18703).

Change

This PR builds a deb packaging for hirstute.

@jiasli jiasli requested review from yonzhan and evelyn-ys August 27, 2021 03:31
@yonzhan
Copy link
Collaborator

yonzhan commented Aug 27, 2021

Packaging

@jiasli jiasli merged commit 695e11d into Azure:dev Aug 31, 2021
@jiasli jiasli deleted the hirsute branch September 2, 2021 03:12
@jiasli
Copy link
Member Author

jiasli commented Sep 2, 2021

Ubuntu 21.04 Hirsute Hippo support will be release in Azure CLI 2.28.0 on 09/07/2021.

@jiasli
Copy link
Member Author

jiasli commented Sep 8, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImportError: cannot import name 'BatchManagementClient' from 'azure.mgmt.batch'
4 participants