Skip to content

Conversation

@ayewo
Copy link
Contributor

@ayewo ayewo commented Jul 28, 2025

Currently, trying to standup Nativelink on AWS infra using past code, as part of #1864.

When running this Docker command:

sudo docker build --build-arg OS_VERSION=$DISTRIB_RELEASE -t nativelink-runner -f ./deployment-examples/docker-compose/Dockerfile . &&

it fails with the following error:

Reading state information...
Package git is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
   git-svn
E: Version '1:2.34.1-1ubuntu1.14' for 'git' was not found

A quick check shows 2.34.1-1ubuntu1.15 as the latest:

apt-cache policy git
git:
  Installed: 1:2.34.1-1ubuntu1.15
  Candidate: 1:2.34.1-1ubuntu1.15
  Version table:
 *** 1:2.34.1-1ubuntu1.15 500
        500 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1:2.34.1-1ubuntu1 500
        500 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

Description

This change fixes the error.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please also list any relevant details for your test configuration

Checklist

  • Updated documentation if needed
  • Tests added/amended
  • bazel test //... passes locally
  • PR is contained in a single commit, using git amend see some docs

This change is Reviewable

`E: Version '1:2.34.1-1ubuntu1.14' for 'git' was not found`
@ayewo
Copy link
Contributor Author

ayewo commented Jul 28, 2025

@MarcusSorealheis please kindly merge this 1-char fix :)

@MarcusSorealheis
Copy link
Collaborator

@ayewo I will as soon as I have time to test it out. I also think we have made a lot of changes to Docker recently, so I also want to give @palfrey an opportunity to take a look.

@MarcusSorealheis
Copy link
Collaborator

Thank you for the PR nevertheless!

Copy link
Member

@palfrey palfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, happy with this. It's not picked up in CI as https://github.com/TraceMachina/nativelink/blob/main/.github/workflows/main.yaml#L170 only runs on 24.04, so we don't hit this for 22.04. I'll do a follow-up PR for that. There's also kinda an open question of the value of locking down the package versions so tightly, especially given we're using a floating value for the Ubuntu version - it uses 22.04/24.04 with whatever set of updates v.s. some of our other Dockerfiles that use a very specific hash version.

@palfrey palfrey mentioned this pull request Jul 29, 2025
5 tasks
@palfrey palfrey merged commit 3c9b1f3 into TraceMachina:main Jul 29, 2025
36 checks passed
MarcusSorealheis pushed a commit to MarcusSorealheis/nativelink that referenced this pull request Nov 3, 2025
`E: Version '1:2.34.1-1ubuntu1.14' for 'git' was not found`
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