Installing Chrome on Kali Linux involves adding Google’s repository and signing key rather than using a direct download. This guide shows you exactly how to install Chrome on Kali Linux using the terminal, step by step.
Kali Linux is built for security testing, but sometimes you need a standard browser like Chrome for everyday tasks. The process is simple once you know the commands.
Let’s get started without any delays.
Prerequisites For Installing Chrome On Kali Linux
Before you begin, make sure your system is up to date. Open a terminal and run these commands:
sudo apt update
sudo apt upgrade -y
You need an active internet connection. Also, ensure you have sudo privileges on your Kali machine.
Chrome is not in the default Kali repositories. That is why we add Google’s official repo.
How To Install Chrome On Kali Linux
Follow these steps carefully. Each command is important for a clean installation.
Step 1: Download The Google Chrome .Deb Package
Open your terminal. Use wget to download the Chrome .deb file directly from Google’s servers.
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
This command adds Google’s signing key to your system. It verifies that the package is authentic.
Now download the Chrome package:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
The file will be saved in your current directory. It is around 90 MB in size.
Step 2: Install The Downloaded Package
Use dpkg to install the .deb file:
sudo dpkg -i google-chrome-stable_current_amd64.deb
You might see dependency errors. That is normal. Fix them with:
sudo apt install -f
This command installs any missing dependencies automatically.
Step 3: Verify The Installation
Check if Chrome is installed correctly:
google-chrome --version
You should see output like “Google Chrome 120.0.6099.109”.
Launch Chrome from the terminal:
google-chrome
The browser should open without errors.
Alternative Method: Using Google Repository
Some users prefer adding the repository permanently. This method keeps Chrome updated automatically.
Add The Google Repository
Create a new repository file:
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
Import the signing key:
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
Update your package list:
sudo apt update
Now install Chrome:
sudo apt install google-chrome-stable
This method is cleaner for long-term use. Updates come through apt.
Common Issues And Fixes
You might run into problems. Here are solutions for the most frequent ones.
Dependency Errors
If dpkg fails, run:
sudo apt --fix-broken install
This resolves almost all dependency issues.
Chrome Won’t Launch
Try running it from the terminal to see error messages:
google-chrome --no-sandbox
If it works with –no-sandbox, you need to configure sandboxing. Edit the desktop file:
sudo nano /usr/share/applications/google-chrome.desktop
Find the Exec line and add –no-sandbox at the end. Save and exit.
Note: Running without sandbox is less secure. Use it only if necessary.
Missing Libraries
Kali sometimes lacks certain libraries. Install them with:
sudo apt install libxss1 libappindicator1 libindicator7
These are common dependencies for Chrome.
Running Chrome As Root
Kali often runs as root by default. Chrome does not like running as root. You will see a warning message.
To bypass this, add the –no-sandbox flag when launching:
google-chrome --no-sandbox
Or create an alias in your .bashrc file:
echo "alias chrome='google-chrome --no-sandbox'" >> ~/.bashrc
source ~/.bashrc
Now you can just type “chrome” to launch it.
Be aware of the security implications. Sandboxing protects your system from malicious web content.
Uninstalling Chrome From Kali Linux
If you need to remove Chrome, use:
sudo apt remove google-chrome-stable
To also remove configuration files:
sudo apt purge google-chrome-stable
Remove the repository file if you added it:
sudo rm /etc/apt/sources.list.d/google-chrome.list
Update your package list:
sudo apt update
Why Use Chrome On Kali Linux?
Chrome offers better compatibility with modern web apps. Many security tools have web interfaces that work best in Chrome.
Firefox is the default browser on Kali, but Chrome has its advantages:
- Better DevTools for debugging
- Wider extension support
- Faster JavaScript execution
- Built-in PDF viewer
For penetration testers, Chrome’s developer tools are invaluable. You can inspect network traffic, edit cookies, and test XSS payloads.
Configuring Chrome For Security Work
You can tweak Chrome for better performance during security testing.
Disable Web Security
For testing purposes, you can disable web security:
google-chrome --disable-web-security --user-data-dir=/tmp/chrome_dev
This allows cross-origin requests. Use it only in a controlled environment.
Use Incognito Mode By Default
Set Chrome to always start in incognito mode:
google-chrome --incognito
This prevents cookies and history from being saved.
Proxy Configuration
Route traffic through Burp Suite or other proxies:
google-chrome --proxy-server="http://127.0.0.1:8080"
Combine with –ignore-certificate-errors for HTTPS testing.
Keeping Chrome Updated
If you used the repository method, updates are automatic. Just run:
sudo apt update && sudo apt upgrade
If you installed via .deb, you need to download new versions manually. Check for updates periodically.
Chrome updates often include security patches. Keep it current.
Performance Tips
Kali Linux can be resource-intensive. Chrome adds to that. Here are tips to keep things smooth:
- Disable hardware acceleration in Chrome settings
- Limit the number of open tabs
- Use Chrome’s task manager (Shift+Esc) to kill heavy processes
- Consider using Chromium instead if you want a lighter option
Chromium is the open-source version. Install it with:
sudo apt install chromium
It uses less RAM but lacks some proprietary codecs.
Frequently Asked Questions
Can I Install Chrome On Kali Linux Without Internet?
No, you need an internet connection to download the package or add the repository. Download the .deb file on another machine and transfer it via USB if needed.
Is It Safe To Install Chrome On Kali Linux?
Yes, as long as you download from the official Google source. Avoid third-party websites. The signing key ensures package integrity.
Why Does Chrome Say “You Are Using An Unsupported Command-line Flag”?
This happens when you use flags like –no-sandbox. It is harmless but indicates you are bypassing security features.
How Do I Install Chrome On Kali Linux Without Sudo?
You cannot install system-wide packages without sudo. Use a portable version or install it in your home directory using the –user flag with dpkg, but this is not recommended.
What Is The Difference Between Chrome And Chromium On Kali?
Chrome includes proprietary components like Flash and Widevine DRM. Chromium is fully open-source. Both work similarly for most tasks.
Troubleshooting Launch Problems
If Chrome does not start after installation, check these things:
- Make sure you have enough disk space
- Check if your graphics drivers are up to date
- Try running with –disable-gpu flag
- Look at the terminal output for specific errors
Common error: “cannot open shared object file”. This means a library is missing. Run sudo apt install -f to fix it.
Another issue: “Failed to move to new namespace”. This is a sandboxing problem. Use –no-sandbox as a temporary fix.
Final Thoughts
Now you know how to install Chrome on Kali Linux using two methods. The repository method is better for long-term use because it handles updates.
Remember to use Chrome responsibly on Kali. It is a powerful tool for web testing, but do not use it for everyday browsing on a security-focused system.
If you prefer a lighter browser, consider Firefox or Chromium. But for full compatibility with modern web apps, Chrome is hard to beat.
Test your installation by visiting a few websites. Make sure everything works as expected. If you encounter issues, refer back to the troubleshooting section.
That covers everything you need to get Chrome running on Kali Linux. The process is straightforward once you understand the steps.