azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

Debian 12 (bookworm) support

Open jlaundry opened this issue 2 years ago • 8 comments

Hi folks,

Now that bookworm has been out for a month, people are starting to update their toolchains, and have found that the azure-functions-core-tools deb package is missing from https://packages.microsoft.com/debian/12/prod/pool/main/a/ (https://github.com/jlaundry/devcontainer-features/issues/12).

Is there a timeframe for when Debian 12 will be supported, with .deb release?

jlaundry avatar Aug 16 '23 20:08 jlaundry

+1

as a workaround until the official Debian 12 package is released I was able to run the Debian 11 azure-functions-core-tools package on Debian 12. to do so - manually replace: https://packages.microsoft.com/debian/12/prod bookworm main with: https://packages.microsoft.com/debian/11/prod bullseye main in: /etc/apt/sources.list.d/dotnetdev.list and then run sudo apt-get update and sudo apt-get install azure-functions-core-tools-4

shahafal avatar Aug 19 '23 17:08 shahafal

+1

This is very important because if Azure Functions Core Tools support for bookworm is delayed, it will not be possible to develop using .NET 8, only bookworm is released as an official image, and bullseye is no longer supported.

shibayan avatar Nov 25 '23 06:11 shibayan

+1. looks like mcr.microsoft.com/azure-functions/powershell:4-powershell7.4-core-tools is broken from this, because it's based on mcr.microsoft.com/dotnet/sdk:8.0 which only has bookworm images

pl4nty avatar Jan 19 '24 05:01 pl4nty

Please raise level of ticket, dotnet 6.0 expires this year and there is still no linux support for azure functions together with net 8.0 on linux

IdeaHunter avatar Jan 23 '24 00:01 IdeaHunter

+1

It's Feb 2024 and azure-functions-core-tools-4 is still not supported on bookworm

john-terraform avatar Feb 02 '24 21:02 john-terraform

😮

Surprise! What's this? https://packages.microsoft.com/debian/12/prod/pool/main/a/azure-functions-core-tools/

Looks like 12 (bookworm) support was silently added in 4.0.5571

(and the change broke Debian 11, as 11 doesn't support zst compression: https://github.com/Azure/azure-functions-core-tools/issues/3626)

jlaundry avatar Mar 21 '24 07:03 jlaundry

It seems like the package isn't properly signed

Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease                                         
Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease                               
Get:4 https://packages.microsoft.com/debian/12/prod bookworm InRelease [3,618 B]                      
Hit:5 https://dl.yarnpkg.com/debian stable InRelease       
Err:4 https://packages.microsoft.com/debian/12/prod bookworm InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
Reading package lists... Done
W: GPG error: https://packages.microsoft.com/debian/12/prod bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
E: The repository 'https://packages.microsoft.com/debian/12/prod bookworm 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.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package azure-functions-core-tools-4

mverbaas avatar Mar 21 '24 19:03 mverbaas

@mverbaas it looks like you need to add the Microsoft key first:

curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null

Or, if you prefer to limit the key to a specific apt source,

curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/packages.microsoft.gpg > /dev/null

echo "deb [signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/debian/12/prod bookworm main" | sudo tee /etc/apt/sources.list.d/microsoft-prod.list >/dev/null

jlaundry avatar Mar 21 '24 20:03 jlaundry