Skip to content

Version 4.3.0~preview1 available on apt package listing for amd64 #4649

@moloneyd-draeger

Description

@moloneyd-draeger

Version

4.3.0~preview1

Description

The apt package listings for ubuntu-24.04 / amd64 contain the new version 4.3.0~preview1, which does not appear to run on amd64 correctly.

Current Result:

  • After running sudo apt-get install azure-functions-core-tools-4, running the func binary gives an error.

Expected Result:

  • Packages available via the apt package manager work for the given os / architecture.

Current Workaround:

  • We are adding version pinning files to `/etc/apt/preferences.d/ to exclude version 4.3.0~preview1

Example file:

Package: azure-functions-core-tools-4
Pin: version 4.3.0~preview*
Pin-Priority: -1

Steps to reproduce

Start new VM / pipeline image using ubuntu-24.04 on amd64, e.g. github actions / azure devops pipelines.

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-$(lsb_release -cs)-prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-get update
sudo apt-get install azure-functions-core-tools-4
func --help

Get result:

-bash: /usr/bin/func: cannot execute binary file: Exec format error

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions