Eu recebo um erro ao tentar instalar o Google Chrome [duplicado]

1

Estou recebendo um 'erro 403 proibido' ao executar sudo apt-get update .
Eu usei os seguintes comandos para adicionar o repositório do Google Chrome:

Adicionar chave:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 

Adicionar repositório:

sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'

Instalar pacote:

sudo apt-get update 
sudo apt-get install google-chrome-stable

Saída da atualização do apt-get:

  sudo apt-get update 
  Ign http://dl.google.com stable InRelease
  Ign http://dl.google.com stable Release.gpg                                    
   Ign http://dl.google.com stable Release                                        
   Err http://dl.google.com stable/main amd64 Packages  403  Forbidden [IP: 172.217.26.206 80]                         
   Ign http://dl.google.com stable/main Translation-en_IN                         
   Ign http://dl.google.com stable/main Translation-en                            
   Ign http://extras.ubuntu.com trusty InRelease                                  
   Hit http://security.ubuntu.com trusty-security InRelease                       
   Ign http://in.archive.ubuntu.com trusty InRelease                              
   Hit http://ppa.launchpad.net trusty InRelease                                  
   Hit http://in.archive.ubuntu.com trusty-updates InRelease                      
   Hit http://extras.ubuntu.com trusty Release.gpg                                
   Hit http://security.ubuntu.com trusty-security/main Sources                    
   Hit http://in.archive.ubuntu.com trusty-backports InRelease                    
   Hit http://extras.ubuntu.com trusty Release                                    
   Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
   Hit https://repo.skype.com stable InRelease                                    
   Hit http://in.archive.ubuntu.com trusty Release.gpg                            
   Hit http://ppa.launchpad.net trusty/main i386 Packages                         
   Hit http://security.ubuntu.com trusty-security/restricted Sources              
   Hit http://in.archive.ubuntu.com trusty-updates/main Sources                   
   Hit http://ppa.launchpad.net trusty/main Translation-en                        
   Hit http://security.ubuntu.com trusty-security/universe Sources                
   Hit http://in.archive.ubuntu.com trusty-updates/restricted Sources             
   Hit http://security.ubuntu.com trusty-security/multiverse Sources              
   Hit https://repo.skype.com stable/main amd64 Packages                          
   Hit http://in.archive.ubuntu.com trusty-updates/universe Sources               
   Hit http://extras.ubuntu.com trusty/main Sources                               
   Ign ftp://apt.postgresql.org trusty-pgdg/main Translation-en                   
   W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages  403  Forbidden [IP: 172.217.26.206 80]
   E: Some index files failed to download. They have been ignored, or old ones used instead.
    
por Naveen 28.02.2017 / 11:47

1 resposta

3

Talvez algo deu errado quando você importou a chave e adicionou o repositório. Portanto, comece do zero, excluindo as chaves importadas e removendo o repositório do Google Chrome.

Pesquise as chaves importadas do Google: apt-key adv --list-public-keys
Exclua as chaves do Google importadas: sudo apt-key del <key-ID>
Remova o repositório do Google Chrome: sudo rm /etc/apt/sources.list.d/google-chrome.list

Além disso, verifique o arquivo /etc/apt/sources.list das entradas antigas do Google Chrome:
sudo nano /etc/apt/sources.list Caso você encontre entradas antigas, remova-as.

Importe as chaves do Google, adicione o repositório do Google Chrome e instale o Google Chrome desta forma:

echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt update
sudo apt install google-chrome-stable

Observe que o Google Chrome só pode ser instalado em edições do Linux de 64 bits - mais informações aqui .
Os comandos são ligeiramente diferentes daqueles que você usou, talvez essa tenha sido a razão pela qual ...

    
por cl-netbox 28.02.2017 / 12:35