Skip to content

Fix Azure-cli installation for trixie - #1489

Merged
Álvaro Rausell Guiard (AlvaroRausell) merged 5 commits into
devcontainers:mainfrom
Mathiyarasy:dev/Mathi/Issue1485
Oct 27, 2025
Merged

Fix Azure-cli installation for trixie#1489
Álvaro Rausell Guiard (AlvaroRausell) merged 5 commits into
devcontainers:mainfrom
Mathiyarasy:dev/Mathi/Issue1485

Conversation

@Mathiyarasy

@Mathiyarasy Mathiyarasy commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

Fixes: #1485

Issue Summary:

  • The update for Azure CLI installation on Debian Trixie caused this issue since Microsoft does not offer packages for this distribution. Although the apt-based installation fails, Azure CLI still gets installed successfully using pip.
  • However, after this change, apt-get commands fail because the broken repository file /etc/apt/sources.list.d/azure-cli.list is not being properly removed.
  • This leftover file leads to apt-get errors during the installation of other features such as docker-in-docker and dotnet

Solution:

  • If the apt-get update command fails, the script logs a message and removes the Azure CLI repository file etc/apt/sources.list.d/azure-cli.list

@Mathiyarasy
Mathiyarasy marked this pull request as ready for review October 3, 2025 14:25
@Mathiyarasy
Mathiyarasy requested a review from a team as a code owner October 3, 2025 14:25
@Mathiyarasy
Mathiyarasy marked this pull request as draft October 3, 2025 14:26
@Mathiyarasy
Mathiyarasy marked this pull request as ready for review October 6, 2025 06:23
Comment thread src/azure-cli/install.sh
Comment thread src/azure-cli/install.sh
@AlvaroRausell
Álvaro Rausell Guiard (AlvaroRausell) merged commit 10b6e71 into devcontainers:main Oct 27, 2025
12 checks passed
@Mathiyarasy
Mathiyarasy deleted the dev/Mathi/Issue1485 branch October 29, 2025 09:11
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.

3 participants