You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

Ubuntu 24.04 环境下 Google Chrome 安装方法及启动失败问题咨询

Ubuntu 24.04 环境下 Google Chrome 安装方法及启动失败问题咨询

Hey there, sorry to hear you're stuck with Chrome not launching on your fresh Ubuntu 24.04 install—let's break this down and get it working for you.

First off, the biggest issue right now is that you're not seeing any error messages when it fails to start. Let's fix that first: open up a terminal and run either google-chrome or google-chrome-stable (whichever matches the package you installed). This will spit out detailed error logs that'll tell us exactly what's going wrong.

With that said, here are the most common fixes for this scenario, sorted by likelihood:

1. Fix missing dependencies

When you download and install a .deb package manually, Ubuntu doesn't always automatically resolve all required dependencies. Run this command to let apt fix any gaps:

sudo apt install -f

This will scan your system for missing libraries or packages that Chrome needs and install them. Once done, try launching Chrome again.

2. Test for sandbox permission issues

Chrome uses a sandbox for security, and sometimes on newer Ubuntu versions, permission settings can interfere with this. To test if this is the problem, run Chrome without the sandbox temporarily (note: this is not safe for regular use—it's just a diagnostic step):

google-chrome-stable --no-sandbox

If Chrome launches successfully here, you'll need to fix the sandbox permissions. A common fix is to ensure your user account is in the sandbox group, or adjust system kernel settings (though using the official repository method below often avoids this entirely).

3. Reinstall Chrome using the official repository (most reliable method)

Manual .deb installs can sometimes miss system integration steps. Using Google's official repository ensures dependencies are handled automatically and you get future updates. Here's how to do it:

  • Add Google's signing key to verify package authenticity:
    wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/googlechrome-linux-keyring.gpg
    
  • Add the Chrome repository to your system's software sources:
    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/googlechrome-linux-keyring.gpg] https://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
    
  • Update your package list and install Chrome:
    sudo apt update && sudo apt install google-chrome-stable
    

4. Reset Chrome's configuration files

If you had Chrome installed on a previous Ubuntu system and migrated your home folder, old corrupted config files might be causing the crash. Let's rename the existing config directory to force Chrome to create a fresh one:

mv ~/.config/google-chrome ~/.config/google-chrome-backup

Now try launching Chrome again—if it works, you can gradually restore your bookmarks/settings from the backup folder if needed.

Start with checking the terminal error logs first, that'll point you directly to the root cause. If you share those logs, we can narrow it down even further!

备注:内容来源于stack exchange,提问作者E. Christoph Opfermann

火山引擎 最新活动