Skip to content

(Public Beta) Ubuntu 22.04 is now availableย #5490

Closed

Description

@miketimofeev

Breaking changes

Ubuntu 22.04 is now available for all GitHub Actions and Azure DevOps users.
You can use the ubuntu 22.04 image label in your YAML to select this image.

GitHub Actions

jobs:
  jobName:
    runs-on: ubuntu-22.04

Azure DevOps

pool:
   name: 'Azure Pipelines'
   vmImage: 'ubuntu-22.04'

The image is marked as "beta" for now. It means some software can be unstable on the new platform. Also, there could be queueing issues as the capacity will be balanced only throughout the next weeks.
Please report any problems with the new image to this repository.

Software difference between Ubuntu 20 and Ubuntu 22

Tool name Ubuntu 20.04 Ubuntu 22.04 Notes
Clang 10.0.0, 11.0.0, 12.0.0 11.1.0, 12.0.1 clang 10 is not available for Ubuntu 22
GCC/G++ 9.4.0 (default), 10.3.0 9.4.0, 10.3.0, 11.2.0 (default) the default version for Ubuntu 22 is different
Erlang 24.* - Erlang is not available for Ubuntu 22 at the moment
Swift 5.* - Swift is not available for Ubuntu 22 at the moment
HHVM (HipHop VM) 4.* - HHVM is not available for Ubuntu 22 at the moment
OpenSSL 1.1.* 3.* The default OpenSSL in Ubuntu is now version 3
PhantomJS 2.1.1 - The software is deprecated as the latest version was released in 2016
PHP 7.4, 8.0, 8.1 8.1 Deprecated all the versions besides the most recent one
Firefox\geckodriver 99.* - Firefox is not available for Ubuntu 22 at the moment
.NET Core SDK 3.1, 5.0 6 Please consider using tasks to install any version on-flight:
- actions/setup-dotnet (GitHub Actions)
- Use .NET Core (Azure DevOps)
MongoDB 5.0.* - MongoDB is not available for Ubuntu 22 at the moment
MS SQL Server Client Tools SqlPackage 16.*
sqlcmd 17.*
SQL tools are not available for Ubuntu 22 at the moment
Go Defaultย version:ย 1.17.x
Pre-cached versions: 1.16, 1.17, 1.18
Defaultย version:ย 1.18x
Pre-cached versions: 1.17, 1.18
If your use-case requires using any of these versions, consider using tasks to install Go on-flight:
- actions/setup-go (GitHub Actions)
- Go Tool Installer (Azure DevOps)
Node.js Defaultย version:ย 16.x
Pre-cached versions: 12, 14, 16
Defaultย version:ย 16.x
Pre-cached versions: 14, 16
If your use-case requires using any of these versions, consider using tasks to install Node.js on-flight:
- actions/setup-node (GitHub Actions)
- Node.js Tool Installer (Azure DevOps)
PyPy 2.7, 3.6, 3.7, 3.8, 3.9 3.7, 3.8, 3.9 Deprecated all the versions besides the most recent ones
Python Default version: 3.8.x
Pre-cached versions: 2.7, 3.6, 3.7, 3.8, 3.9, 3.10
Default version: 3.10.x
Pre-cached versions: 3.7, 3.8, 3.9, 3.10
On GitHub Actions, actions/setup-python can install any version on-flight so this change doesn't impact users
Ruby Default version: 2.7.x
Pre-cached versions: 2.5, 2.6, 2.7, 3.0, 3.1
Default version: 3.0.x
Pre-cached versions: 3.1
On GitHub Actions, ruby/setup-ruby can install any version on-flight so this change doesn't impact users
Az modules Installed: 7.3.2
Zipped: 3.1.0, 4.4.0, 5.9.0, 6.6.0
Installed: 7.3.2
Zipped: -
If your use-case requires using any of these versions, consider using tasks to install Az modules on-flight:
- azure-powershell-action (GitHub Actions)
- Azure PowerShell (Azure DevOps)
Docker images Alpine: 3.12, 3.13, 3.14
buildpack-deps: bullseye, buster, stretch
debian: 9, 10, 11
node: 12, 14, 16
ubuntu: 16, 18, 20
Alpine: 3.14, 3.15
buildpack-deps: bullseye, buster
debian: 10, 11
node: 14, 16
ubuntu: 18, 20, 22
Deprecated all the versions besides the most recent one

Target date

May 5, 2022

The motivation for the changes

Ubuntu 22.04 LTS has been released.

Possible impact

n\a

Virtual environments affected

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 10.15
  • macOS 11
  • macOS 12
  • Windows Server 2019
  • Windows Server 2022

Mitigation ways

n\a

Activity

  1. panekj commented on May 5, 2022

    @panekj
    Contributor

    Please consider updating default Go to version 1.18

  2. EdJoPaTo commented on May 5, 2022

    @EdJoPaTo
    Contributor

    I tested the ubuntu-22.04 runner with one of my existing workflows and it failed as the docker daemon does not seem to be running:

    docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
    

    Is this the intended behaviour? Starting it when needed and don't start it per default might save some resources / startup time so I could understand this change. But it does not seem to be documented in this issue. Is this a bug then?

    (I have not run a dedicated test for this, I simply ran the exact same workflow which works on ubuntu-20.04 and interpreted the error message)

    Full log resulting in the error

  3. al-cheb commented on May 5, 2022

    @al-cheb
    Contributor

    @EdJoPaTo, We will check it.

    Temporary workaround is to remove daemon.conf:

    - run: |
              sudo rm /etc/docker/daemon.json
              sudo systemctl restart docker
    
  4. al-cheb commented on May 5, 2022

    @al-cheb
    Contributor

    I think you should preinstall clang 13 and 14 (available from official repos) instead of 11 and 12

    @MehdiChinoune, feel free to create a separate issue.

  5. olandese commented on May 6, 2022

    @olandese
    Contributor

    I successfully build the image, and was trying to use it with the Azure DevOps ScaleSet feature, but the agents are not coming up.
    The Azure DevOps VM Extensions fails with:

    "Azure Pipelines Extension failed with message: The Extension failed to execute: Pipeline script execution failed with exit code 100"

    image

  6. al-cheb commented on May 6, 2022

    @al-cheb
    Contributor

    @olandese , Maybe this fix will help - #5496

  7. olandese commented on May 6, 2022

    @olandese
    Contributor

    @olandese , Maybe this fix will help - #5496

    Hi @al-cheb, thanks for the quick reply, I will try to rebuild the image with this fix and let you know

  8. olandese commented on May 6, 2022

    @olandese
    Contributor

    @olandese , Maybe this fix will help - #5496

    Hi @al-cheb, thanks for the quick reply, I will try to rebuild the image with this fix and let you know

    @al-cheb the fix is working! The agents are coming up!
    Will this fix be merged?

  9. al-cheb commented on May 6, 2022

    @al-cheb
    Contributor

    @olandese, This fix has been merged.

  10. miketimofeev commented on May 6, 2022

    @miketimofeev
    ContributorAuthor

    Ubuntu-22.04 is now available in Azure DevOps too

  11. iBug commented on May 6, 2022

    @iBug
    Contributor

    Please consider updating default Go to version 1.18

    I second that. Also note that the default golang package from Ubuntu APT repo is also 1.18. I see it make little sense to default to 1.17 when it's officially 1.18 already.

  12. jauderho commented on May 6, 2022

    @jauderho

    I tested the ubuntu-22.04 runner with one of my existing workflows and it failed as the docker daemon does not seem to be running:

    
    docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
    
    

    Is this the intended behaviour? Starting it when needed and don't start it per default might save some resources / startup time so I could understand this change. But it does not seem to be documented in this issue. Is this a bug then?

    I can confirm that I am experiencing the same problem and the proposed workaround does not work for me.

  13. 91 remaining items

  14. Tallyb commented on Nov 24, 2022

    @Tallyb

    mongo is available for ubuntu 22. Are you planning on re-adding?

  15. christophs78 commented on Nov 24, 2022

    @christophs78

    Do you plan to bring geckodriver back?
    (Our existing integrationtestยดs fail since ubuntu-latest moved to Ubunto 22.04)

  16. MattiSG commented on Dec 6, 2022

    @MattiSG

    Are you planning on re-adding?

    According to #6626 (comment), I understand this is a wontfix on GitHub Actionsโ€™ side.

  17. egahmad commented on Mar 16, 2023

    @egahmad

    Can I pull this image locally to investigate the setup, for example I would like to make some changes to the apache configuration, sp it's useful to explore it locally before making any changes, is that is possible?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions