Provide preferred way to install on Github Action runners
davereid opened this issue · comments
Problem Statement
The current ubuntu-latest
GitHub Action runners still use Ubuntu 22.04 and not 22.10. Could the readme list a preferred way to install via GitHub Actions?
Steps to Reproduce
workflow.yml
:
jobs:
install-xq:
name: Install xq
runs-on: ubuntu-latest
steps:
- name: Install xq
run: |
sudo apt-get update
sudo apt-get install -y xq
Actual Result
2023-08-17T15:09:17.8925525Z Requested labels: ubuntu-latest
2023-08-17T15:09:17.8925919Z Waiting for a runner to pick up this job...
2023-08-17T15:09:18.1808447Z Job is waiting for a hosted runner to come online.
2023-08-17T15:09:21.9628402Z Job is about to start running on the hosted runner: GitHub Actions 102 (hosted)
2023-08-17T15:09:25.1895045Z Current runner version: '2.308.0'
2023-08-17T15:09:25.1930072Z ##[group]Operating System
2023-08-17T15:09:25.1930775Z Ubuntu
2023-08-17T15:09:25.1931076Z 22.04.3
2023-08-17T15:09:25.1931355Z LTS
2023-08-17T15:09:25.1931759Z ##[endgroup]
2023-08-17T15:09:25.1932078Z ##[group]Runner Image
2023-08-17T15:09:25.1932450Z Image: ubuntu-22.04
2023-08-17T15:09:25.1932811Z Version: 20230806.1.0
2023-08-17T15:09:25.1933384Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230806.1/images/linux/Ubuntu2204-Readme.md
2023-08-17T15:09:25.1934014Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230806.1
2023-08-17T15:09:25.1934455Z ##[endgroup]
2023-08-17T15:09:25.1934818Z ##[group]Runner Image Provisioner
2023-08-17T15:09:25.1935209Z 2.0.266.1
2023-08-17T15:09:25.1935469Z ##[endgroup]
2023-08-17T15:09:25.1936161Z ##[group]GITHUB_TOKEN Permissions
2023-08-17T15:09:25.1936874Z Contents: read
2023-08-17T15:09:25.1937212Z Metadata: read
2023-08-17T15:09:25.1937723Z PullRequests: write
2023-08-17T15:09:25.1938484Z ##[endgroup]
2023-08-17T15:09:25.1940952Z Secret source: Actions
2023-08-17T15:09:25.1941517Z Prepare workflow directory
2023-08-17T15:09:25.3342264Z Prepare all required actions
2023-08-17T15:09:25.3580581Z Getting action download info
2023-08-17T15:09:26.6781614Z ##[group]Run sudo apt-get update && sudo apt-get install -y xq
2023-08-17T15:09:26.6782150Z �[36;1msudo apt-get update && sudo apt-get install -y xq�[0m
2023-08-17T15:09:26.6842972Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2023-08-17T15:09:26.6887515Z ##[endgroup]
2023-08-17T15:09:27.0662128Z Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
2023-08-17T15:09:27.0751073Z Get:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
2023-08-17T15:09:27.0752271Z Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
2023-08-17T15:09:27.0753322Z Get:4 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
2023-08-17T15:09:27.1347050Z Get:5 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [3611 B]
2023-08-17T15:09:27.3147564Z Get:6 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
2023-08-17T15:09:27.3148180Z Get:7 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
2023-08-17T15:09:27.3588282Z Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [892 kB]
2023-08-17T15:09:27.3764052Z Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [214 kB]
2023-08-17T15:09:27.3792712Z Get:10 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [15.6 kB]
2023-08-17T15:09:27.3803348Z Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [714 kB]
2023-08-17T15:09:27.3974780Z Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [114 kB]
2023-08-17T15:09:27.4006324Z Get:13 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [968 kB]
2023-08-17T15:09:27.4193946Z Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [211 kB]
2023-08-17T15:09:27.4258002Z Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [21.5 kB]
2023-08-17T15:09:27.4527365Z Get:16 http://azure.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [41.6 kB]
2023-08-17T15:09:27.6114480Z Get:17 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [678 kB]
2023-08-17T15:09:27.6629831Z Get:18 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [155 kB]
2023-08-17T15:09:27.6632100Z Get:19 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [11.2 kB]
2023-08-17T15:09:27.6704505Z Get:20 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [694 kB]
2023-08-17T15:09:27.6815123Z Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [110 kB]
2023-08-17T15:09:27.6826820Z Get:22 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [536 B]
2023-08-17T15:09:27.6907854Z Get:23 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [770 kB]
2023-08-17T15:09:27.6986930Z Get:24 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [140 kB]
2023-08-17T15:09:27.7023806Z Get:25 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [16.4 kB]
2023-08-17T15:09:27.7075990Z Get:26 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main armhf Packages [9004 B]
2023-08-17T15:09:27.7120982Z Get:27 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages [87.2 kB]
2023-08-17T15:09:27.7153484Z Get:28 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main arm64 Packages [18.1 kB]
2023-08-17T15:09:27.7172746Z Hit:29 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
2023-08-17T15:09:27.7745822Z Get:30 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
2023-08-17T15:09:28.1597861Z Get:31 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [678 kB]
2023-08-17T15:09:28.4873947Z Get:32 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [155 kB]
2023-08-17T15:09:28.5792935Z Get:33 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [11.2 kB]
2023-08-17T15:09:28.6087573Z Get:34 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1395 kB]
2023-08-17T15:09:28.6613747Z Get:35 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [694 kB]
2023-08-17T15:09:28.7937300Z Get:36 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [110 kB]
2023-08-17T15:09:28.8826114Z Get:37 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [536 B]
2023-08-17T15:09:28.9608052Z Get:38 http://archive.ubuntu.com/ubuntu jammy/main Translation-en [510 kB]
2023-08-17T15:09:28.9638352Z Get:39 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [770 kB]
2023-08-17T15:09:29.0599810Z Get:40 http://archive.ubuntu.com/ubuntu jammy/main amd64 c-n-f Metadata [30.3 kB]
2023-08-17T15:09:29.0961162Z Get:41 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [140 kB]
2023-08-17T15:09:29.1418527Z Get:42 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [129 kB]
2023-08-17T15:09:29.1845396Z Get:43 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [16.4 kB]
2023-08-17T15:09:29.2272957Z Get:44 http://archive.ubuntu.com/ubuntu jammy/restricted Translation-en [18.6 kB]
2023-08-17T15:09:29.2665560Z Get:45 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [36.5 kB]
2023-08-17T15:09:29.3083856Z Get:46 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 c-n-f Metadata [488 B]
2023-08-17T15:09:29.3898224Z Get:47 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [892 kB]
2023-08-17T15:09:29.4307807Z Get:48 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [7060 B]
2023-08-17T15:09:29.5027154Z Get:49 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [214 kB]
2023-08-17T15:09:29.5118907Z Get:50 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [260 B]
2023-08-17T15:09:29.5910627Z Get:51 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [15.6 kB]
2023-08-17T15:09:29.6726985Z Get:52 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [714 kB]
2023-08-17T15:09:29.7803184Z Get:53 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [114 kB]
2023-08-17T15:09:29.8635747Z Get:54 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [536 B]
2023-08-17T15:09:35.2423618Z Fetched 13.4 MB in 3s (4459 kB/s)
2023-08-17T15:09:36.2599232Z Reading package lists...
2023-08-17T15:09:36.3806075Z Reading package lists...
2023-08-17T15:09:36.5700088Z Building dependency tree...
2023-08-17T15:09:36.5721033Z Reading state information...
2023-08-17T15:09:36.5783545Z E: Unable to locate package xq
Expected Result
That XQ would be found since the runner uses Ubuntu 22.04
Note, the bug label could be removed, sorry.
I guess the only way to do it in the scope of GitHub action (without dealing with custom images) is to use bash installer:
curl -sSL https://bit.ly/install-xq | sudo bash
Unfortunately, there is no prepackaged xq for Ubuntu 22.04, and I think GitHub only focused on LTS versions of Ubuntu (so the next one will be only Ubuntu 24.04).
A good list of which distro contains prepackaged versions can be found here: https://repology.org/project/xq-sibprogrammer/versions