Ubuntu 24.04 not using latest image version #165139
Replies: 4 comments 1 reply
-
| as seen in your screenshot your workflow is still using an older version because: 
 You can't manually specify a particular image version (not supported). try adding manuall. in Yaml file  | 
Beta Was this translation helpful? Give feedback.
-
| Currently we have version  | 
Beta Was this translation helpful? Give feedback.
-
| Hi @kavinvalli, This happens because the  TL;DR: You can’t pin the hosted image version. Use one of the workarounds below. Workarounds1) Install the Rust toolchain you need in the job (recommended)Don’t rely on the image’s preinstalled Rust. Explicitly install/pin Rust 1.88: Option A — via rustup runs-on: ubuntu-24.04
steps:
  - uses: actions/checkout@v4
  - name: Install Rust 1.88
    run: |
      curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.88.0
      echo "$HOME/.cargo/bin" >> $GITHUB_PATH
  - name: Verify
    run: rustc --versionOption B — via an action runs-on: ubuntu-24.04
steps:
  - uses: actions/checkout@v4
  - uses: dtolnay/rust-toolchain@master
    with:
      toolchain: 1.88.0
  - run: rustc --versionThis works regardless of which runner image version you land on. 2) Build inside a container that already has Rust 1.88jobs:
  build:
    runs-on: ubuntu-24.04
    container: rust:1.88
    steps:
      - uses: actions/checkout@v4
      - run: rustc --version
      - run: cargo build --releaseThis isolates you from the host image’s tool versions. 3) Use a self-hosted runner (if you must pin everything)You control the base OS and toolchain—so you can lock versions exactly. This is heavier operationally. Tips
 Hope this helps! | 
Beta Was this translation helpful? Give feedback.
-
| 🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as  2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the  Thank you for helping bring this Discussion to a resolution! 💬 | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Question
What GitHub Actions topic or product is this about?
Actions Runner Image
Discussion Details
Trying to use Rust 1.88 which is available in the Ubuntu 24.04 version
20250629.1.0but when using the ubuntu-24.04 image on the workflow it uses the version20250622.1.0which has Rust 1.87 - Is there any way I can use the latest version by specifying it or is there some workaround to make that work?Beta Was this translation helpful? Give feedback.
All reactions