Gallium OS 16.04运行qutebrowser报错Calling _exit(1)求助
Hey there, let's work through this qutebrowser issue you're hitting on Gallium OS 16.04. Since Gallium is based on Xubuntu but has hardware-specific tweaks, the standard Ubuntu 16.04 steps might need a few adjustments. Here are the most likely fixes:
1. Ensure System-Level Qt WebEngine Dependencies Are Installed
Qutebrowser relies heavily on QtWebEngine, and pip might not always pull in the required system libraries. Run these commands to install the core Qt packages for Python 3.5:
sudo apt-get update sudo apt-get install python3-pyqt5.qtwebengine libqt5webengine5 libqt5webenginecore5 libqt5webenginewidgets5
This fills in any gaps that pip's installation might have missed—system-level libraries are often critical for Qt-based apps to run properly.
2. Reinstall Qutebrowser with a Clean Pip Cache
Corrupted installation files could be causing the exit error. First clear your pip cache, then force a fresh reinstall:
pip3.5 cache purge pip3.5 install --force-reinstall qutebrowser
This ensures you're getting a clean copy of qutebrowser and its dependencies without any cached corruption.
3. Try Installing via System Package Manager Instead of Pip
Gallium OS might play nicer with system packages than pip-installed ones. Enable the universe repository (if not already enabled) and install qutebrowser directly:
sudo add-apt-repository universe sudo apt-get update sudo apt-get install qutebrowser
This uses the pre-packaged version tailored for Ubuntu 16.04-based systems, which should handle dependencies automatically.
4. Get Detailed Debug Logs to Pinpoint the Issue
If the above steps don't work, run qutebrowser in debug mode to get specific error details:
python3.5 qutebrowser.py --debug
The debug output will show exactly where the crash is happening—whether it's a missing Python module, a Qt library issue, or something else. You can use this information to target the exact problem (e.g., installing a missing PyQt5 submodule).
5. Check for Virtual Environment Conflicts
If you're using a Python virtual environment, make sure you've activated it properly and installed all dependencies within it. Mixing system Python and virtual environment packages can cause unexpected crashes. If you're not using a venv, ensure no leftover venv paths are in your PATH or PYTHONPATH environment variables.
内容的提问来源于stack exchange,提问作者Luka Lafaye de Micheaux

