Seeed-Jetson-DevelopTool / fix-browser-snap-jetson
AGENTS.md57 starsChanged 4 months agoMITView on GitHub
Fix browsers (Chromium, Firefox, etc.) that fail to launch on Jetson devices due to an outdated or broken snapd. Downloads a pinned snapd revision offline, installs it, and holds automatic updates to prevent regression. Use when the user reports that a browser installed via snap cannot open, crashes silently, or shows snap-related errors on Jetson (Ubuntu/L4T).
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,843 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository297 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-nvrAGENTS.md
- allxon-ota-updateAGENTS.md
- allxon-setupAGENTS.md
- alwaysai-setupAGENTS.md
- backup-restoreAGENTS.md
- bsp-source-buildAGENTS.md
- clawdbot-developmentAGENTS.md
- cochl-sense-setupAGENTS.md
- cvedia-setupAGENTS.md
- dashcamnet-xavier-nx-multicameraAGENTS.md
- deciai-setupAGENTS.md
- deepseek-quick-deployAGENTS.md
- deploy-deepseek-mlcAGENTS.md
- deploy-depth-anything-v3AGENTS.md
- deploy-diaAGENTS.md
- deploy-efficient-vision-engineAGENTS.md
- deploy-frigateAGENTS.md
- deploy-live-vlm-webuiAGENTS.md
- deploy-nvbloxAGENTS.md
- deploy-ollama-anythingllmAGENTS.md
- deploy-riva-llama2AGENTS.md
- developtool-deviceAGENTS.md
- disk-encryptionAGENTS.md
- diy-bsp-buildAGENTS.md
- ethercat-communicationAGENTS.md
- ethercat-setupAGENTS.md
- finetune-llm-llama-factoryAGENTS.md
- gapi-setupAGENTS.md
- generative-ai-introAGENTS.md
- gpt-oss-liveAGENTS.md
- gr00t-n1-5-deploy-thorAGENTS.md
- gr00t-n1-6-deploy-agxAGENTS.md
- hardhat-setupAGENTS.md
- hybrid-bsp-dk-to-recomputerAGENTS.md
- imx477-a603-setupAGENTS.md
- j501-viola-fruit-sortingAGENTS.md
- jetpack5-ssd-boot-fixAGENTS.md
- jetpack-flash-wsl2AGENTS.md
- jetpack-jetson-overviewAGENTS.md
- jetpack-ota-updateAGENTS.md
- jetson-ai-toolsAGENTS.md
- jetson-docker-setupAGENTS.md
- jetson-faqAGENTS.md
- jetson-pc-wired-shareAGENTS.md
- jetson-project-galleryAGENTS.md
- jetson-resource-indexAGENTS.md
- jetson-tutorial-exercisesAGENTS.md
- ko-module-buildAGENTS.md
- l4t-differencesAGENTS.md
- langchain-output-formattingAGENTS.md
- lerobot-env-setupAGENTS.md
- llama-cpp-rpc-distributedAGENTS.md
- llm-interface-controlAGENTS.md
- local-chatbot-multimodalAGENTS.md
- local-chatbot-physicalAGENTS.md
- local-llm-text-to-imageAGENTS.md
- local-rag-llamaindexAGENTS.md
- lumeo-setupAGENTS.md
- maskcam-nanoAGENTS.md
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Run one phase at a time. After each phase:
- Very specific: line 21
If output contains [STOP] → stop immediately and consult the failure decision tree.
- Very specific: line 22
If output ends with [OK] → tell the user "Phase N complete" and run the next phase.
- Very specific: line 107
If the browser still does not open, check journalctl -xe | grep snap for confinement errors and refer to …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fix Browser Not Opening on Jetson (snapd Repair)
Browsers distributed as snap packages (Chromium, Firefox) fail to launch on Jetson when the installed snapd is too old or incompatible with the snap's confinement requirements. The fix is to install a known-good snapd revision offline and hold it from auto-updating.
Root cause: Jetson ships with an older snapd that lacks support for newer snap security profiles. The browser snap starts, hits a permission or mount-namespace error, and exits silently.
Execution model
Run one phase at a time. After each phase:
- Relay all
[install]lines to the user. - If output contains
[STOP]→ stop immediately and consult the failure decision tree. - If output ends with
[OK]→ tell the user "Phase N complete" and run the next phase.
The script is idempotent and safe to rerun.
Parameters
| Flag | Default | Notes |
--snapd-revision | 24724 | snapd snap revision to install (change only if advised) |
--phase | all | preflight / download / install / hold / verify / all |
--work-dir | $HOME/snapd-fix | directory for downloaded snap and assert files |
Phase commands
Phase 1 — preflight (fast, ~5 s)
Checks snapd status, current version, and whether a browser snap is present.
bash ~/.codex/skills/fix-browser-snap-jetson/scripts/fix_browser_snap.sh \
--phase preflightPhase 2 — download (medium, ~1–3 min depending on network)
Downloads the pinned snapd snap and its assertion file from the Snap Store.
bash ~/.codex/skills/fix-browser-snap-jetson/scripts/fix_browser_snap.sh \
--phase download --snapd-revision 24724Phase 3 — install (fast, ~30 s)
Acknowledges the assertion and installs the downloaded snapd snap.
bash ~/.codex/skills/fix-browser-snap-jetson/scripts/fix_browser_snap.sh \
--phase install --snapd-revision 24724Phase 4 — hold (fast, ~5 s)
Holds snapd at the installed revision so automatic refreshes cannot break it again.
bash ~/.codex/skills/fix-browser-snap-jetson/scripts/fix_browser_snap.sh \
--phase holdPhase 5 — verify (fast, ~10 s)
Confirms snapd version, hold status, and attempts to launch the browser snap in dry-run mode.
bash ~/.codex/skills/fix-browser-snap-jetson/scripts/fix_browser_snap.sh \
--phase verifyRun all phases in one command
bash ~/.codex/skills/fix-browser-snap-jetson/scripts/fix_browser_snap.sh \
--phase all --snapd-revision 24724Failure decision tree
| Output | Action |
[STOP] snap command not found | snapd is not installed at all. Run: sudo apt install snapd then rerun phase preflight. |
[STOP] snapd service not running | Run: sudo systemctl enable --now snapd then rerun phase preflight. |
[STOP] snap download failed | Network issue or revision unavailable. Check connectivity; see references/browser_snap_troubleshooting.md section T1. |
[STOP] snap ack failed | Assert file corrupt or mismatched. Delete --work-dir contents and rerun phase download. |
[STOP] snap install failed | See references/browser_snap_troubleshooting.md section T2 for common install errors. |
[STOP] snap refresh --hold failed | snapd version may not support hold. See section T3. |
[FAIL] browser still not launching | snapd is fixed but browser snap itself may be broken. See references/browser_snap_troubleshooting.md section T4. |
After verify passes — launch the browser
# Chromium
snap run chromium
# Firefox
snap run firefoxIf the browser still does not open, check journalctl -xe | grep snap for confinement errors
and refer to references/browser_snap_troubleshooting.md section T4.
Reference files
references/browser_snap_troubleshooting.md— T1–T4 recovery playbookscripts/fix_browser_snap.sh— main phase-driven repair script
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

