Fix: beginner devcontainer cannot install Playwright on Debian 11 - #91
Open
sinduri-g wants to merge 1 commit into
Open
Fix: beginner devcontainer cannot install Playwright on Debian 11#91sinduri-g wants to merge 1 commit into
sinduri-g wants to merge 1 commit into
Conversation
…tall
The level cannot start in a fresh Codespace. post-create.sh runs
`npx playwright install --with-deps chromium`, which fails on Debian 11:
E: Failed to fetch .../bullseye-security/.../libglx-mesa0_20.3.5-1+deb11u1 404
E: Failed to fetch .../bullseye-security/.../libxfont2_2.0.4-1+deb11u1 404
post-create.sh uses `set -e`, so it aborts there, no browser is ever
installed, and the tests report:
Executable doesn't exist at .../chrome-headless-shell
Please run: npx playwright install
That advice fails the same way. Reproduced on a freshly pulled
mcr.microsoft.com/devcontainers/base:bullseye on both amd64 and arm64,
with a healthy apt index.
Debian 12 installs the same packages cleanly, and Playwright has dropped
Debian 11 entirely: 1.62 refuses with "does not support chromium on
debian11-x64" before it looks at any library, so the existing `^1.61.0`
range would break again on the next lockfile refresh.
Verified on bookworm with the level otherwise unchanged, so the challenge
itself is unaffected:
- npm ci, playwright install --with-deps chromium: both succeed
- chromium.executablePath() resolves a real Chrome for Lighthouse's CHROME_PATH
- npm run test:a11y fails on color-contrast, image-alt and the keyboard
test, which are the level's intentional bugs
- npm run test:lighthouse scores 80, matching what the level documents
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: sindurigf <sinduri.g@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
post-create.shrunsnpx playwright install --with-deps chromium, which fails:libglx-mesa0andlibxfont2both 404 from the bullseye-security poolset -e, so it aborts there and no browser is ever installedExecutable doesn't exist at .../chrome-headless-shell, and thenpx playwright installit suggests fails the same waybase:bullseye, on amd64 and arm64Fix
base:bullseye→base:bookwormWhy not stay on Debian 11
does not support chromium on debian11-x64^1.61.0range picks up 1.62 on the next lockfile refresh, so any Debian 11 workaround is temporaryVerified on bookworm, level otherwise unchanged
npm ciandplaywright install --with-deps chromiumboth succeedchromium.executablePath()resolves a real Chrome, so Lighthouse'sCHROME_PATHworksnpm run test:a11yfails oncolor-contrast,image-altand the keyboard test, which are the intentional bugsnpm run test:lighthousescores 80, as documentedpackage.json, lockfile, tests,verify.sh, or challenge contentFor reviewers
🤖 Generated with Claude Code