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

ubuntu 22.04 failing to install git #11663

Closed
2 of 15 tasks
iZnoGod722 opened this issue Feb 25, 2025 · 2 comments
Closed
2 of 15 tasks

ubuntu 22.04 failing to install git #11663

iZnoGod722 opened this issue Feb 25, 2025 · 2 comments

Comments

@iZnoGod722
Copy link

Description

Description
Hi guys,

Recently when trying create an image off of the ubuntu 22.04 template from the main branch I see that during the provisioning of the install git step. It always fails here

Note the log file is quite long so i trimmed it to just a few lines from where the error has occurred:

azure-arm.build_image: For release candidates, go to https://launchpad.net/~git-core/+archive/candidate . azure-arm.build_image: More info: https://launchpad.net/~git-core/+archive/ubuntu/ppa azure-arm.build_image: Removing repository. azure-arm.build_image: Disabling deb entry in /etc/apt/sources.list.d/git-core-ubuntu-ppa-jammy.list azure-arm.build_image: Removing disabled deb entry from /etc/apt/sources.list.d/git-core-ubuntu-ppa-jammy.list azure-arm.build_image: Removing disabled deb-src entry from /etc/apt/sources.list.d/git-core-ubuntu-ppa-jammy.list ==> azure-arm.build_image: Provisioning step had errors: Running the cleanup provisioner, if present...

Looks like it's specific to this particular step as part of the git installation

Removing disabled deb-src entry from /etc/apt/sources.list.d/git-core-ubuntu-ppa-jammy.list

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

no particular version, built off from main branch

Is it regression?

no

Expected behavior

Git should get installed successfully

Actual behavior

azure-arm.build_image: For release candidates, go to https://launchpad.net/~git-core/+archive/candidate . azure-arm.build_image: More info: https://launchpad.net/~git-core/+archive/ubuntu/ppa azure-arm.build_image: Removing repository. azure-arm.build_image: Disabling deb entry in /etc/apt/sources.list.d/git-core-ubuntu-ppa-jammy.list azure-arm.build_image: Removing disabled deb entry from /etc/apt/sources.list.d/git-core-ubuntu-ppa-jammy.list azure-arm.build_image: Removing disabled deb-src entry from /etc/apt/sources.list.d/git-core-ubuntu-ppa-jammy.list ==> azure-arm.build_image: Provisioning step had errors: Running the cleanup provisioner, if present...

Repro steps

Have an azure pipeline running that checkouts this repository and use packer to build the ubuntu22.04 image referencing this repository's ubuntu22.04 template.

@vidyasagarnimmagaddi
Copy link
Contributor

Hi @iZnoGod722 , Thank you for bringing this issue to our attention.
We are not facing issue while building Ubuntu-22 images, our builds appear green, could please try to build the same.
if error ,revert with error logs. regards

@iZnoGod722
Copy link
Author

Closing this as I found out what the issue is.

It is actaully failing to perform the following:

ssh-keyscan -t rsa,ecdsa,ed25519 github.com >> /etc/ssh/ssh_known_hosts
ssh-keyscan -t rsa ssh.dev.azure.com >> /etc/ssh/ssh_known_hosts

The temp VM spun up by Packer is using a private VNET. I found out that our company's firewall is blocking port 22.

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

No branches or pull requests

2 participants