使用终端安装前,需要配置好终端使用了代理。
参考文章:https://blog.csdn.net/yangshuo1281/article/details/147262633?spm=1011.2415.3001.5331
转自 风车
- 首先,添加 Google Chrome 的软件源和密钥:
# 下载并添加 Google 的签名密钥
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# 添加 Google Chrome 软件源
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list'
- 更新软件包列表:
sudo apt update
- 安装 Google Chrome:
sudo apt install google-chrome-stable
- 验证安装:
google-chrome --version
如果遇到任何错误,可以尝试以下解决方案:
- 如果遇到依赖问题:
# 修复依赖
sudo apt --fix-broken install
# 安装必要的依赖
sudo apt install libxss1 libappindicator1 libindicator7
- 如果遇到密钥错误:
# 更新密钥
curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/google-chrome.gpg
# 重新添加软件源
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
- 完全卸载重装(如果需要):
# 卸载 Chrome
sudo apt purge google-chrome-stable
# 删除配置文件
rm -rf ~/.config/google-chrome
# 重新安装
sudo apt update
sudo apt install google-chrome-stable
安装完成后,您可以:
- 从应用程序菜单启动 Chrome
- 或在终端输入
google-chrome
启动 - 或在终端输入
google-chrome-stable
启动