Ubuntu-2204:current "pyenv: version `3.11' not installed"

We have a pipeline that looks like (abbreviated):

commands:
  setup-project:
    description: Set up the executor and install packages.
    steps:
      - checkout
      - run:
          name: Install Packages
          command: |
            : system
            sudo apt update
            sudo apt install default-libmysqlclient-dev pkg-config
            pyenv global 3.11

jobs:
  code build and test:
    machine:
      image: ubuntu-2204:current
      docker_layer_caching: true
      resource_class: arm.medium
    steps:
      - setup-project

about 24 hrs ago we started getting failures from “Install Packages” step like:

...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Scanning processes...                                                           
Scanning linux images...                                                        

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
pyenv: version `3.11' not installed

Exited with code exit status 1

What’s up with that?

Downgrading to image: ubuntu-2204:2023.10.1 fixes it

The reason for this is that within ubuntu-2204:current the available versions of Python are 2.7.18 and 3.12.1.

Current and Edge are always likely to see package changes, so it is best to choose a ‘named’ image if you are dependent on certain versions of packages.