尝试安装 Google Chrome 时出错

尝试安装 Google Chrome 时出错

安装 Google Chrome 后出现错误。

当我尝试执行此操作时sudo apt-get update出现此错误:

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg  Bad header line [IP: 37.29.1.44 80]

答案1

  1. 添加此行/etc/apt/sources.list

    sudo echo "deb http://dl.google.com/linux/deb/ stable main" >> /etc/apt/sources.list
    
  2. 下载并安装密钥

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A040830F7FAC5991
    
  3. 更新仓库

    sudo apt-get update
    

相关内容