Chromebook Terminal Not Working? Fix Linux Beta Issues
In this article
To fix a Chromebook terminal that is not working, you should first restart your device and check for ChromeOS updates, as most terminal hangs are caused by outdated system files or a stalled Linux container. If the terminal fails to launch or remains stuck on "Starting Linux," the most effective solution is to shut down the Linux virtual machine via the ChromeOS settings or, in extreme cases, remove and reinstall the Linux development environment. This guide focuses on the official Linux (Beta) environment, also known as Crostini.
What You'll Need
- A Chromebook running a version of ChromeOS that supports Linux (Beta).
- A stable internet connection for downloading updates or reinstalling the environment.
- Administrative access to the device (managed school or work accounts may have Linux disabled by the administrator).
- A backup of any critical files stored within the Linux partition, if the terminal is partially accessible.
Step-by-Step
Depending on whether the terminal is completely missing, failing to open, or frozen, follow these steps in order. Note that menu labels may differ slightly depending on your ChromeOS version, device model, or region.
- Check for ChromeOS Updates: A mismatch between the OS version and the Linux container version often causes the terminal to crash. Click the time in the bottom right corner, select the Settings gear, and go to About ChromeOS. Click "Check for updates." If an update is found, let it install and restart your device completely.
- Hard Restart the Hardware: Sometimes a simple restart isn't enough to clear the virtual machine's state. Perform a hard reset by holding the Refresh key (the circular arrow) and tapping the Power button. This restarts the hardware controllers and can clear stuck processes that prevent the Linux container from booting.
- Force Stop the Linux VM: If the terminal window is open but frozen or stuck on "Starting," you can force the virtual machine to stop. Right-click the Terminal icon on your shelf (taskbar) and look for an option to shut down Linux. If that is not available, go to Settings > Developers > Linux development environment and look for a way to shut down the environment.
- Verify Storage Space: The Linux terminal will fail to launch if your Chromebook is critically low on disk space. Go to Settings > Device > Storage Management. Ensure you have at least a few gigabytes of free space. If the disk is full, delete unnecessary files from your Downloads folder or remove unused Android apps.
- Check Management Restrictions: If you are using a Chromebook issued by a school or company, the administrator may have disabled the Linux development environment. If the "Linux" option is missing from the Developers menu in Settings, or if it says "This setting is managed by your administrator," you cannot enable the terminal without their permission.
- Update Linux Packages: If the terminal opens but commands are not working or you see errors, you need to update the internal package manager. Type
sudo apt updateand press Enter. Once that finishes, typesudo apt upgradeand press Enter. Confirm any prompts by typing 'Y' and pressing Enter. - Remove and Reinstall Linux: If none of the above work, the Linux container may be corrupted. Warning: This will delete all files, apps, and settings stored inside the Linux environment. Go to Settings > Developers > Linux development environment. Select "Remove Linux development environment" and confirm. Once removed, restart your Chromebook, return to the same menu, and select "Turn on" to install a fresh version of the terminal.
Common Mistakes
Many users mistake a slow boot time for a broken terminal. The first time you launch the terminal after a reboot, it can take 30 to 60 seconds to initialize the virtual machine; closing the window prematurely can corrupt the boot process. Another common error is trying to run Linux commands in the ChromeOS browser (crosh) instead of the Linux terminal. Crosh is accessed via Ctrl+Alt+T and is for system diagnostics, while the Linux terminal is a separate app for running Debian-based software. Finally, users often forget to run sudo before administrative commands, leading to "Permission denied" errors which they mistake for a broken terminal.
Tips
To prevent future terminal failures, regularly back up your Linux environment. You can find this option under Settings > Developers > Linux development environment > Backup and Restore. Creating a .tini backup file allows you to restore your entire setup without reinstalling every app if the container crashes again. Additionally, avoid filling the Linux partition to 100% capacity, as this is the most common cause of the "Starting Linux" hang. You can resize the disk partition in the settings menu to give Linux more room if you are installing large software packages.
Troubleshooting
If the terminal still does not work after a reinstall, check the following scenarios:
The Terminal app is missing from the App Launcher: This usually means the Linux environment was never successfully installed or was disabled by a policy. Go back to Settings > Developers and ensure the toggle for Linux is on. If it is on but the app is missing, try toggling it off and on again.
Error "Unable to start the VM": This often indicates a conflict with the ChromeOS kernel. Ensure you are not running the Chromebook in Guest Mode, as Linux is not supported for guests. Also, ensure you are signed into the primary owner account of the device, as secondary users may have restricted access to the VM.
Terminal opens to a blank black screen: This is often a GPU acceleration issue. While there are flags in chrome://flags that can change how graphics are handled, the safest first step is to disable any experimental flags you have recently enabled to return the system to a stable state.
Slow performance or lagging input: This is typically a RAM issue. Close all unnecessary Chrome tabs and Android apps. The Linux container shares system resources with the browser; if the browser is consuming all available memory, the terminal will become unresponsive.
Frequently Asked Questions
Why does my terminal say "Starting Linux" forever?
This usually happens because the virtual machine is stuck in a boot loop or the disk is full. Try restarting the Chromebook or using the Settings menu to shut down the Linux environment completely before trying again.
Can I use the terminal without enabling Linux Beta?
You can use Crosh (ChromeOS Shell) by pressing Ctrl+Alt+T, but this is not a full Linux terminal. For a full Debian environment where you can install apps like VS Code or Python, you must enable the Linux development environment in Settings.
Will reinstalling Linux delete my ChromeOS files?
No. Removing the Linux development environment only deletes files stored within the "Linux files" folder in your Files app. Your Downloads, Google Drive files, and Chrome browser data remain untouched.
Why are my commands returning "Permission Denied"?
Most system-level changes in the terminal require root privileges. You must prefix these commands with sudo (e.g., sudo apt install) to tell the system to execute the command as a superuser.
Does every Chromebook support the Linux terminal?
Most modern Chromebooks do, but very old models or those with extremely limited storage and RAM may not have the option in the settings. Check Settings > Developers to see if the option is available for your specific hardware.