Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ubuntu 24.04 prerequisites #5818

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

MikeMcC399
Copy link
Contributor

Issue

Following the instructions Getting Started > Installing Cypress > Linux Prerequisites > Ubuntu/Debian on Ubuntu 24.04 (Noble Numbat) LTS for package installation:

apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb

results in warnings and an error message:

Note, selecting 'libgtk2.0-0t64' instead of 'libgtk2.0-0'
Note, selecting 'libgtk-3-0t64' instead of 'libgtk-3-0'
E: Package 'libasound2' has no installation candidate

Change

For Ubuntu 24.04 make the following changes

Package Ubuntu <= 23.10 (current) Ubuntu 24.04 (new)
alsa-lib libasound2 libasound2t64
gtk+2.0 libgtk2.0-0 libgtk2.0-0t64
gtk+3.0 libgtk-3-0 libgtk-3-0t64

The package installation for Ubuntu 24.04 is added with:

apt-get install libgtk2.0-0t64 libgtk-3-0t64 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb

Background

According to the Ubuntu 24.04 release notes in the section Year 2038 support for the armhf architecture

More than a thousand packages have been updated to handle time using a 64-bit value rather than a 32-bit one, making it possible to handle times up to 292 billion years in the future.

References

Verification

On Ubuntu 24.04 LTS Desktop

Verify package installation

sudo apt-get install libgtk2.0-0t64 libgtk-3-0t64 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb

Should produce no errors or warnings.

Note that the Desktop edition already has the following packages installed by default:

libgtk2.0-0t64 is already the newest version (2.24.33-4ubuntu1).
libgtk-3-0t64 is already the newest version (3.24.41-4ubuntu1).
libnss3 is already the newest version (2:3.98-1build1).
libxss1 is already the newest version (1:1.2.3-1build3).
libasound2t64 is already the newest version (1.2.11-1build2).
libxtst6 is already the newest version (2:1.2.3-1.1build1).
xauth is already the newest version (1:1.1.2-1build1).

Verify Cypress runs

sudo apt-get install git make curl
curl -L https://bit.ly/n-install | bash
. ~/.bashrc
mkdir cypress-io
cd cypress-io
git clone https://github.com/cypress-io/cypress-example-kitchensink
cd cypress-example-kitchensink
n auto
npm ci
npm run local:run

Copy link

netlify bot commented Apr 30, 2024

👷 Deploy request for cypress-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 358a09e

@cypress-app-bot
Copy link
Collaborator

@MikeMcC399 MikeMcC399 marked this pull request as ready for review April 30, 2024 09:45
@MikeMcC399
Copy link
Contributor Author

cc: @AtofStryker

@jennifer-shehane jennifer-shehane merged commit b866f3b into cypress-io:main Apr 30, 2024
5 checks passed
@MikeMcC399 MikeMcC399 deleted the ubuntu-24-04-packages branch April 30, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package 'libasound2' has no installation candidate on Ubuntu 24.04
4 participants