[Bug]: vtcode dependencies install search-tools fails to install dependencies on Linux (Ubuntu)
Description: When running vtcode dependencies install search-tools on a clean Linux system (Ubuntu), the automatic routine fails to install both ripgrep and ast-grep.
-
Issue with ripgrep: The automatic installer fails because it cannot elevate privileges to use apt. It throws an error instead of prompting for sudo password or telling the user to install it manually. text Error: Previous installation attempt failed (No supported installer found. Install APT, Cargo, or install ripgrep manually.). Not retrying for 24 hours.
-
Issue with ast-grep: After manually installing ripgrep, the routine fails on ast-grep with the following error: text → Installing ast-grep into /home/username/.local/bin Error: No ast-grep release asset matched the current platform (x86_64-unknown-linux-musl, x86_64-unknown-linux-gnu)
Cause: The script looks for an asset name matching ast-grep-, but the official GitHub release assets are named app-x86_64-unknown-linux-gnu.zip (prefixed with app-). Proposed Solution / Feature Request: If the automatic installation fails due to permissions (ripgrep) or missing release assets (ast-grep), vtcode should catch the error and display a clear, actionable guide instructing the user to install them manually. Please consider adding a fallback message like: "Automatic installation failed. Please install ripgrep and ast-grep manually
Thanks for your work
Thank you for reporting the issue, I will check it soon.
Thanks for the detailed report. I fixed and will be landed in the next release:
- ripgrep on Linux now prompts for your sudo password when a terminal is available, keeps the real apt error, and prints manual install steps on failure.
- ast-grep mismatch errors now list the available release assets and print manual install steps.
install search-toolsnow tries both tools even if the first fails.
From next version, please pull the latest and rerun vtcode dependencies install search-tools. If anything still fails, paste the new output here. And I will take a look again. Since I don't have Linux/Ubuntu machine to actually test it.
thank you. i report back when i install it on my other notebook.
6. thank you. i report back when i install it on my other notebook.
Thank you, the release is now live https://github.com/vinhnx/VTCode/releases/tag/0.181.1