Ubuntu Linux VM (machine) Images - 2022 April (Q2) Update

Hey Everyone!

Our new quarterly Ubuntu Linux VM (machine executor) images are available. Updated Ubuntu 20.04 images are now available for both amd64 and arm64. I’m also happy to introduce our brand new Ubuntu 22.04 image as a first release!

Tags

The Ubuntu 20.04 images can be accessed with the following date-based tag, ubuntu-2004:2022.04.2, or with the new rolling tag, ubuntu-2004:current.

The Ubuntu 22.04 image can be accessed with the following date-based tag, ubuntu-2204:2022.04.2, or with the new rolling tag, ubuntu-2204:current.

We have a new tagging system here! Previous tags looked like YYYYMM-RR. The new date-based tags look like YYYY.MM.R. In addition, we now have the current and edge tags for Ubuntu images. Learn more about how the new tags work here.

What’s New

This April refresh updates software included in the image, which can be found below. See the machine executor docs for more information about how to use the machine executor and these images.

2022.04.2 tags were published. This patch update includes fixes for the expired Heroku Apt key and recent changes to git upstream.

Note: Ubuntu 22.04 is only available in the amd64 architecture as of today. An ARM version will be available very soon. Please check back here.

Release Cadence

As a reminder, we have a quarterly release cadence for these images. This is the April (Q2) update meaning the next two Linux image releases will be in July (Q3) and October (Q4).

Example

Here’s a quick usage example:

version: 2.1
workflows:
  main:
    jobs:
      - build
jobs:
  build:
    machine:
      image: ubuntu-2204:2022.04.2
    steps:
      - checkout
      - run: echo "Do some things"

Software

Here is a list of the major software installed on each image. If multiple versions are present, the default is shown here:

Ubuntu 20.04 Ubuntu 22.04
AWS CLI 2.5.7 2.5.7
Google Chrome 102.0.5005.61 (amd64 only) 102.0.5005.61
Docker 20.10.14 20.10.14
Docker Compose 2.4.1 (amd64) 1.29.2 (arm64) 2.4.1
Firefox 100.0.2 100.0.2
Go 1.18.1 1.18.1
Google Cloud SDK 382.0.0 382.0.0
Gradle 7.4.2 7.4.2
Heroku 7.60.2 7.60.2
jq 1.6 1.6
Leiningen 2.9.8 2.9.8
Linux Kernel 5.13.0 5.15.0
Maven 3.8.5 3.8.5
Node.js 16.14.2 16.14.2
npm 8.7.0 8.7.0
OpenJDK 11.0.14 17.0.2
Python 3.10.3 3.10.3
Ruby 3.1.2 3.1.2
SBT 1.6.1 1.6.2
yq 4.24.5 4.24.5
1 Like

There is a typo i guess, for Ubuntu 22.04, new tag is ubuntu-2204:current?

Correct, fixed. Thank you.

These images were updated in 2022.04.2 to include fixes for:

  • Heroku’s expired Apt gpg key
  • Gits update that failed to allow you to check out to a directory the image’s user doesn’t own
  • kernel packages to support MIDI emulation

Hi,

We are getting following error after updating from ubuntu-2004:202111-02 to ubuntu-2004:2022.07.1:

ERROR: (gcloud.components.install) 
You cannot perform this action because the Google Cloud CLI component manager 
is disabled for this installation. You can run the following command 
to achieve the same result for this installation: 

sudo apt-get install kubectl

I guess the way gcloud is installed in the image has been changed. Is that the case? Could it be reverted back?

What command were you running that caused this error?

The command run was gcloud components install kubectl --quiet

sudo apt-get install kubectl did help indeed, but would be very good if it would actually be preinstalled since it is so common deployment tool.